2018-06-15 08:36 AM
HI Team,
We need to install gcc compiler which is depencency to install the Zabbix agent for monitoring the servers.
But the installation of gcc compiler is getting failed with the following error. Could any one help.
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
configure: error: no acceptable cc found in $PATH
2018-06-15 11:22 AM
It depends on how you're trying to install the GCC compiler. That set of messages looks like a "./configure" command, right before a "make" (the compilation step) and "make install" (the installation process). Is that for preparing to compile the Zabbix agent? Or are you trying to compile GCC and you're seeing this issue? If you're trying to compile GCC, then you'll need a compiler to do it ("chicken and egg" situation).
The easiest way to install GCC on a NetWitness appliance is by getting it from the YUM repository, like this.
"yum install gcc"
That ought to do it. If not, then if you could post your error messages from that command, that would help.
2018-06-15 11:44 AM
Please be careful installing OS packages on your Netwitness servers. If you have to turn on the CentOS repositories be very careful you do not pull in newer packages then are used by the version of Netwitness that you are using. Some newer packages can cause your Netwitness services to stop working correctly. If this happens you may be asked by Netwitness Support to remove the packages that you installed on the server.
We have seen many customers calling into Support requesting assistance with an upgrade that has failed or a service that no longer is working because they accidentally installed something from the CentOS repositories. The best answer is to try what you want to on a test server, not in production, and see how the test server behaves.
2018-06-19 01:27 AM
We haven't enabled the centos repo, so, we have installed the dependencies and installing the gcc compiler.
Please find the error as below:
# ./gcc-4.1.2/configure -prefix=/usr/bin --enable-shared --enable-threads=posix --enable-__cxa_atexit --enable-clocale=gnu --enable-languages=all && make && make install
loading cache ./config.cache
checking host system type... x86_64-unknown-linux-gnu
checking target system type... x86_64-unknown-linux-gnu
checking build system type... x86_64-unknown-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
configure: error: no acceptable cc found in $PATH
2018-06-19 01:27 AM
yes
we are trying on test server itself...
2018-06-29 08:29 AM
As a security best practice it's never a good idea to install gcc on any production level system.
Why aren't you just using the pre-compiled Zabbix agent?
Zabbix agents for RHEL 6.5 and RHEL 7 are available in http://repo.zabbix.com/zabbix/rhel
For Netwitness 11.x and the latest Zabbix you would use the RPM found at http://repo.zabbix.com/zabbix/rhel/7/x86_64/zabbix-release-3.2-1.el17.noarch.rpm then SFTP that to your Netwitness Appliance and rpm -Uvh to install
This would be way more safe and secure than enabling repos and/or installing gcc and compiling from source on a production system.
If you have a specific need to compile the Zabbix package from source, my recommendation would be to create a CentOS VM mirroring the configuration of the RSA Appliance as far as OS, kernel version etc. compile your package and build an RPM from that compilation to upload to the Appliance.
Best regards,
Steve