-
-
Notifications
You must be signed in to change notification settings - Fork 480
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
Add $SAGE_LOCAL/bin to LD_LIBRARY_PATH on Cygwin #14380
Comments
comment:1
Is it possible to clarify exactly what's going on? That is,
|
comment:2
Not really sure what exactly is going on. Here is what I seem to have observed:
So these two library loading system do not look in the same places in the same order. |
comment:3
Maybe that putting everything in LD_LIBRARY_PATH would be cleaner and enough, I'll give it a shot tonight. But the paragraph
from http://cygwin.com/cygwin-ug-net/setup-env.html gives little hope. For our current setup I guess that when Sage's python is launched it loads correctly the Sage's libpython rather than a system wide one because they both are in the very same directory and "." seems to take precedence on all env variables and default pathes. |
comment:4
|
comment:5
I propose to change in sage-env
to
|
Author: Jean-Pierre Flori |
comment:6
Needs some testing now. Karl-Dieter could you check it resolves your "fork" error? |
comment:7
Also, you should perhaps check |
comment:8
Attachment: trac_14380.patch.gz Replying to @nexttime:
Oops.
I thought about that, but we already explicitely add stuff in LD_LIBRARY_PATH some lines above. |
comment:9
My fork error wasn't about libpython or anything -mtrand.dll. In fact, I don't even have the system-wide Python. A rebase solved it this time, I don't know why it didn't. Or I suppose it could have had something to do with applying this patch. But this patch makes a lot of sense anyway, so I think we should keep it. Any other PATH experts want to chime in? |
comment:10
Replying to @kcrisman:
You mean !Cygwin/Windows pathologists? |
comment:11
I've just check any simpler combination of PATH/LD_LIBRARY_PATH is not sufficient, i.e. we at least need what's in PATH and LD_... with this patch. |
comment:12
My XP does have Python installed, and sure enough that seems to have caused the problem. |
Reviewer: Karl-Dieter Crisman |
Merged: sage-5.9.beta3 |
It's needed so that dlopen finds some Sage libraries before system-wide ones.
See #6743 comment:219.
We should also prepend the Cygwin specific stuff to PATH rather than appending it somewhere further in sage-env.
CC: @kcrisman @dimpase
Component: porting: Cygwin
Keywords: cygwin dlopen LD_LIBRARY_PATH
Author: Jean-Pierre Flori
Reviewer: Karl-Dieter Crisman
Merged: sage-5.9.beta3
Issue created by migration from https://trac.sagemath.org/ticket/14380
The text was updated successfully, but these errors were encountered: