-
Notifications
You must be signed in to change notification settings - Fork 107
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
Boost.Python linking on linux and python installed from source #270
Comments
Hi Tomek, The line: ...suggests that you are not linking to the Boost directory you installed Boost into yourself. I noticed you didn't set a BOOST_DIR= flag... It looks like there is already a Boost install in /usr/lib64/ that will be incompatible with your self-installed Python. [one thought: @rmjarvis : off the top of your head is it possible to tell scons to ignore certain directories? Or at least very commonly used ones, something along the lines of: http://stackoverflow.com/questions/2988779/gcc-how-to-ignore-standard-include-paths ? Might be nice for these common cases we get where people don't have root access... Might be worth putting in an FAQ for gcc users at least, what do you think? (I'm happy to do it)] Another thought: in case of further icpc/gcc conflicts, once you've got the correct Boost actually being linked, if that doesn't work you should reinstall Boost using the icpc too... This can be done with the options toolset=intel or toolset=intel-linux at the ./bootstrap stage. Barnaby Rowe Department of Physics & Astronomy On 20 Sep 2012, at 17:58, Tomasz Kacprzak wrote:
|
Can you also check which python runs on your command line when you type
Maybe do both just to be sure. |
You can do what the stackoverflow site says by doing |
Fortunately using BOOST_DIR cased the problem to disappear, well spotted Barney! Now I am getting the same as before, described in Issue #261. Python is:
|
As before, I am running Scientific Linux SL release 5.4 (Boron) with python 2.7.1 and mkl 11.1 046 and no root privileges (UCL Starlink).
I installed python2.7 from source to a local folder.
My boost installation is
When I check the python version against which boost was installed, as instructed in INSTALL, I don't see the python version number:
I run GalSim scons with
And I get an error
Rachel suggested that this may be an issue with static/dynamic installation of python from source.
This is a relevant fragment of config.log.
My LD_LIBRARY_PATH is updated:
The text was updated successfully, but these errors were encountered: