-
-
Notifications
You must be signed in to change notification settings - Fork 14
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Installing with pip requires call to ldconfig if preCICE is built from source #136
Comments
@BenjaminRodenberg Is this an installation procedure we missed? I normally install all (preCICE + bindings) from source. I do this either by hand or via Spack and never ran into this problem so far. |
I do have to manually call |
@boris-martin when building any library from source (i.e., not installing it via a system package manager, such as APT), the system needs to know where to find it. There are a few ways to do that:
The linker looks for libraries in specific paths, using The linker also looks in paths defined by I always build preCICE from source (on Ubuntu, which should be the same as Mint) and I never need to manually run |
My bad, never read that part of the documentation. Replacing the call to ldconfig by something like |
@boris-martin: If you have a more visible place in mind where we should post this information, feel free to edit the |
@BenjaminRodenberg Actually the README is fine, the problem is that when you install the binding through the website, you're told that |
It is also listed in the building from source: preparation page. But I understand that maybe this is not the right point in the workflow. Which pages did you read, in which order? Where would it make more sense for you? We can definitely add an info-box somewhere. |
A related issue to this is #114 which suggests a broad overhaul of the README and porting a majority of the stuff to the website for better accessibility. @MakisH would this make things clear in an overall sense keeping this issue in context? |
It would definitely make sense, but I think this is an issue in the preCICE documentation, not the Python bindings documentation. |
I built preCICE from source yesterday (on Linux Mint, with parameters suggested here) and installed it succesfully, but then, running
pip install --user pyprecice
generates an errorlibprecice.so.2 not found
. Runningsudo ldconfig
before running pip is enough to fix it.The issue doesn't appear if we install a
.deb
package for libprecice. I noticed that the post-installation script of the .deb does include a call tosudo ldconfig
, which explains a lot.Suggested fix : Either add a call to ldconfig in the installation instructions (on the website) or the the install script (probably hard, since ldconfig requires superuser, it would break install into a user-chosen path without superuser). Unless something is wrong on the binding side, but I doubt it.
The text was updated successfully, but these errors were encountered: