LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Laptop and Netbook (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/)
-   -   configure error: no acceptable C compiler found in $PATH (https://www.linuxquestions.org/questions/linux-laptop-and-netbook-25/configure-error-no-acceptable-c-compiler-found-in-%24path-704268/)

yukapuka 02-12-2009 03:35 PM

configure error: no acceptable C compiler found in $PATH
 
Hi, i am a newbie to linux and just purchased my eeepc, im currently a student in software so i need to get code blocks running. Unfortunately im finding this to be a very difficult task possibly due to my lack of knowledge in linux and maybe i think even some kind of conflict with the installed OS Fedora 10 and my eepc

at the moment im trying to install CODE::BLOCKS and i keep getting the response of the thread topic.

Please Help

colucix 02-12-2009 03:46 PM

Hi and welcome to LQ! :)

The error message just states you don't have any C compiler installed on your system. This is a basic requirement if you want to build and install a program from source. You can start by issuing the following command as root:
Code:

yum groupinstall "Development Tools"
if the installation is successful you will have a full set of development tools, like gcc, g++, make, ld and so on. After that you can try the compilation of Code::Blocks again.

Take in mind that a lot of software is already compiled for you, that is many developers provide a package containing the binary executables of their programs, ready to run out of the box. This is the case of Code::Blocks. From the download page you have the choice to install a binary package suitable for you system or build it from source. If you want the blue pill, you can try to download and install the binary package for Fedora. Check it at http://www.codeblocks.org/downloads/5#linux.

yukapuka 02-12-2009 03:58 PM

ive tried to issue it that command and it replied by saying could not retrieve mirrorlist http://mirrors.fedoraproject.org/mir...a-10&arch=i386 error was
[Errno 4] IOError : <urlopen erro (-2, 'Name or service not know')>
Error:Cannot retreive repository metadata (repomd.xml) for repository : fedora
Please Verify its path and try again

thanks for the quick reply by the way

yukapuka 02-12-2009 04:02 PM

also to mention i did try and download gcc-4.3.2-7.i386.rpm and run it and it gave me this error 'NoneType' object has no attribute 'getProviders'

colucix 02-12-2009 04:14 PM

Quote:

Originally Posted by yukapuka (Post 3441506)
ive tried to issue it that command and it replied by saying could not retrieve mirrorlist http://mirrors.fedoraproject.org/mir...a-10&arch=i386 error was
[Errno 4] IOError : <urlopen erro (-2, 'Name or service not know')>
Error:Cannot retreive repository metadata (repomd.xml) for repository : fedora

This is a problem with the mirror list, maybe caused by a downtime of the server providing the list of available mirrors. You can try to edit the file /etc/yum.repo.d/fedora.repo by commenting the line containing mirrorlist and uncommenting the line containing baseurl. In this way yum should connect to the download server directly, without going through the mirrorlist. You have to be root to edit this file, anyway.

yukapuka 02-12-2009 04:17 PM

well with that i dont actually have a direct internet connection to the eeepc, im kind of carrying over from my base computer to the eeepc through a usb stick

is there any other way to do this?? and as i mentioned earlier the rpm wont install and it gives me that error

colucix 02-12-2009 04:17 PM

Quote:

Originally Posted by yukapuka (Post 3441515)
also to mention i did try and download gcc-4.3.2-7.i386.rpm and run it and it gave me this error 'NoneType' object has no attribute 'getProviders'

Where did you download it from? You sure is a RPM built for Fedora 10?

yukapuka 02-12-2009 04:20 PM

http://rpmfind.net/linux/rpm2html/search.php?query=gcc

i got it from that site, and it clearly states fedora 10 in the description

so im confident in saying it cant be incompatibility

colucix 02-12-2009 04:21 PM

Quote:

Originally Posted by yukapuka (Post 3441524)
well with that i dont actually have a direct internet connection to the eeepc, im kind of carrying over from my base computer to the eeepc through a usb stick

is there any other way to do this?? and as i mentioned earlier the rpm wont install and it gives me that error

Ok. You cannot use yum without an internet connection, unless you set the DVD installation media as an available repository. You can download the packages you need and install them manually using
Code:

yum localinstall rpmfile
but you will probably miss some dependency and yum will try to download it from internet. Can't you try to connect your eeepc temporarily?

yukapuka 02-12-2009 04:29 PM

umm, unfortunately i cannot i do not have the available hardware, my cable modem is only through lan available.

i will attempt through yum local

yukapuka 02-12-2009 04:34 PM

yeap as you predicted, it failed tried once again to access internet

yukapuka 02-12-2009 04:49 PM

should i try downloading the dvd its 4.9 and install the necesseties from that?

colucix 02-13-2009 01:59 AM

Quote:

Originally Posted by yukapuka (Post 3441570)
should i try downloading the dvd its 4.9 and install the necesseties from that?

Indeed this will save you a lot of headache, due to the dependencies nightmare! ;) Anyway, before attempting to build Code::Blocks from source have you tried the binary version? If it works, you can avoid the installation of the Development Tools (for now).

David the H. 02-13-2009 02:53 AM

Quote:

Originally Posted by yukapuka (Post 3441524)
well with that i dont actually have a direct internet connection to the eeepc, im kind of carrying over from my base computer to the eeepc through a usb stick

is there any other way to do this?? and as i mentioned earlier the rpm wont install and it gives me that error

You might look into setting up internet sharing through your base pc. You may need to install a second ethernet card or use some kind of usb-to-ethernet adapter though, if your system doesn't have the plugs you need.

Of course, if your base PC is connected to the internet through a multi-port external router of some kind then you can probably just plug it in there and use it directly. And most internet routers can also be used for local networking too, as well as being able to act as a general firewall.

Another option might be to just temporarily unplug your base pc and plug the eeepc in for long enough to get your software installed.


All times are GMT -5. The time now is 07:12 AM.