-
-
Notifications
You must be signed in to change notification settings - Fork 5.6k
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
Attempt to fix #6327 #6455
Attempt to fix #6327 #6455
Conversation
Not sure |
Is it really that common to hardcode the path to the shared library that is linked to? I did not even know that there is an option to do this until I read that here. |
Relative path linking is uncommon in Linux, it only makes sense if you are shipping an application and don't care about interoperability with package management systems . |
Both But there's another very good reason not to use
This means ipython3 can't load readline and doesn't run properly (for some reason python2.7 still manages fine). In short adding (not sure if this particular library conflict counts as a separate issue which should be raised?) |
I don't know exactly what the issue here is and I absolutely do not want to start a discussion whether it is better to use But I don't have commit rights anyway so it should be decided by @JeffBezanson or @StefanKarpinski how to make this documentation better. To your particular problem.
|
Yes. rpath is used often to facilitate "local" installs with a defined set of directories under a relocatable root. Especially handy if you have multiple builds. The julia examples dir works this way. |
Ok, I was looking at this again and I think there are a some things which can be done to make the embedding docs slightly clearer:
The notes above are essentially platform independent and assume only that the user is compilng with While this approach is a little clunky, it is at least transparent. It should at least be clear what changes are needed for other platforms, which may avoid some frustration. This also eliminates the need for I think the main point is that anyone embedding julia will need to decide whether to piggy-back on a system-wide julia or ship a local copy. The suggestions above are meant to be consistent with the spirit of the Embedding Julia section of the manual, which I perceive as illustrating capability and not providing deployment advice |
People using package-manager installed versions of Julia should have the headers and libraries already in the default paths. |
Agreed. Is any major distro shipping Julia yet? Must admit I haven't looked. I also forgot to say that I prefer not to resort to LD_LIBRARY_PATH just People using package-manager installed versions of Julia should have the — |
Debian already ships Julia, and a Fedora package is under way. |
6c7c7e3
to
1a4c02f
Compare
Still relevant? I would think our embedding docs have come a long way since this PR... |
Try to fix #6327 and make the embedding docu a little bit more clear.