[SOLVED] configure: error: no acceptable C compiler found in $PATH
Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
configure: error: no acceptable C compiler found in $PATH
Please assist. I am new in Linux and tried to install ImageMagick but encountered the following errors.
[root@ACSS-SDDBEASRV02 /]# cd usr/local/bin/
[root@ACSS-SDDBEASRV02 bin]# cd ImageMagick-6.6.9-9
[root@ACSS-SDDBEASRV02 ImageMagick-6.6.9-9]# ./configure
configuring ImageMagick 6.6.9-9
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 whether build environment is sane... yes
checking for a BSD-compatible install... /usr/bin/install -c
checking for a thread-safe mkdir -p... /bin/mkdir -p
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: in `/usr/local/bin/ImageMagick-6.6.9-9':
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details
[root@ACSS-SDDBEASRV02 ImageMagick-6.6.9-9]#
It seems you have not installed development packages while doing installation.
However in case your system is connected to the internet then run following command
yum install gcc*
After that then try to complie your program...
Hopefully your issue shall get resolved else let me know...
Thanks for the reply gaurav6628. Here is the message encountered per your suggestion. Please advise if running is correct.
Also, I am currently connected to the internet.
[root@ACSS-SDDBEASRV02 ImageMagick-6.6.9-9]# yum install gcc*
Loaded plugins: rhnplugin, security
This system is not registered with RHN.
RHN support will be disabled.
Setting up Install Process
No package gcc* available.
Nothing to do
The command given by gaurav will only run on a select few Linux distributions - namely RHEL, CentOS, ScientificLinux, and few others.
Judging by the output of the command, it appears that you might be running an RHEL installation without the necessary support contract, in which case you cannot update or install anything. This is why RHEL should never be installed without the accompanying support contract, it is not a "free" Linux distribution.
If all of the above is true, then your only option is to either re-install a truly free distribution or convert your RHEL installation to a free version. RHEL is compatible with CentOS and ScientificLinux, therefore the easiest solution would be to convert to one of their repositories: http://www.unixmen.com/201201-how-to...to-centos-6-x/
If you want to install a different distribution, then the options are endless. And in the future, it would help if you provided the necessary information for us to answer the question - namely what distribution and version you're running.
And ignoring ALL of that, it is RARELY necessary to compile your own version of ImageMagick on any Linux distro. The vast majority of distros include ImageMagick in the standard repositories, which makes installation trivially easy (unless you're running an unlicensed version of RHEL, in which case see above).
gaurav6628, it seams that I am not able to create a YUM Repository as per Administrative priveledges. Please advise if there is/are another work around for the problem.
suicidaleggroll, please assist. How will I know the distro?
Please assist as this is the scenario happening.
There is currently an installed Linux Server here. I am only trying to access the server through my PC using a root account. FYI, I am not the one who installed the Linux server. As per the problem, I was only asked by my Supervisor to install the ImageMagick and an instruction guide was given but it seams some errors occured while compiling and extracting the ImageMagick tar file.
[root@ACSS-SDDBEASRV02 ImageMagick-6.6.9-9]# cat /etc/*release*
cat: /etc/lsb-release.d: Is a directory
Red Hat Enterprise Linux Server release 5.4 (Tikanga)
[root@ACSS-SDDBEASRV02 ImageMagick-6.6.9-9]# uname -a
Linux ACSS-SDDBEASRV02 2.6.18-164.el5PAE #1 SMP Tue Aug 18 15:59:11 EDT 2009 i686 i686 i386 GNU/Linux
Upon investigation of the Linux server, there are actually 2 connected IP Addresses in the server.
Please advise, if I execute the Conversion of RHEL 5 to CentOS 5, will the other one be affected?
I would also point out to your Supervisor what you are doing. Its possible they do want RH support and have paid for it but not registered that box or are willing to pay to get the RH support.
Do this BEFORE you change repos.
Centos is the same as RHEL, but is free, thus does not have support.
chrism01, thanks for the heads up and I have told it to my supervisor regarding this.
suicidaleggroll, thanks for the info. I have already conducted your instructions on a test server I created and now it works
[root@ACSS-SDDBEASRV02 etc]# gcc --version
gcc (GCC) 4.1.2 20080704 (Red Hat 4.1.2-46)
Copyright (C) 2006 Free Software Foundation, Inc.
This is free software; see the source for copying conditions. There is NO
warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
[root@ACSS-SDDBEASRV02 etc]#
...
...
...
gaurav6628, thanks for the info as well on gcc --version.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.