- 论坛徽章:
- 0
|
在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 |
|