LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 629|回复: 5

编FC3下译gcc时遇到的问题。

[复制链接]
发表于 2005-5-21 17:00:02 | 显示全部楼层 |阅读模式
在执行make时出现提示:
Configuring in libiberty
configure: error: expected an absolute directory name for --prefix: --with-gcc-version-trigger=/root/gcc-3.4.4/gcc/version.c
make: *** [configure-libiberty] 错误 1
请问这是怎么回事?我以前在编译的时候没有遇到这种情况。
发表于 2005-5-22 10:48:53 | 显示全部楼层
你要用--prefix指定gcc的编译安装的绝对路径,如/user/share/
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-22 11:10:10 | 显示全部楼层
我的具体操作步骤如下:gcc-3.4.4在/usr目录下
mkdir gcc-3.4.4_obj
cd gcc-3.4.4_obj
../gcc-3.4.4/configure --prefix /usr
提示如下:
creating cache ./config.cache
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking build system type... i686-pc-linux-gnu
checking for a BSD compatible install... /usr/bin/install -c
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking for i686-pc-linux-gnu-objcopy... no
checking for objcopy... objcopy
checking for i686-pc-linux-gnu-objdump... no
checking for objdump... objdump
checking for i686-pc-linux-gnu-ar... no
checking for ar... ar
checking for i686-pc-linux-gnu-as... no
checking for as... as
checking for i686-pc-linux-gnu-dlltool... no
checking for dlltool... dlltool
checking for i686-pc-linux-gnu-ld... no
checking for ld... ld
checking for i686-pc-linux-gnu-nm... no
checking for nm... nm
checking for i686-pc-linux-gnu-ranlib... no
checking for ranlib... ranlib
checking for i686-pc-linux-gnu-windres... no
checking for windres... windres
checking whether to enable maintainer-specific portions of Makefiles... no
updating cache ./config.cache
creating ./config.status
creating Makefile
接下来执行:make bootstrap
就提示:
configure: error: expected an absolute directory name for --prefix: --with-gcc-version-trigger=/usr/gcc-3.4.4/gcc/version.c
make: *** [configure-libiberty] 错误 1

我以前编译的时候按同样的步骤执行没有任何问题。第二次执行就不行了。就重新安装了系统,可还是不行。我需要重新编译gcc后安装一个软件。急等,请各位大侠帮帮忙啊,谢谢了先。
回复 支持 反对

使用道具 举报

发表于 2005-5-22 11:45:32 | 显示全部楼层
盘里不是有么?
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-22 13:11:42 | 显示全部楼层
它所指的那个gcc是我tar以后的。我就是要make它啊。
回复 支持 反对

使用道具 举报

 楼主| 发表于 2005-5-22 22:41:29 | 显示全部楼层
各位大侠帮帮忙啊。
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表