我是一个新手,在网上学着怎么编译安装软件安装mplayer
[root@localhost MPlayer-1.0pre3]# mkdir /usr/local/mplay
[root@localhost MPlayer-1.0pre3]# ./configure --prefix=/usr/local/mplay/
Detected operating system: Linux
Detected host architecture: i386
Checking for cc version ... not found
Checking for gcc version ... not found
Checking for gcc-3.3 version ... not found
Checking for gcc-3.2 version ... not found
Checking for gcc-3.1 version ... not found
Checking for gcc3 version ... not found
Checking for gcc-3.0 version ... not found
Checking for cc version ... not found
*** Please downgrade/upgrade C compiler to version gcc-2.95.x or gcc-3.x! ***
提示这样的错误,知道gcc版本太低
然后去下载了gcc-4.4.1解压后创建/usr/local/gcc-4.4.1目录,然后转到这个目录执行/mnt/hgfs/tftpd32.351/gcc-4.4.1/configure --prefix=/usr/local/gcc-4.4.1/命令
其中/mnt/hgfs/tftpd32.351/gcc-4.4.1为源代码所在目录/usr/local/gcc-4.4.1/为安装目录出现错误提示
[root@localhost gcc-4.4.1]# /mnt/hgfs/tftpd32.351/gcc-4.4.1/configure --prefix=/usr/local/gcc-4.4.1/
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu
checking for a BSD-compatible install... /usr/bin/install -c
checking whether ln works... yes
checking whether ln -s works... yes
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: in `/usr/local/gcc-4.4.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
让人很迷惑!不知道怎么办了。
yhzm1314 于 2011-04-27 14:36:42发表:
我想知道的是你现在用的是哪一个发行版?
不会是RedHat 9吧!