编译,安装glibc2.9求教

wens07 2011-08-30 10:52:32
我是linux新手,最近想编译安装下glibc;我按照glibc中的install的说明,首先进行configure
但是遇到了问题:

按照说明,不能在source code下直接编译,所以我创建了个build目录,在目录中
configure命令如下(其中glibc-2.9是源码目录,而我的build目录就是sourcelibc,跟其为同级):
../glibc-2.9/configure --prefix=/mnt/hgfs/C++/编程资料/c++_source_code/sourceglibc/


错误如下:

....(省略)
checking whether as is GNU as... yes
checking whether ld is GNU ld... yes
checking for as... as
checking version of as... 2.20.1, bad
checking for ld... ld
checking version of ld... 2.20.1, bad
....(省略)

configure: error:
*** These critical programs are missing or too old: as ld
*** Check the INSTALL file for required versions.




我用的是Ubuntu 10.04 LTS - Lucid Lynx, 我也试过apt-get install ld(as) 更新其版本,但不行

我想问的是上面configure的错误就是ld,as版本旧嘛; 如果是,那as,ld要怎么更新其版本;谢谢
还有可以问下怎么知道某个命令是在那个软件包中的,这样我就知道怎么更新啦



...全文
211 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
帅得不敢出门 2011-08-30
  • 打赏
  • 举报
回复
binutils - GNU Binutils

C compiler utilities: ar, as, gprof, ld, nm, objcopy, objdump, ranlib, size, strings, and strip. These utilities are needed whenever you want to compile a program or kernel.

帅得不敢出门 2011-08-30
  • 打赏
  • 举报
回复
升级下binutils

wens07 2011-08-30
  • 打赏
  • 举报
回复
恩,我也在install中看到了

320 * GNU `binutils' 2.15 or later
321
322 You must use GNU `binutils' (as and ld) to build the GNU C library.
323 No other assembler or linker has the necessary functionality at the
324 moment.


还有我就是想问下,那要怎么知道as,ld是哪个软件包中带的命令,有什么命令可以查嘛

23,121

社区成员

发帖
与我相关
我的任务
社区描述
Linux/Unix社区 应用程序开发区
社区管理员
  • 应用程序开发区社区
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧