LinuxSir.cn,穿越时空的Linuxsir!

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

安装bash-2.05a就出错,郁闷.

[复制链接]
发表于 2003-8-23 16:08:19 | 显示全部楼层 |阅读模式
[lfs@DXY bash-2.05a]$ ./configure --enable-static-link --prefix=$LFS/static --with-curses
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu

Beginning configuration for bash-2.05a for i686-pc-linux-gnu

checking for gcc... gcc -s
checking for C compiler default output... conftest.c
checking whether the C compiler works... configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
[lfs@DXY bash-2.05a]$ ./configure --host --enable-static-link --prefix=$LFS/static --with-curses
configure: WARNING: If you wanted to set the --build type, don't use --host.
    If a cross compiler is detected then cross compile mode will be used.
checking build system type... i686-pc-linux-gnu
checking host system type... Invalid configuration `--enable-static-link': machine `--enable-static' not recognized
configure: error: /bin/sh ./support/config.sub --enable-static-link failed
[lfs@DXY bash-2.05a]$

我的~/.bash_profile
mask 022
LFS=/mnt/lfs
LC_ALL=POSIX
CC='gcc -s'
export LFS LC_ALL CC
平时gcc能够正常编译,
[lfs@DXY bash-2.05a]$ gcc --version
gcc (GCC) 3.2.2 20030313 (Red Hat Linux 3.2.2-10)
Copyright (C) 2002 Free Software Foundation, Inc.
This is free software; see the source for copying conditions.  There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.

其他的环境也设置好了,这是什么原因啊?
帮我看看吧!先谢谢了!!!
发表于 2003-8-23 20:46:04 | 显示全部楼层
我也是一样出错。不过是libncurese出错。我有装这个函数库。但提示c_type出错。具体出错信息下次再发。
发表于 2003-8-23 21:44:47 | 显示全部楼层
我的出错信息是这样的:
/usr/lib/gcc-lib/i386-magic-linux/3.2.2/../../../libcurses.a(lib_termcap.o)(.text+0xcc): In function `skip_zero':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-magic-linux/3.2.2/../../../libcurses.a(lib_tparm.o)(.text+0x1112): In function `parse_format':
: undefined reference to `__ctype_b'
/usr/lib/gcc-lib/i386-magic-linux/3.2.2/../../../libcurses.a(lib_tputs.o)(.text+0x213): In function `tputs':
: undefined reference to `__ctype_b'
collect2: ld returned 1 exit status
make: *** [bash] Error 1
我的ncurse-devel是5。28版本。是redhat8.0的。
 楼主| 发表于 2003-8-24 12:54:01 | 显示全部楼层
各位高手给我一些提示吧?不然我根本就不能继续下去啊!
发表于 2003-8-24 20:51:31 | 显示全部楼层
看来好象是configure没有检测到编译器的正常工作。
把gcc的包,特别是与static有关的包都装上,不行就把gcc全部安装。
 楼主| 发表于 2003-8-25 16:09:56 | 显示全部楼层
和static有关的包?应该怎么查询呢?
rpm -qa |grep gcc
gcc-3.2.2-10
gcc-c++-3.2.2-10
gcc-3.2.2-10
还有其它的吗?
发表于 2003-8-25 16:16:05 | 显示全部楼层
这可能与发行版还有关。
有的发行版,静态编译包放在 developement 包里.
 楼主| 发表于 2003-8-25 17:01:44 | 显示全部楼层
我装的是MagicLinux,公社的,非常好用,我选的是全部安装。静态编译包应该安装了。我的gideon能正常工作。
 楼主| 发表于 2003-8-31 23:10:50 | 显示全部楼层
我看我还是放弃了!!
发表于 2003-9-1 13:21:36 | 显示全部楼层
关于static以前好象讨论过
你装上glibc-static-devel试试看
您需要登录后才可以回帖 登录 | 注册

本版积分规则

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