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
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.
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.
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
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.