I installed Ubuntu 12.04 64 bit. I need to work with python and scipy, I installed them and when I run the test: python -c import scipy; scipy.test()I get the message: ImportError: libatlas.so.3gf: cannot open shared object file: No such file or directoryHowever, I have libatlas libraries installed under the directory /usr/lib/atlas-base. I know I can copy the files directly under /usr/lib, but I wonder how I could setup the scipy to use the libraries from usr/lib/atlas-base?
Using Atlas from scipy
ubuntu;python;libraries
You don't have to copy anything anywhere.You should add the atlas libraries to the list of locations ld will search.In directory /etc/ld.so.conf.d you can add the file atlas-lib.conf. This file should contain the directory of libatlas.so.3gf, which is /usr/lib/atlas-base.You can do this by runningecho /usr/lib/atlas-base | sudo tee /etc/ld.so.conf.d/atlas-lib.confFinally runsudo ldconfigto update ld so that it knows about this new file.Alternatively you can set LD_LIBRARY_PATH to include the path to the library when you run and it should be available within SciPy.