Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fixes for loading wrong libpython.so when having multiple python installation. #409

Closed
wants to merge 1 commit into
from

Conversation

Projects
None yet
3 participants

I have two python installations on my Linux box: one is 2.7.3 (system) and the other is my own compilation of 2.7.5, if LD_LIBRARY_PATH is not set it will show errors about MAXREPEAT when running 2.7.5 executable with 2.7.3 libpython.so .

kefo commented Mar 4, 2014

Does setting

$ npm config set python /path/to/python2.7.5

fix your issue?

Collaborator

TooTallNate commented Mar 4, 2014

We should probably just inherit from the parent env object. Who knows what else the python executable will be dealing depending on on strange python installations.

spacelis commented Mar 4, 2014

@kefo No, it does not work. Wrong libpython.so will be loaded unless LD_LIBRARY_PATH is correctly set. I traced whether the script configure.js loaded the correct python interpreter, it did so and the only problem is LD_LIBRARY_PATH.

@TooTallNate I think it is a good idea!

Collaborator

TooTallNate commented Mar 4, 2014

Thanks, see e182465.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment