免费注册 查看新帖 |

Chinaunix

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

RPM安装MYSQL,./configure报找不到GCC PATH [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2006-12-06 11:16 |只看该作者 |倒序浏览
在RPM安装MYSQL时
./configure 时出错提示
....
configure: error: no acceptable C compiler found in $PATH
思考:
按照提示,我们少了一个C的套件,或者是我的C套件提供的命令没有被包含到$PATH中来
过程:
rpm -qa|grep 'c*'
没有,开始安装
[root@linux RPMS]# rpm -ivh gcc-3.3.2-1.i386.rpm
warning: gcc-3.3.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
        binutils >= 2.14.90.0.4-4 is needed by gcc-3.3.2-1
        cpp = 3.3.2-1 is needed by gcc-3.3.2-1
        glibc-devel >= 2.2.90-12 is needed by gcc-3.3.2-1
看来安装一个套件可能要安装一些关联的套件,只可能只是rpm方式,如果以tar方式倒不一定要,请注意
[root@linux RPMS]# rpm -ivh glibc-kernheaders-2.4-8.36.i386.rpm
warning: glibc-kernheaders-2.4-8.36.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:glibc-kernheaders      ########################################### [100%]
[root@linux RPMS]# rpm -ivh glibc-headers-2.3.2-101.i386.rpm
warning: glibc-headers-2.3.2-101.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:glibc-headers          ########################################### [100%]
[root@linux RPMS]# rpm -ivh glibc-devel-2.3.2-101.i386.rpm
warning: glibc-devel-2.3.2-101.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:glibc-devel            ########################################### [100%]
[root@linux RPMS]# rpm -ivh binutils-2.14.90.0.6-3.i386.rpm
warning: binutils-2.14.90.0.6-3.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:binutils               ########################################### [100%]
[root@linux RPMS]# rpm -ivh gcc-3.3.2-1.i386.rpm
warning: gcc-3.3.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
error: Failed dependencies:
        cpp = 3.3.2-1 is needed by gcc-3.3.2-1
我的cpp套件在第一张光盘里
[root@linux cdrom]# ls
autorun   GPL       README-Accessibility  RPM-GPG-KEY-beta            RPM-GPG-KEY-rawhide
dosutils  images    RELEASE-NOTES         RPM-GPG-KEY-fedora          TRANS.TBL
eula.txt  isolinux  RELEASE-NOTES.html    RPM-GPG-KEY-fedora-rawhide
Fedora    README    RPM-GPG-KEY           RPM-GPG-KEY-fedora-test
[root@linux cdrom]# cd Fedora
[root@linux Fedora]# ls
base  RPMS  TRANS.TBL
[root@linux Fedora]# cd RPMS
[root@linux RPMS]# rpm -ivh cpp-3.3.2-1.i386.rpm
warning: cpp-3.3.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:cpp                    ########################################### [100%]
[root@linux RPMS]# cd;eject
换上第二张
[root@linux Fedora]# ls
RPMS  TRANS.TBL
[root@linux Fedora]# cd RPMS
[root@linux RPMS]# rpm -ivh gcc-3.3.2-1.i386.rpm
warning: gcc-3.3.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:gcc                    ########################################### [100%]
======
[root@linux mysql-4.1.14]# ./configure --prefix=/web/mysql\
> --without-debug\
> with-extra-charsets=gb2312
。。。。。
checking how to run the C++ preprocessor... /lib/cpp
configure: error: C++ preprocessor "/lib/cpp" fails sanity check
See `config.log' for more details.
出错了
[root@linux RPMS]# rpm -ivh libstdc++-devel-3.3.2-1.i386.rpm
warning: libstdc++-devel-3.3.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:libstdc++-devel        ########################################### [100%]
[root@linux RPMS]# rpm -ivh gcc-
gcc-3.3.2-1.i386.rpm       gcc-g77-3.3.2-1.i386.rpm   gcc-java-3.3.2-1.i386.rpm
gcc-c++-3.3.2-1.i386.rpm   gcc-gnat-3.3.2-1.i386.rpm  gcc-objc-3.3.2-1.i386.rpm
[root@linux RPMS]# rpm -ivh gcc-c++-3.3.2-1.i386.rpm
warning: gcc-c++-3.3.2-1.i386.rpm: V3 DSA signature: NOKEY, key ID 4f2a6fd2
Preparing...                ########################################### [100%]
   1:gcc-c++                ########################################### [100%]
./configure --prefix=/web/msyql
..
config.status: ib_config.h is unchanged
config.status: executing depfiles commands
MySQL has a Web site at
http://www.mysql.com/
which carries details on the
latest release, upcoming features, and other information to make your
work or play with MySQL more productive. There you can also find
information about mailing lists for MySQL discussion.
Remember to check the platform specific part of the reference manual for
hints about installing MySQL on your platform. Also have a look at the
files in the Docs directory.
Thank you for choosing MySQL!
...........OK...........


本文来自ChinaUnix博客,如果查看原文请点:http://blog.chinaunix.net/u/27690/showart_210958.html
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

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

清除 Cookies - ChinaUnix - Archiver - WAP - TOP