linux系统下 configure: error: cannot run C compiled programs.
请不要随意复制其他地方的答案,谢谢!我在CentOS6.5系统下安装yasm时出问题了执行#./configure出现了以下问题:********************...
请不要随意复制其他地方的答案,谢谢!
我在CentOS6.5系统下安装yasm时出问题了
执行
# ./configure
出现了以下问题:
****************************
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
log内容如下:
# vi config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by yasm configure 1.2.0, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = *******
uname -m = x86_64
uname -r = 3.14.17
uname -s = Linux
uname -v = #1 SMP Mon Aug 18 11:05:36 CST 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/jre/bin
PATH: /usr/lib64/qt-3.3/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
"config.log" 304L, 8411C
后来执行:
#./configure --host=x86_64
又这样报错:
configure: error: C preprocessor "/lib/cpp" fails sanity check 展开
我在CentOS6.5系统下安装yasm时出问题了
执行
# ./configure
出现了以下问题:
****************************
configure: error: cannot run C compiled programs.
If you meant to cross compile, use `--host'.
See `config.log' for more details
log内容如下:
# vi config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.
It was created by yasm configure 1.2.0, which was
generated by GNU Autoconf 2.68. Invocation command line was
$ ./configure
## --------- ##
## Platform. ##
## --------- ##
hostname = *******
uname -m = x86_64
uname -r = 3.14.17
uname -s = Linux
uname -v = #1 SMP Mon Aug 18 11:05:36 CST 2014
/usr/bin/uname -p = unknown
/bin/uname -X = unknown
/bin/arch = x86_64
/usr/bin/arch -k = unknown
/usr/convex/getsysinfo = unknown
/usr/bin/hostinfo = unknown
/bin/machine = unknown
/usr/bin/oslevel = unknown
/bin/universe = unknown
PATH: /usr/local/jre/bin
PATH: /usr/lib64/qt-3.3/bin
PATH: /usr/local/sbin
PATH: /usr/local/bin
PATH: /sbin
PATH: /bin
PATH: /usr/sbin
"config.log" 304L, 8411C
后来执行:
#./configure --host=x86_64
又这样报错:
configure: error: C preprocessor "/lib/cpp" fails sanity check 展开
4个回答
展开全部
你没有C编译器。装上就OK了。或者是环境变量不对。
更多追问追答
追问
#gcc -v显示
gcc version 4.4.7 20120313 (Red Hat 4.4.7-4) (GCC);
不过我的是CentOS系统,它怎么显示是Red Hat 4.4.7-4?
另外,你说的环境变量应该怎么查看是否正确? 我是菜鸟
追答
# yum install glibc-headers
# yum install gcc-c++
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
把gcc g++装上
追问
Package gcc-4.4.7-4.el6.x86_64 already installed and latest version
Package gcc-c++-4.4.7-4.el6.x86_64 already installed and latest version
都已经安装过的哦
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
因为CentOS是redhat的免费版本。新手还是使用redhat吧,CentOS什么都需要自己安装,挺烦的。
追问
可是现在有个软件必须要在CentOS上测试
本回答被网友采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
centos要能连上网的话, 直接用yum安装?
追问
联网能够安装较低版本的yasm1.1.0, 可是我安装后续的程序时需要yasm1.2.0版本以上,还有其他办法吗?谢谢
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询