LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva
User Name
Password
Mandriva This Forum is for the discussion of Mandriva (Mandrake) Linux.

Notices


Reply
  Search this Thread
Old 12-13-2008, 10:42 AM   #1
morganxl
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Rep: Reputation: 0
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.
 
Old 12-13-2008, 11:56 AM   #2
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi -

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?

SUGGESTIONS:
1. See if you can install GCC directly from your setup CD
2. http://mandrivausers.org/index.php?showtopic=4452

'Hope that helps .. PSM
 
Old 12-13-2008, 12:23 PM   #3
morganxl
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by paulsm4 View Post
Hi -

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?

SUGGESTIONS:
1. See if you can install GCC directly from your setup CD
2. http://mandrivausers.org/index.php?showtopic=4452

'Hope that helps .. PSM
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 =/

Last edited by morganxl; 12-13-2008 at 12:38 PM.
 
Old 12-13-2008, 12:59 PM   #4
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
OK -

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

2. Join the Mandriva User's group I mentioned above:
http://mandrivausers.org

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!

Last edited by paulsm4; 12-13-2008 at 01:02 PM.
 
Old 12-13-2008, 02:07 PM   #5
ernie
Senior Member
 
Registered: Nov 2001
Location: Toledo, Ohio - USA
Distribution: Mageia 1
Posts: 1,079
Blog Entries: 4

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

HTH,
 
Old 12-13-2008, 02:30 PM   #6
morganxl
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by paulsm4 View Post
OK -

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

2. Join the Mandriva User's group I mentioned above:
http://mandrivausers.org

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*

Last edited by morganxl; 12-13-2008 at 03:01 PM.
 
Old 12-13-2008, 02:59 PM   #7
morganxl
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by ernie View Post
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.

HTH,
Hmm, i've been told to check this ftp : ftp://ftp.free.fr/mirrors/ftp.mandri.../main/release/
(rpm files for gcc there.)

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.
 
Old 12-13-2008, 03:09 PM   #8
PTrenholme
Senior Member
 
Registered: Dec 2004
Location: Olympia, WA, USA
Distribution: Fedora, (K)Ubuntu
Posts: 4,187

Rep: Reputation: 354Reputation: 354Reputation: 354Reputation: 354
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.
 
Old 12-13-2008, 03:49 PM   #9
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
Hi, again -

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

Good luck .. PSM
 
Old 12-14-2008, 02:06 AM   #10
morganxl
LQ Newbie
 
Registered: Dec 2008
Posts: 5

Original Poster
Rep: Reputation: 0
ok, i've installed gcc, finally. it requires lots of packages so i had to reboot and dl from windows 100 times =/

in case u need this set of packages required to install gcc:

gcc-4.3.2-3mnb2.i586.rpm
manbo-mandriva-files-gcc-4.3.2-1mnb2.i586.rpm
glibc-devel-2.8-1.20080520.5mnb2.i586.rpm
kernel-headers-2.6.27-4mnb2.i586.rpm
binutils-2.18.50.0.8-1mnb2.i586.rpm
libbinutils2-2.18.50.0.8-1mnb2.i586.rpm

actually the list is visa versa - u have to install libbinutils then binutils etc
everything available at ftp://ftp.free.fr/mirrors/ftp.mandri.../main/release/

Last edited by morganxl; 12-14-2008 at 02:15 AM.
 
Old 12-14-2008, 01:06 PM   #11
paulsm4
LQ Guru
 
Registered: Mar 2004
Distribution: SusE 8.2
Posts: 5,863
Blog Entries: 1

Rep: Reputation: Disabled
So now you're going to see if you can get internet access working, right?

And you're going to burn the complete DVD or CD set?

Both mentioned above, and either of which should have prevented you from needing to repeatedly go back to Windows.

Last edited by paulsm4; 12-14-2008 at 04:31 PM.
 
  


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
How to install VMware Workstation on Mandriva 2009 dolphans1 Mandriva 4 07-31-2009 10:25 AM
Mandriva 2009 won't install; something missing? eyeCpc Mandriva 13 02-23-2009 10:46 PM
LXer: How To Install VMware Server 2 On A Mandriva 2009.0 Desktop LXer Syndicated Linux News 0 11-17-2008 09:00 PM
Mandriva Linux 2009 released AdamWill Mandriva 14 10-13-2008 04:30 AM
LXer: Mandriva Linux 2009.0 First Impressions LXer Syndicated Linux News 0 07-13-2008 01:00 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Mandriva

All times are GMT -5. The time now is 04:22 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