Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
Hello
I want to make daophot fortran codes, so i type make.But after making some codes this error apears:
/usr/bin/ld: cannot find -lgcc_s
collect2: ld returned 1 exit status
make: *** [daophot] Error 1
By the way i added libraries to /etc/apt/sources.list and i have ubunto11.04 and i installed f77.
please help me
thank you
Solution : Some applications will accept a link :
cd /lib/ && sudo ln -s i386-linux-gnu/libgcc_s.so.1
Or : If it must be Ubuntu, use a version,
more suitable for development : Ubuntu 10.04 .
Several special applications can only be compiled in 11.04
by using specially built compilers.
Ubuntu 11.10 is even worse. No extra compilers seem to work.
thanks for your help.
I do your solution but still this error exists.
is there another solution???
my laptop is hp probook and it can not install ubuntu10.10 or 9.10 or ... .It just can install ubuntu11.04.
please take me your help.
Distribution: PCLinuxOS2023 Fedora38 + 50+ other Linux OS, for test only.
Posts: 17,511
Rep:
You can have as many versions of gcc / g++ as you want,
installed at the same time.
The default Ubuntu 11.04 compilers are gcc-4.4, g++-4.4,
gcc-4.5, g++-4.5, gfortran-4.4, gfortran-4.5 .
When g77 was installed, gcc-3.4 was also installed, as dependency.
Binary name = gcc-3.4 . The gcc34-compat : gcc34 ( g++34 ).
I.e. all default and extra compilers have unique binary names :
The commands 'ls /usr/bin/gcc*' and 'ls /usr/bin/g++*' will show.
Using, example :
export CC=gcc-4.4 CXX=g++-4.4 F=gfortran-4.4 && <other-command>
I was getting this same error, "/usr/bin/ld: cannot find -lgcc_s" trying to run configure on an emacs 24.3 bundle on an Amazon Linux box with gcc 4.7.2. knudfl's first response was my best clue as to what the problem was, but I had to dig to find the specifics.
I isolated the problem by creating the simple test file that was failing during configure, conftest.c, and ran:
strace -f gcc conftest.c > strace.dump 2>&1
so I could see what /usr/bin/ld was looking for and where. Ultimately the solution was:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.