Monday, January 30, 2006

crt1.o: No such file: No such file or directory

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:

Unknown said...

Thanks Ana, that was useful..

Anonymous said...

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

Anonymous said...

THANK YOU VERY MUCH! It worked for me!

Anonymous said...

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"

Doctor said...

Perfect! Thanks!

Anonymous said...

Thanks
Trying to install libvisual on ubuntu breezy.
Worked

Anonymous said...

Thanks

Anonymous said...

Thanks

Anonymous said...

Thanks. That was incredibly useful.

Anonymous said...

That worked! Thanks!

Anonymous said...

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.

Anonymous said...

Excelent.!!!
Thanks it worked perfect.

Anonymous said...

Thank you it helped me out.
Cya :)

Anonymous said...

Thanks

Anonymous said...

perfect , greetings from stuttgart

Anonymous said...

It's help. Thank you very much.

Anonymous said...

Thank u very much!!

Not it work4me

Anonymous said...

Thanks Ana,
you have salvaged my research !!
p

Anonymous said...

Wow! Thanks so much!

theHyperaspist said...

Seriously, what a lifesaver. Would have been stuck here until doomsday.

Thanks a million kiddo,

Jason

Anonymous said...

ONLY A GREAT THANK YOU !!!

Anonymous said...

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!

Anonymous said...

Very helpful...

Anonymous said...

you star

Marco said...

Simple, clear. Thank you very much!

Marco said...

Simple, clear. Thank you very much!

Wesley Walser said...

Found this on google, by searching for the error. Thanks for the help.

Nate said...

Thank you! Helped me out with an install of synergy.

Unforeseen said...

Thanks, this saved me a great deal of frustration

Anonymous said...

This libc6-devel is default part of raw Debian installation, but it is missing in Ubuntu, which may be confusing even for experienced users.

Bertu said...

Thank you very much for this quick solution, it has been very helpful!

Anonymous said...

THank you very much! Useful easy advice :D

Anonymous said...

Thanks.

Worked like a charm in Ubuntu Feisty.
Now I can compile my own HelloWorld.c

Anonymous said...

another Thanks

MUCHAS GRACIAS!

Anonymous said...

Thanks very much!

ssorower said...

Thanks! Though libc6-dev had some dependencies, but finally it worked....thanks a lot.

--Sorower

metamatik said...

Thanks a lot!!!

Anonymous said...

Thanks for this useful bit of information, I was struggling with it for a minute.

Unknown said...

Thanks a lot. Saved me a lot of time!

Anonymous said...

A SO simple SO useful suggestion, that now I love you :-)

Anonymous said...

I lost at least an hour of my life to this stupid problem, until I found this post. Thank you!

Anonymous said...

simple and usefull ;-)

Anonymous said...

Ditto.

Anonymous said...

thanks fixed my problem

Anonymous said...

thanks a lot for guiding the masses ;-)

Anonymous said...

On Ubuntu (7.10): add package 'build-essential' using apt-get or Synaptic.

Anonymous said...

Thanks Lezhlee and Ana. Much appreciated.

Anonymous said...

Awsome! worked like a champ.
Thanks so much! A life saver.

Anonymous said...

Worked for me too on Debian.
Thanks :)

Unknown said...

Thanks!

Wilson said...

Thanks! Worked for me on Ubuntu Gusty too!

Anonymous said...

Nice, this solved my problems

Anonymous said...

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!!

Anonymous said...

Perfect! I got this trying to configure Apache. Your post is really appreciated.

Anonymous said...

Greeting Ana, thanks

Anonymous said...

epic fix. saved my day. THANK YOU!!!

Marco Castellani said...

It solved the issue on g77 with my Mint Daryna linux box, thanks! ;)

Anonymous said...

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!

jurry said...

Thank you very much!

Anonymous said...

Thanks much!
Keith

Anonymous said...

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)

Anonymous said...

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

Julián said...

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!

Anonymous said...

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

BBJAM said...

thanks, Big thanks

Anonymous said...

an annoying problem with a very simple solution. thanks so much ana. cheers.

Anonymous said...

Predictably... thanks, it was driving me nuts!

Anonymous said...

Thanks! I was trying to run crosstool and this fixed the problem.

Anonymous said...

Thanks! Worked for me - Ubuntu 8.04 i386. Trying to install QuickSynergy.

Unknown said...

Another one! Ubuntu 8.04, installing scribes. Thanks!

Anonymous said...

thanks, it helped me solve build problem on xubuntu 2.6.2.

Anonymous said...

THanks for the handy fix!

Anonymous said...

Thanks, helped me get one step closer to setting up a print server

Prabhat said...

Thanks buddy its working...
:)

Unknown said...

Thx Ana... U saved my life !!!!

erickr said...

Brilliant! Worked like a treat.

Thanks!

Unknown said...

Bingo!

got this problem during the oracle 10g x64 installation on rhel5.

ckurmann said...

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