我在EC2中运行Amazon Linux(红帽操作系统)。
当我尝试rpmbuild tar时,我遇到了这个问题
checking for x86_64-redhat-linux-gcc... no
checking for gcc... no
checking for x86_64-redhat-linux-cc... no
checking for cc... no
checking for x86_64-redhat-linux-cl.exe... no
checking for cl.exe... no
configure: error: in `/home/falko/rpm/BUILD/courier-unicode-1.1':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
error: Bad exit status from /var/tmp/rpm-tmp.RkeUmM (%prep)
当我尝试检查ff时:
$ rpm -q gcc
gcc-4.8.2-3.19.amzn1.noarch
和
$ gcc -v
-bash: gcc: command not found
和
# which gcc
/usr/bin/which: no gcc in (/sbin:/bin:/usr/sbin:/usr/bin:/opt/aws/bin)
我甚至试图再次安装
# yum install gcc
Loaded plugins: priorities, update-motd, upgrade-helper
amzn-main/latest | 2.1 kB 00:00
amzn-updates/latest | 2.3 kB 00:00
Package gcc-4.8.2-3.19.amzn1.noarch already installed and latest version
Nothing to do
甚至删除并重新安装它,我试过了。对我来说没有运气。有人可以请帮助我这个我只是想安装一个邮件服务器。
$ sudo find / -name gcc -exec stat "{}" ";"
File: ‘/usr/include/boost/mpl/aux_/preprocessed/gcc’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: ca01h/51713d Inode: 33142 Links: 2
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2014-03-08 00:09:16.000000000 +0000
Modify: 2014-08-01 10:17:15.793438394 +0000
Change: 2014-08-01 10:17:15.793438394 +0000
Birth: -
File: ‘/usr/lib/gcc’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: ca01h/51713d Inode: 18082 Links: 3
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2014-03-25 01:30:05.000000000 +0000
Modify: 2014-03-25 01:30:05.000000000 +0000
Change: 2014-07-24 00:39:05.646351830 +0000
Birth: -
File: ‘/usr/libexec/gcc’
Size: 4096 Blocks: 8 IO Block: 4096 directory
Device: ca01h/51713d Inode: 18392 Links: 3
Access: (0755/drwxr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2014-03-25 01:30:05.000000000 +0000
Modify: 2014-07-24 00:39:02.206416684 +0000
Change: 2014-07-24 00:39:02.206416684 +0000
Birth: -