LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-03-2013, 07:45 PM   #1
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Rep: Reputation: Disabled
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]#
 
Old 04-03-2013, 07:52 PM   #2
gaurav6628
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
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...


All the best...
 
Old 04-03-2013, 07:56 PM   #3
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Original Poster
Rep: Reputation: Disabled
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
 
Old 04-03-2013, 08:45 PM   #4
gaurav6628
LQ Newbie
 
Registered: Feb 2013
Posts: 2

Rep: Reputation: Disabled
It seems you have installed a red hat enterprise and you do not have the licences hence giving same error.

Create a yum repository and then try running the following command.
 
Old 04-03-2013, 09:02 PM   #5
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
What distro are you running?

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).
 
Old 04-03-2013, 09:11 PM   #6
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Original Poster
Rep: Reputation: Disabled
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.

Thanks.
 
Old 04-03-2013, 09:14 PM   #7
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Original Poster
Rep: Reputation: Disabled
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.

Please advise. Thanks.
 
Old 04-03-2013, 09:33 PM   #8
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Post the output of:
Code:
cat /etc/*release*
and
Code:
uname -a
That should tell us what disto you're running and how to move forward.
 
1 members found this post helpful.
Old 04-03-2013, 09:38 PM   #9
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Original Poster
Rep: Reputation: Disabled
suicidaleggroll, here is the info

[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

thanks
 
Old 04-03-2013, 11:07 PM   #10
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
Looks like you're running an old RHEL 5 release without a valid license. In which case, follow these instructions to convert to the CentOS repositories:
http://www.unixmen.com/how-to-jul-co...5-to-centos-5/
 
1 members found this post helpful.
Old 04-03-2013, 11:10 PM   #11
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Original Poster
Rep: Reputation: Disabled
Noted suicidaleggroll, will try the provided link and will respond upon completion.

Thanks.
 
Old 04-03-2013, 11:48 PM   #12
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Original Poster
Rep: Reputation: Disabled
suicidaleggroll, please assist.

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?

Thanks
 
Old 04-04-2013, 10:40 AM   #13
suicidaleggroll
LQ Guru
 
Registered: Nov 2010
Location: Colorado
Distribution: OpenSUSE, CentOS
Posts: 5,573

Rep: Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142Reputation: 2142
All the conversion does is change the yum repositories, it shouldn't have any effect on the other settings in the system.
 
Old 04-04-2013, 08:18 PM   #14
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Rocky 9.2
Posts: 18,359

Rep: Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751Reputation: 2751
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.
 
1 members found this post helpful.
Old 04-04-2013, 08:39 PM   #15
awtz
LQ Newbie
 
Registered: Apr 2013
Location: Manila
Posts: 23

Original Poster
Rep: Reputation: Disabled
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.

All, thank you for the assistance
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] configure: error: no acceptable C compiler found in $PATH genderbender Linux - Server 1 11-25-2010 04:05 AM
configure: error: no acceptable C compiler found in $PATH goswamiyashwant Linux - Software 5 05-05-2009 03:10 AM
configure error: no acceptable C compiler found in $PATH yukapuka Linux - Laptop and Netbook 13 02-13-2009 02:53 AM
configure: error: no acceptable C compiler found in $PATH puntino Linux - Newbie 4 11-13-2006 01:48 PM
configure: error: no acceptable C compiler found in $PATH Free-Blade Linux - Newbie 15 09-13-2004 11:33 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 11:38 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration