While using gcc on a newly installed system you may get:
/usr/bin/ld: crt1.o: No such file: No such file or directory
This is a common problem, but with a simple solution.
On debian:
apt-get install libc6-dev
On Fedora:
$ locate crt1.o
/usr/lib/crt1.o
$ rpm -qf /usr/lib/crt1.o
glibc-devel-X.X.X-XX
Then install the package glibc-devel-X.X.X-XX using yum, rpm, etc
78 comments:
Thanks Ana, that was useful..
Yea,
I got it trying to compile wine, in my ia32 chroot environment on my amd64-smp box.
Thanks for clearing it up.
_Michael Whitis
THANK YOU VERY MUCH! It worked for me!
Fixed my prob on ubuntu dapper. Error manifested itself a little less clearly though.
"checking for C compiler default output... configure: error: C compiler cannot create executables"
Perfect! Thanks!
Thanks
Trying to install libvisual on ubuntu breezy.
Worked
Thanks
Thanks
Thanks. That was incredibly useful.
That worked! Thanks!
Hey, thanks. I'm trying to install the latest beta version of gaim using the ubuntu wiki link to "CompileGaim". Thought I'd compile from source so I could keep my current (distro) version of gaim up and running.
This post was greatly instrumental. Apparently Ubuntu doesn't install the neccessary packages to compile by default.
Excelent.!!!
Thanks it worked perfect.
Thank you it helped me out.
Cya :)
Thanks
perfect , greetings from stuttgart
It's help. Thank you very much.
Thank u very much!!
Not it work4me
Thanks Ana,
you have salvaged my research !!
p
Wow! Thanks so much!
Seriously, what a lifesaver. Would have been stuck here until doomsday.
Thanks a million kiddo,
Jason
ONLY A GREAT THANK YOU !!!
Thanks a ton for the debian fix. I am running ubuntu 6.10 and after installing libc6-dev I was able to get gutenprint 5.0.0 to install!
Very helpful...
you star
Simple, clear. Thank you very much!
Simple, clear. Thank you very much!
Found this on google, by searching for the error. Thanks for the help.
Thank you! Helped me out with an install of synergy.
Thanks, this saved me a great deal of frustration
This libc6-devel is default part of raw Debian installation, but it is missing in Ubuntu, which may be confusing even for experienced users.
Thank you very much for this quick solution, it has been very helpful!
THank you very much! Useful easy advice :D
Thanks.
Worked like a charm in Ubuntu Feisty.
Now I can compile my own HelloWorld.c
another Thanks
MUCHAS GRACIAS!
Thanks very much!
Thanks! Though libc6-dev had some dependencies, but finally it worked....thanks a lot.
--Sorower
Thanks a lot!!!
Thanks for this useful bit of information, I was struggling with it for a minute.
Thanks a lot. Saved me a lot of time!
A SO simple SO useful suggestion, that now I love you :-)
I lost at least an hour of my life to this stupid problem, until I found this post. Thank you!
simple and usefull ;-)
Ditto.
thanks fixed my problem
thanks a lot for guiding the masses ;-)
On Ubuntu (7.10): add package 'build-essential' using apt-get or Synaptic.
Thanks Lezhlee and Ana. Much appreciated.
Awsome! worked like a champ.
Thanks so much! A life saver.
Worked for me too on Debian.
Thanks :)
Thanks!
Thanks! Worked for me on Ubuntu Gusty too!
Nice, this solved my problems
Thanks! Thanks to your simple blog post describing the problem and it's solution, I was quickly able to fix this annoying little obstacle! That damned libc6-dev.
Thank you!!
Perfect! I got this trying to configure Apache. Your post is really appreciated.
Greeting Ana, thanks
epic fix. saved my day. THANK YOU!!!
It solved the issue on g77 with my Mint Daryna linux box, thanks! ;)
thanks, man!
this brought me to a resolution for fixing the configure error i got. i had to install the x86 glibc-devel package for my 64-system...
$ yum update glibc-devel.{i386,x86_64}
solve the mystery.
thanks!
Thank you very much!
Thanks much!
Keith
Yea! Fixed my problem for compiling a ruby extension on ubuntu!
it complained about pthread, but the real problem was this.
(apt-get install libc6-dev)
i'm writing this here as this is the first page that comes up on google when searching for that error.
I guess most slackware users already know this, but...
To install glibc on slack, mount the cdrom, go to /slackware/l ("l" stands for libraries) and run "sh install-packages" as root. this will open a dialog with all the packages in that directory. seems i missed glibc on the first install
Thank you!!
That was a great help for me
You put the exact message of the error in the title, so it can be found easily using Google!
Julián, from Argentina
bye!
thanks! i was trying to compile a small program in fortran after upgrading to ubuntu 8.04 and stumbled uppon this problem. never happened before.
greetings from Argentina
chau
thanks, Big thanks
an annoying problem with a very simple solution. thanks so much ana. cheers.
Predictably... thanks, it was driving me nuts!
Thanks! I was trying to run crosstool and this fixed the problem.
Thanks! Worked for me - Ubuntu 8.04 i386. Trying to install QuickSynergy.
Another one! Ubuntu 8.04, installing scribes. Thanks!
thanks, it helped me solve build problem on xubuntu 2.6.2.
THanks for the handy fix!
Thanks, helped me get one step closer to setting up a print server
Thanks buddy its working...
:)
Thx Ana... U saved my life !!!!
Brilliant! Worked like a treat.
Thanks!
Bingo!
got this problem during the oracle 10g x64 installation on rhel5.
I'm hving this issue too trying to install oracle 10g 2 on Oracle Enterprise Linux 64bit.
However the locate returns nothing. ctr1.o also does not exist and the glibc-devel-2.5-42.x86_64.rpm and glibc-devel-2.5-42.i368.rpm are already installed.
Can't solve it. If I find an answer I'll post again
Post a Comment