lansh

首页 新随笔 联系 订阅 管理

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 debianUbuntu:
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

posted on 2008-07-01 15:21  lansh  阅读(8963)  评论(1编辑  收藏  举报