配置zabbix的時候報錯configure: error: no acceptable C compiler found in $PATH
解決辦法:安裝GCC軟件套件
- [root@localhost opt]# pwd
- /opt
- [root@localhost opt]# ls
- MySQL-client-community-5.1.49-1.rhel5.x86_64.rpm zabbix-1.8.10
- MySQL-server-community-5.1.49-1.rhel5.x86_64.rpm zabbix-1.8.10.tar.gz
- [root@localhost opt]# cd zabbix-1.8.10
- [root@localhost zabbix-1.8.10]# ls
- aclocal.m4 build config.guess configure.in CREDITS include m4 man NEWS upgrades
- AUTHORS ChangeLog config.sub COPYING depcomp INSTALL Makefile.am misc README
- bin compile configure create frontends install-sh Makefile.in missing src
- [root@localhost zabbix-1.8.10]# ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
- checking for a BSD-compatible install... /usr/bin/install -c
- checking whether build environment is sane... yes
- checking for a thread-safe mkdir -p... /bin/mkdir -p
- checking for gawk... gawk
- checking whether make sets $(MAKE)... yes
- configure: Configuring
- checking whether make sets $(MAKE)... (cached) yes
- checking build system type... x86_64-unknown-linux-gnu
- checking host system type... x86_64-unknown-linux-gnu
- checking for gcc... no
- checking for cc... no
- checking for cl.exe... no
- configure: error: in `/opt/zabbix-1.8.10':
- configure: error: no acceptable C compiler found in $PATH
- See `config.log' for more details
- [root@localhost zabbix-1.8.10]# ls
- aclocal.m4 build config.guess configure create frontends install-sh Makefile.in missing src
- AUTHORS ChangeLog config.log configure.in CREDITS include m4 man NEWS upgrades
- bin compile config.sub COPYING depcomp INSTALL Makefile.am misc README
- [root@localhost zabbix-1.8.10]# less config.log
- [root@localhost zabbix-1.8.10]# pwd
- /opt/zabbix-1.8.10
- [root@localhost zabbix-1.8.10]# cd /media/RHEL_5.5 x86_64 DVD/Server
- -bash: cd: /media/RHEL_5.5: No such file or directory
- [root@localhost zabbix-1.8.10]# cd /media/RHEL_5.5\ x86_64\ DVD/Server/
- [root@localhost Server]# rpm -ivh kernel-headers-2.6.18-194.el5.x86_64.rpm
- warning: kernel-headers-2.6.18-194.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- 1:kernel-headers ########################################### [100%]
- [root@localhost Server]# rpm -ivh cpp-4.1.2-48.el5.x86_64.rpm
- warning: cpp-4.1.2-48.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- package cpp-4.1.2-48.el5.x86_64 is already installed
- [root@localhost Server]# rpm -ivh glibc-
- glibc-2.5-49.i686.rpm glibc-common-2.5-49.x86_64.rpm glibc-devel-2.5-49.x86_64.rpm glibc-utils-2.5-49.x86_64.rpm
- glibc-2.5-49.x86_64.rpm glibc-devel-2.5-49.i386.rpm glibc-headers-2.5-49.x86_64.rpm
- [root@localhost Server]# rpm -ivh glibc-headers-2.5-49.x86_64.rpm
- warning: glibc-headers-2.5-49.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- 1:glibc-headers ########################################### [100%]
- [root@localhost Server]# rpm -ivh glibc-devel-2.5-49.
- glibc-devel-2.5-49.i386.rpm glibc-devel-2.5-49.x86_64.rpm
- [root@localhost Server]# rpm -ivh glibc-devel-2.5-49.x86_64.rpm
- warning: glibc-devel-2.5-49.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- 1:glibc-devel ########################################### [100%]
- [root@localhost Server]# rpm -ivh gcc
- gcc-4.1.2-48.el5.x86_64.rpm gcc-c++-4.1.2-48.el5.x86_64.rpm gcc-objc-4.1.2-48.el5.x86_64.rpm
- gcc44-4.4.0-6.el5.x86_64.rpm gcc-gfortran-4.1.2-48.el5.x86_64.rpm gcc-objc++-4.1.2-48.el5.x86_64.rpm
- gcc44-c++-4.4.0-6.el5.x86_64.rpm gcc-gnat-4.1.2-48.el5.x86_64.rpm
- gcc44-gfortran-4.4.0-6.el5.x86_64.rpm gcc-java-4.1.2-48.el5.x86_64.rpm
- [root@localhost Server]# rpm -ivh gcc-4.1.2-48.el5.x86_64.rpm
- warning: gcc-4.1.2-48.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- error: Failed dependencies:
- libgomp >= 4.1.2-48.el5 is needed by gcc-4.1.2-48.el5.x86_64
- [root@localhost Server]# rpm -ivh libgomp-4.4.0-6.el5.
- libgomp-4.4.0-6.el5.i386.rpm libgomp-4.4.0-6.el5.x86_64.rpm
- [root@localhost Server]# rpm -ivh libgomp-4.4.0-6.el5.x86_64.rpm
- warning: libgomp-4.4.0-6.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- 1:libgomp ########################################### [100%]
- [root@localhost Server]#rpm -ivh gcc-4.1.2-48.el5.x86_64.rpm
- warning: gcc-4.1.2-48.el5.x86_64.rpm: Header V3 DSA signature: NOKEY, key ID 37017186
- Preparing... ########################################### [100%]
- 1:gcc ########################################### [100%]
- [root@localhost Server]#
- [root@localhost zabbix-1.8.10]# ./configure --enable-server --enable-agent --with-mysql --with-net-snmp --with-jabber --with-libcurl
- checking for a BSD-compatible install... /usr/bin/install -c
- checking whether build environment is sane... yes
- checking for a thread-safe mkdir -p... /bin/mkdir -p
- checking for gawk... gawk
- checking whether make sets $(MAKE)... yes
- configure: Configuring
- checking whether make sets $(MAKE)... (cached) yes
- checking build system type... x86_64-unknown-linux-gnu
- checking host system type... x86_64-unknown-linux-gnu
- checking for gcc... gcc
- checking whether the C compiler works... yes
- checking for C compiler default output file name... a.out
- checking for suffix of executables...
- checking whether we are cross compiling... no
- checking for suffix of object files... o
- checking whether we are using the GNU C compiler... yes
- checking whether gcc accepts -g... yes
- checking for gcc option to accept ISO C89... none needed
- checking for style of include used by make... GNU
- checking dependency style of gcc... gcc3