CentOS5.5,办法想尽,还是装不上GMP。求助!!
本帖最后由 zhkdy 于 2011-04-21 10:41 编辑
用的虚拟机,安装JDK、TOMCAT这两项都很顺利,接下来mysql需要的三个库,安装第一个gmp就出问题。
最初在安装CentOS时,图形界面安装,按默认选项,四个选项中,只安装了第一个,好象desktop。gmp安装不上去,第二次重新安装,把server(第三项加上)里,加上了常用的选项(FTP/www/mysql……等等其它一些),无论用gmp-5.0.0,或者gmp-4.3.2,均无法安装gmp,查了很多资料,依旧无法解决。出现如下提示:
[root@localhost local]# ls
bin etc games include lib libexec sbin share src tomcat-6
[root@localhost local]# ls
bin etc games include lib libexec sbin share src tomcat-6
[root@localhost local]# cd src
[root@localhost src]# ls
apache-tomcat-6.0.32.tar.gz
flash-plugin-10.2.159.1-release.i386.rpm
gcc-4.5.0.tar.gz
gmp-5.0.0
gmp-5.0.0.tar.bz2
gmp-build
jdk-6u24-linux-i586.rpm
jdk-6u24-linux-i586-rpm.bin
mpc-0.8.1.tar.gz
mpfr-2.4.2.tar.bz2
mysql-5.1.30
mysql-5.1.30.tar.gz
sun-javadb-client-10.6.2-1.1.i386.rpm
sun-javadb-common-10.6.2-1.1.i386.rpm
sun-javadb-core-10.6.2-1.1.i386.rpm
sun-javadb-demo-10.6.2-1.1.i386.rpm
sun-javadb-docs-10.6.2-1.1.i386.rpm
sun-javadb-javadoc-10.6.2-1.1.i386.rpm
xf86-video-intel-2.4.0
[root@localhost src]# cd gmp-build
[root@localhost gmp-build]# ../gmp-5.0.0-5.0.0/configure --prefix=/usr/local/gmp-5.0.0
bash: ../gmp-5.0.0-5.0.0/configure: 没有那个文件或目录
[root@localhost gmp-build]# ../gmp-5.0.0-5.0.0/configure --prefix=/usr/local/gmp-5.0.0
bash: ../gmp-5.0.0-5.0.0/configure: 没有那个文件或目录
[root@localhost gmp-build]# ../gmp-5.0.0-5.0.0/configure --prefix=/usr/local/gmp-5.0.0
bash: ../gmp-5.0.0-5.0.0/configure: 没有那个文件或目录
[root@localhost gmp-build]# ../gmp-5.0.0/configure --prefix=/usr/local/gmp-5.0.0
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking compiler cc -O ... no
configure: error: could not find a working compiler, see config.log for details
[root@localhost gmp-build]# ls
cnfm4i.tmp cnfm4p.tmp cnfm4.tmp config.log
[root@localhost gmp-build]# ls
cnfm4i.tmp cnfm4p.tmp cnfm4.tmp config.log
[root@localhost gmp-build]# ../gmp-5.0.0/configure --prefix=/usr/local/gmp-5.0.0
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking compiler cc -O ... no
configure: error: could not find a working compiler, see config.log for details
[root@localhost gmp-build]# ../gmp-4.3.2/configure --prefix=/usr/local/gmp-4.3.2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking compiler cc -O ... no
configure: error: could not find a working compiler, see config.log for details
You have mail in /var/spool/mail/root
[root@localhost gmp-build]# ls
cnfm4i.tmp cnfm4p.tmp cnfm4.tmp config.log
[root@localhost gmp-build]#
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(9)
不过,还有个更郁闷的问题……软件包更新以后,顶上的系统图标不见了,本来么,不使用图标也可以,不过发现最小化窗口以后,再想把最小化的窗口翻出来,屏上就没找不到在哪了……估计和显卡有关系?
楼主是centos,建议用yum install gcc来安装gcc.
前提是虚拟机可以上网
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: pup
Memory : 41 M RSS ( 96 MB VSZ)
Started: Thu Apr 21 04:30:53 2011 - 14:38 ago
State : Sleeping, pid: 2939
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: pup
Memory : 41 M RSS ( 96 MB VSZ)
Started: Thu Apr 21 04:30:53 2011 - 14:40 ago
State : Sleeping, pid: 2939
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: pup
Memory : 41 M RSS ( 96 MB VSZ)
Started: Thu Apr 21 04:30:53 2011 - 14:42 ago
State : Sleeping, pid: 2939
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: pup
Memory : 41 M RSS ( 96 MB VSZ)
Started: Thu Apr 21 04:30:53 2011 - 14:44 ago
State : Sleeping, pid: 2939
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: pup
Memory : 41 M RSS ( 96 MB VSZ)
Started: Thu Apr 21 04:30:53 2011 - 14:46 ago
State : Sleeping, pid: 2939
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: pup
Memory : 41 M RSS ( 96 MB VSZ)
Started: Thu Apr 21 04:30:53 2011 - 14:48 ago
State : Sleeping, pid: 2939
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: pup
Memory : 41 M RSS ( 96 MB VSZ)
Started: Thu Apr 21 04:30:53 2011 - 14:50 ago
State : Sleeping, pid: 2939
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: pup
Memory : 41 M RSS ( 96 MB VSZ)
Started: Thu Apr 21 04:30:53 2011 - 14:52 ago
State : Sleeping, pid: 2939
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: pup
Memory : 41 M RSS ( 96 MB VSZ)
Started: Thu Apr 21 04:30:53 2011 - 14:54 ago
State : Sleeping, pid: 2939
Another app is currently holding the yum lock; waiting for it to exit...
The other application is: pup
虚拟机可以上网的,不过,用您上面的方法,出现如上情况,请问是正常的么?
我是刚接触linux,初学的时候真是费力……
已经下载好了gcc-4.5
重新下载gmp-4.3.2.tar.gz 解压到gmp-4.3.2
新建gmp-build文件夹,并在这个文件夹下执行
../gmp-4.3.2/configure --prefix=/usr/local/gmp-4.3.2
结果如下,请高手指点一下,哪里做错了?
[root@localhost src]# ls
apache-tomcat-6.0.32.tar.gz
flash-plugin-10.2.159.1-release.i386.rpm
gcc-4.5.0
gcc-4.5.0.tar.gz
gmp-4.3.2
gmp-4.3.2.tar.gz
gmp-5.0.0.tar.bz2
gmp-build
jdk-6u24-linux-i586.rpm
jdk-6u24-linux-i586-rpm.bin
mpc-0.8.1.tar.gz
mpfr-2.4.2.tar.bz2
mysql-5.1.30
mysql-5.1.30.tar.gz
sun-javadb-client-10.6.2-1.1.i386.rpm
sun-javadb-common-10.6.2-1.1.i386.rpm
sun-javadb-core-10.6.2-1.1.i386.rpm
sun-javadb-demo-10.6.2-1.1.i386.rpm
sun-javadb-docs-10.6.2-1.1.i386.rpm
sun-javadb-javadoc-10.6.2-1.1.i386.rpm
xf86-video-intel-2.4.0
[root@localhost src]# cd gmp-build
[root@localhost gmp-build]# ls
[root@localhost gmp-build]# ../gmp-4.3.2/configure --prefix=/usr/local/gmp-4.3.2
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking whether to enable maintainer-specific portions of Makefiles... no
checking ABI=32
checking compiler gcc -m32 -O2 -pedantic -fomit-frame-pointer ... no
checking compiler gcc -O2 -pedantic -fomit-frame-pointer ... no
checking compiler icc -no-gcc ... no
checking compiler cc -O ... no
configure: error: could not find a working compiler, see config.log for details
[root@localhost gmp-build]#
楼主修改下,图片没上传?
本帖最后由 zhkdy 于 2011-04-21 10:50 编辑
虚拟机下,网慢……回到windows平台下来写这个,相对快多了,虚拟机下没装五笔输入法,还真不习惯。
有些解压,是在图形界面下完成的。因为是新手,刚接触不久,老平台习惯一时还丢不了,慢慢改正:)
gmp-5.0.0装不上,后来照网上资料,安装gmp-4.3.2,依旧一个样……卡在这里快一周了,就是下不去……郁闷!主要目的就是为了装个MYSQL!
楼主没有安装gcc.
GCC不是要选装GMP的么?我试试……先谢过楼上……