How to install gcc in mandriva 2009 (with NO internet @linux)?
MandrivaThis Forum is for the discussion of Mandriva (Mandrake) Linux.
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.
How to install gcc in mandriva 2009 (with NO internet @linux)?
Mandriva linux 2009, One (dont have gcc installed).
First of all, i do not have internet in linux, so i can't use install and remove manager to download .rpm files =/ And i won't have it any time soon
What i've tried is searching for .rpm files in the net, but everything i found belonged to other versions (like mandriva 2007 or 2008) and failed to install. I also tried to install as explained in here: http://gcc.gnu.org/install/
but it seems to be really complicated, and there was this phrase: "when configuring a native system, either cc or gcc must be in your path or you must set CC in your environment before running configure. Otherwise the configuration scripts may fail. " seems like it needs a compiler in the system for installation, so it doesnt work for me since i dont have a compiler.
I guess the easiest way would be getting .rpm file of gcc for mandriva 2009 but i just fail to find it. Can you give me link or offer another way to solve this? Thanks in advance.
In general, installing GCC *shouldn't* be a problem. On Mandriva, or on *any* flavor of Linux.
Q: How did you install Mandriva itself? From DVD or CD?
Q: How can you copy media (e.g. an RPM file) to Mandriva?
You say you don't have Internet: is the box not connected to the Internet, or you just haven't configured TCP/IP with Mandriva yet?
How *do* you copy files back and forth? Do you have a CD/DVD reader? A local LAN? None of the above?
In general, installing GCC *shouldn't* be a problem. On Mandriva, or on *any* flavor of Linux.
Q: How did you install Mandriva itself? From DVD or CD?
Q: How can you copy media (e.g. an RPM file) to Mandriva?
You say you don't have Internet: is the box not connected to the Internet, or you just haven't configured TCP/IP with Mandriva yet?
How *do* you copy files back and forth? Do you have a CD/DVD reader? A local LAN? None of the above?
A: from CD, (mandriva 2009 One). downloaded from mandriva site .iso file and then burned cd image.
A: i have 2 hard drives, one for windows, another linux. The computer is connected to the Internet at windows, but i do not know the password for connection (which makes it impossible to configure internet at linux). The only person who knows the password is ... unavailable.
i have a CD/DVD reader. I use flash to transfer files. Actually linux sees windows hdd, so i can use linux to transfer files.
-- 1. See if you can install GCC directly from your setup CD
-- There's no software at mandriva One cd, as far as i can see =/
There's almost certainly no problem here - what you're trying to do is probably actually very easy.
... However ...
I don't happen to have a copy of Mandriva 2009 handy, so I'm not prepared to give you the kind of step-by-step instructions that would help you best.
SUGGESTION:
1. Try one more time to install from CD:
a) Go into your Mandriva GUI (I presume you have a GUI)
b) Mount your CD (I presume you can mount it, and see if from your GUI)
c) Go into your GUI's "package manager" (for example, into "Mandrake Control Center", an equivalent to Windows Control Panel) and see if there's an option for installing software
3. Post the following two questions:
a) How do I find a compatible version of GCC and install it?
b) How can I connect to the Internet without knowing the password
I believe you probably have "Gcc" on your CD. If not, I believe it should not be difficult to find it. But, unfortunately, I can't tell you exactly how to do it. The folks at mandrivausers.org probably can.
I also believe that if Windows can use the Internet, Linux can, too. All you need to do is configure Linux to use "DHCP" (which Windows calls "Assign IP address automatically"). This, too, is probably easy. And mandrivausers.org can probably best tell you how to do it.
'Hope that helps .. PSM
PS:
If you do post to Mandrivausers.org, I would probably make two, separate posts: one for each question ("GCC" and "DHCP").
ALSO: once you get everything working (and I assure you that you will ;-)), then please post back to LQ how you did it!
I think the easiest way for you to get the software you need may be to download either the two CD or the DVD installer set and burn the image(s) to disk. Then you have any additional packages on which the gcc package may depend.
You can get either installer set from the ftp site from which you got the Mandriva One image. If you do not know the ftp site's URI, you can go to the Mandriva Download Page, select your country in the drop down list under the Public Mirror Network banner, then choose a location near you from the resulting list.
You can add these additional CD's to your Package managers sources list, then use the software installer to install gcc. Admittedly, there is a fair amount of preparation involved with my suggestion, but once you have things set up, you will be able to add other software to your system far more easily, at least until you can get the information you need to connect Linux directly to the Internet.
There's almost certainly no problem here - what you're trying to do is probably actually very easy.
... However ...
I don't happen to have a copy of Mandriva 2009 handy, so I'm not prepared to give you the kind of step-by-step instructions that would help you best.
SUGGESTION:
1. Try one more time to install from CD:
a) Go into your Mandriva GUI (I presume you have a GUI)
b) Mount your CD (I presume you can mount it, and see if from your GUI)
c) Go into your GUI's "package manager" (for example, into "Mandrake Control Center", an equivalent to Windows Control Panel) and see if there's an option for installing software
3. Post the following two questions:
a) How do I find a compatible version of GCC and install it?
b) How can I connect to the Internet without knowing the password
I believe you probably have "Gcc" on your CD. If not, I believe it should not be difficult to find it. But, unfortunately, I can't tell you exactly how to do it. The folks at mandrivausers.org probably can.
I also believe that if Windows can use the Internet, Linux can, too. All you need to do is configure Linux to use "DHCP" (which Windows calls "Assign IP address automatically"). This, too, is probably easy. And mandrivausers.org can probably best tell you how to do it.
Add and remove software manager in linux doesnt like the linux disk for some reason =/ it says something like "failed to migrate removable device, ignoring media". I tried checking different options there but it didnt work. I copied the cd contents to disk, then it said somethin like "gehndlistr failed on <address of the directory>" or "unable to access media" t.t
i posted the stuff u told me at mandriva users, ! *tired but have to get this crap working*
I think the easiest way for you to get the software you need may be to download either the two CD or the DVD installer set and burn the image(s) to disk. Then you have any additional packages on which the gcc package may depend.
You can get either installer set from the ftp site from which you got the Mandriva One image. If you do not know the ftp site's URI, you can go to the Mandriva Download Page, select your country in the drop down list under the Public Mirror Network banner, then choose a location near you from the resulting list.
You can add these additional CD's to your Package managers sources list, then use the software installer to install gcc. Admittedly, there is a fair amount of preparation involved with my suggestion, but once you have things set up, you will be able to add other software to your system far more easily, at least until you can get the information you need to connect Linux directly to the Internet.
this didnt work out. i dled the files and tried to install them with install and remove manager from linux. I got this error: "Sorry, the following package cannot be selected: - gcc-4.3.2-3mnb2.i586 (due to unsatisfied manbo-files-gcc[== 4.3.2])"
I'm afraid that what u said here might not work if this message is connected with the packages. I mean , i think it's possible that even if i dl what u told me, i will still get this message when trying to install gcc. But i should check it.
Not the question you asked, but -- if the "password" you don't have is used to access the ISP -- why not just call the provider and request a password change? If it's a password to access some local equipment (e.g., DLS modem), there should be a switch -- usually a small hole -- to push to reset the modem to the factory defaults, after which you can change the password to suit yourself. (In the case of equipment, check the manual if you have it, or look at the manufacturer's web site for a copy of the manual.)
Re DSL modem: On my DSL modem from the local 'phone company, the p/w is, by default, the serial number of the modem.
1. Ernie is absolutely correct - if you *can* get the complete DVD (or 2-CD install), then you *should*. It will just make things *so* much easier for you...
2. I want to emphasize - maybe you don't *need* the password for Internet connectivity. If your PC is connected to a router ... and if Windows connects OK ... then Linux might be able to do the same. What you want to do is go into Mandrake Control Center, System configuration, and make sure:
a) your NIC is enabled
b) your NIC is configured to get an IP address automatically (DHCP)
If you have Internet connectivity, then your task becomes exponentially easier.
3. When you get an error like ""failed to migrate removable device", please try to cut/paste (or manually write down) the *exact* message. It helps.
4. Finally, if the RPM installer says it needs "manbo-files-gcc" before it can install GCC...
... did you try to download and install "manbo-files-gcc"?
5. In parallel with your efforts here, please do post those two questions to mandrivausers.org:
a) step-by-step instructions for installing GCC on Mandriva 2009 from RPM
b) step-by-step instructions for enabling an interface and configuring it for DHCP
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.