Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I tried compiling a file using make and got the following error:
..
/usr/bin/ld: cannot find -latlas
collect2: ld returned 1 exit status
make: *** [pcatoy] Error 1.
Could someone help me out with this?
I tried locate atlas, and got
/lib/modules/2.6.27.5/-117.fc10.i686/kernel/drivers/input/misc/atlas_btns.ko
Someone suggested the following command, and I still get the same error.
cd /usr/X11R6/lib
ln -s libX11.so.6 libX11.so
I'm using Fedora 10, and am using this software called EIGENSOFT. I'm trying to compile the makefile in the src folder of this software package ; according to the readme file of eigeensoft, this is to check if the system can run eigensoft properly.
Installing the atlas development package (yum -y install atlas-devel)
doesn't solve the error either; I still get the same error while compiling the makefile.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
Assume EIG3.0.tar.gz
mkdir Eigensoft
cd Eigensoft
tar xvf EIG3.0.tar.gz
cd src/
'make clean' .. or
'make clobber'
.... it is a precompiled package, ready to use,
but you can recompile it:
'make eigenstrat ' ... to get the libs, etc. again.
And I get no errors. See src/Makefile for info.
EDIT :
Atlas + lapack ( blas ) are used in the Makefile.
( I have them all installed , '-devel' )
.....
' grep -iR atlas Eigensoft/* '
.....
# ln -s /usr/lib/atlas/libatlas* /usr/local/lib/
will get you the dependency files for recompiling.
.....
The EIG binaries are x86_64 files.
.....
.....
Recompiling for 32 bit Linux :
cd Eigensoft/src/
make clobber
1) make eigenstrat
2) make pcatoy
** You will need the package 'libf2c' or 'compat-libf2c-34',
and / or 'compat-gcc-34-g77' or for pcatoy.
# ln -s /usr/lib/gcc/i386-redhat-linux/3.4.6/libg2c.so /usr/local/lib
3) make baseprog
4) make convertf
5) make eigenstratQTL
6) make mergeit
7) make pca
8) make smarteigenstrat
9) make smartpca
10) make smartrel
11) make twstats
.....
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
@ rljsrubicon, it appears that EL 4.x is very different
from EL 5.x / CentOS 5.x , Fedora 10
EL 4
# yum install blas lapack
which will provide the -devel files in /usr/lib/ .
# yum install libf2c
see post # 11 for possible linking, libg2c.so.
And please get 'atlas-3.6' here http://www.netlib.org/atlas/archives/linux/
and choose a package resembling your system,
unpack it, and # cp libatlas.a /usr/local/lib/
.....
That's it for EL4, next step is 'make eigenstrat' etc.
.....
I encountered the same problem trying to run Eigenstrat.
There seems to be an artefact in the Makefile in the src directory.
When using 'make' the program searches for packages in /broad/tools/lib64, as you can see when reading the Makefile:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.