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!
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.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
I'm using Mandriva One 2009.1, which I just installed on a non-networked machine (it is not possible to hook it up to the internet). I tried compiling a program using the ./configure and eventually the make command. However, I do not get past the ./configre command without getting errors saying unable to compile because no c compiler can be found. I looked in the software/packages utility and all of the developments tools are installed. I also found a website instructing where to download the rpms for gcc and its dependicies, and tried installing them with no luck. Is there anyway to do it from the cd? Finally, the computer is using i686 architecture, will i586 rpms work for it? i686 rpms seem hard to come by, perhaps that is the wrong route since I have had no success.
If you think that gcc is not installed then the best place to install it from is the installation media for your distribution if you do not want to connect to internet or it is not possible for you to take it online.
I would still recheck if it is installed or not because I think it should get installed in a basic installation. type gcc in terminal without arguments and see what is the output.
Also this could be that the installation path where gcc is installed is not set in your path variable.
No, the necessary rpms are not on the CD AFAIK. In fact, the "make" command is not on the CD along with gcc, so compiling from source is out of the question.
I also found a website instructing where to download the rpms for gcc and its dependicies, and tried installing them with no luck.
That's what you need to do if you can't connect to the mandriva repos on the internet. Exactly what happened when you tried.
Is there anyway to do it from the cd?
Not from the mandriva one cd. You might be able to download the entire mandriva "main" repo for 2009.1 and transfer it to a dvd. There's no way it would fit on a cd however. In addition, you may need the "contrib" repo as well which is very large.
Finally, the computer is using i686 architecture, will i586 rpms work for it?
Yes. You can also use i386 rpms. Mandriva compiles its rpms for i586 for the most part. The architectures are backward compatible so if you have an i686 box it can use i686 rpms and below.
You best bet is to determine the mandriva packages for gcc and all dependencies. Download those rpms from the mandriva repos. Transfer those rpms to a directory on your target machine. Create a urpmi repo for that directory and add it to your urpmi sources and then you should be able to install gcc.
I found all of the dependencies, downloaded them, and transfered them to the desktop. I double click each one, in order, and the package installer took care of the rest. Is this not the correct way to do it?
When I went through all of that, nothing changed when typing man gcc in terminal or trying to compile the c program.
Is gcc in /usr/bin? It should be if you installed the rpm for gcc and dependencies. Did you get any error messages when installing these rpms? I wouldn't be looking at man gcc for evidence of whether gcc was installed or not. Man pages and can have separate packages and may need updating in order to display properly. Look for the executable in /usr/bin instead.
Edit: Just got back to my mandriva 2009.1 box and checked your link with what I have installed. Your link is giving packages for 2009 for starters and the packages on 2009.1 are a little different. Also, the list doesn't have the gcc preprocessor package listed(gcc-cpp-4.3.2-5mnb2) so it can't be complete. gcc won't work without the cpp package installed. Finally, you don't need to have the kernel headers installed unless you are doing some kernel compiling or compiling kernel modules. I'll try to get together a better list for you tonight when I have more time and post it back here.
In the mean time, check what gcc packages are actually installed on your system now by running:
$ rpm -qa | grep gcc
and post the output here.
Last edited by kilgoretrout; 06-25-2009 at 02:46 PM.
i can give you one option how to solve your problem with missing gcc. its not 'the best' way to do but it wil probably works. it worked for me (different packages than gcc but thats not a point) many times when i used slackware when i had problems with missing packages or incorrect versions. basically you have to unpack your rpm packages manually and just copy the files without changing any file priviliges to correct directories. prefect example are slackware's *.tgz packages which are simply *.tar.gz archives. if you can not unpack rpms download gcc + necessary dependencies from slackware page and just copy those folders+files to your mandriva. after that recompile proper gcc from source and that should do the thing - you will have got your gcc installed (from source).