免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
12下一页
最近访问板块 发新帖
查看: 16019 | 回复: 17
打印 上一主题 下一主题

CentOS5.5,办法想尽,还是装不上GMP。求助!! [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-04-21 10:27 |只看该作者 |倒序浏览
本帖最后由 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]#

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
2 [报告]
发表于 2011-04-21 10:39 |只看该作者
楼主修改下,图片没上传?

论坛徽章:
0
3 [报告]
发表于 2011-04-21 10:42 |只看该作者
本帖最后由 zhkdy 于 2011-04-21 10:50 编辑

虚拟机下,网慢……回到windows平台下来写这个,相对快多了,虚拟机下没装五笔输入法,还真不习惯。

有些解压,是在图形界面下完成的。因为是新手,刚接触不久,老平台习惯一时还丢不了,慢慢改正:)

gmp-5.0.0装不上,后来照网上资料,安装gmp-4.3.2,依旧一个样……卡在这里快一周了,就是下不去……郁闷!主要目的就是为了装个MYSQL!

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
4 [报告]
发表于 2011-04-21 10:58 |只看该作者
configure: error: could not find a working compiler, see config.log for details

楼主没有安装gcc.

论坛徽章:
0
5 [报告]
发表于 2011-04-21 11:03 |只看该作者
GCC不是要选装GMP的么?我试试……先谢过楼上……

论坛徽章:
0
6 [报告]
发表于 2011-04-21 11:05 |只看该作者
不过,还有个更郁闷的问题……软件包更新以后,顶上的系统图标不见了,本来么,不使用图标也可以,不过发现最小化窗口以后,再想把最小化的窗口翻出来,屏上就没找不到在哪了……估计和显卡有关系?

论坛徽章:
381
CU十二周年纪念徽章
日期:2014-01-04 22:46:58CU大牛徽章
日期:2013-03-13 15:32:35CU大牛徽章
日期:2013-03-13 15:38:15CU大牛徽章
日期:2013-03-13 15:38:52CU大牛徽章
日期:2013-03-14 14:08:55CU大牛徽章
日期:2013-04-17 11:17:19CU大牛徽章
日期:2013-04-17 11:17:32CU大牛徽章
日期:2013-04-17 11:17:37CU大牛徽章
日期:2013-04-17 11:17:42CU大牛徽章
日期:2013-04-17 11:17:47CU大牛徽章
日期:2013-04-17 11:17:52CU大牛徽章
日期:2013-04-17 11:17:56
7 [报告]
发表于 2011-04-21 11:18 |只看该作者
楼主是centos,建议用yum install gcc来安装gcc.
前提是虚拟机可以上网

论坛徽章:
0
8 [报告]
发表于 2011-04-21 11:28 |只看该作者
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,初学的时候真是费力……

论坛徽章:
0
9 [报告]
发表于 2011-04-21 11:31 |只看该作者
已经下载好了gcc-4.5

论坛徽章:
0
10 [报告]
发表于 2011-04-21 12:30 |只看该作者
重新下载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]#
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP