当前位置: 技术问答>linux和unix
Unix下安装GCC时,运行Make时出错,急,请高手指教!
来源: 互联网 发布时间:2016-03-05
本文导语: 在安装GCC-3.4.6时,运行./configure后运行make命令,但是提示说Make出错,详细错误信息如下: Make:Makefile:Must bu a separator on line 778. Stop 请问是什么问题?刚开始认为是应该命令行的开头应该TAB键却用了空格键的原因....
在安装GCC-3.4.6时,运行./configure后运行make命令,但是提示说Make出错,详细错误信息如下:
Make:Makefile:Must bu a separator on line 778. Stop
请问是什么问题?刚开始认为是应该命令行的开头应该TAB键却用了空格键的原因.但makefile的778行的代码是这样的,请看:
maybe-info-gdb
maybe-info-expect
maybe-info-guile
maybe-info-tk
maybe-info-tix
maybe-info-libtermcap
maybe-info-utils
不明白到底是那里错了!
急用,请各位高手赐教~!
Make:Makefile:Must bu a separator on line 778. Stop
请问是什么问题?刚开始认为是应该命令行的开头应该TAB键却用了空格键的原因.但makefile的778行的代码是这样的,请看:
maybe-info-gdb
maybe-info-expect
maybe-info-guile
maybe-info-tk
maybe-info-tix
maybe-info-libtermcap
maybe-info-utils
不明白到底是那里错了!
急用,请各位高手赐教~!
|
需要gmake 3.81
./configure
gmake
gmake install
./configure
gmake
gmake install
|
同样的文件? 同样的.so 还是.c啊!
不同系统上的.so是不一样的. 需要重新编译的.
[code=BatchFile]
mymtom@freebsd$ file /usr/lib/libc.so.6
/usr/lib/libc.so.6: cannot open `/usr/lib/libc.so.6' (No such file or directory)
mymtom@freebsd$ file /usr/lib/libc.so
/usr/lib/libc.so: symbolic link to `/lib/libc.so.6'
mymtom@freebsd$ file /lib/libc.so.6
/lib/libc.so.6: ELF 64-bit LSB shared object, AMD x86-64, version 1 (FreeBSD), stripped
mymtom@freebsd$ uname -msr
FreeBSD 6.2-RELEASE amd64
mymtom@freebsd$
[/code]
[code=BatchFile]
mymtom@fc6$ file /usr/lib/libc.so
/usr/lib/libc.so: ASCII C program text
mymtom@fc6$ cat /usr/lib/libc.so
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 ) )
mymtom@fc6$ file /lib/libc.so.6
/lib/libc.so.6: symbolic link to `libc-2.5.so'
mymtom@fc6$ file /lib/libc-2.5.so
/lib/libc-2.5.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, not stripped
mymtom@fc6$
[/code]
不同系统上的.so是不一样的. 需要重新编译的.
[code=BatchFile]
mymtom@freebsd$ file /usr/lib/libc.so.6
/usr/lib/libc.so.6: cannot open `/usr/lib/libc.so.6' (No such file or directory)
mymtom@freebsd$ file /usr/lib/libc.so
/usr/lib/libc.so: symbolic link to `/lib/libc.so.6'
mymtom@freebsd$ file /lib/libc.so.6
/lib/libc.so.6: ELF 64-bit LSB shared object, AMD x86-64, version 1 (FreeBSD), stripped
mymtom@freebsd$ uname -msr
FreeBSD 6.2-RELEASE amd64
mymtom@freebsd$
[/code]
[code=BatchFile]
mymtom@fc6$ file /usr/lib/libc.so
/usr/lib/libc.so: ASCII C program text
mymtom@fc6$ cat /usr/lib/libc.so
/* GNU ld script
Use the shared library, but some functions are only in
the static library, so try that secondarily. */
OUTPUT_FORMAT(elf32-i386)
GROUP ( /lib/libc.so.6 /usr/lib/libc_nonshared.a AS_NEEDED ( /lib/ld-linux.so.2 ) )
mymtom@fc6$ file /lib/libc.so.6
/lib/libc.so.6: symbolic link to `libc-2.5.so'
mymtom@fc6$ file /lib/libc-2.5.so
/lib/libc-2.5.so: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), for GNU/Linux 2.6.9, not stripped
mymtom@fc6$
[/code]
|
我昨天编译了GCC4.2 for ARM的版本
编译时间N长 没等到 就睡了
今天看看结果。
你的错误是shell文件出错了
你是用shell来安装的?
编译时间N长 没等到 就睡了
今天看看结果。
你的错误是shell文件出错了
你是用shell来安装的?