LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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-02-2003, 09:08 PM   #1
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Rep: Reputation: 15
Question Can't find GCC on Mandrake 9.1


I am trying to install the Alcatel Speedtouch configuration script from Sourceforge.net, and I keep running into one error, the script is looking for but cannot find the GCC compiler.

I've tried to load GCC from the source disks (I have the two direct from Mandrake), but according to the Mandrake software management program, it's not there.

According to the file management system in Root, it ain't installed on the hard drive. That matches with speedtouchconf.sh

Am I missing something incredibly, stupidly obvious here? (That would NOT be a surprise, I can be incredibly obtuse sometimes...)

I keep hearing that if I install Development it'll install, but I've already tried that.

Where is it? What am I missing, or what am I doing wrong?
 
Old 12-02-2003, 09:23 PM   #2
teval
Member
 
Registered: Jul 2003
Location: Toronto, Canada
Distribution: Gentoo
Posts: 720

Rep: Reputation: 30
gcc should always, always, always be installed.
I don't think there is any sane distro that doesn't install gcc (I'm not even very sure how well the system would work without it since you always have to install things)
Try typing in,

gcc -v

At a console.
 
Old 12-02-2003, 09:36 PM   #3
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
As you suggested, Teval, I typed in console: gcc -v
I used both the user ID and ROOT. Same results both times.

And I quote:

bash: gcc: command not found
 
Old 12-02-2003, 09:59 PM   #4
jcksrobbins
Member
 
Registered: Oct 2002
Location: Idaho
Posts: 55

Rep: Reputation: 15
If you have configured URPMI, at a terminal as root type:

URPMI gcc

Or, you can the use the GUI to install it:

From the kicker, go to Configuration>Packaging>Install Software. Search for gcc. Click the install button after it finds it and any dependencies. It will take care of the rest.
 
Old 12-02-2003, 10:09 PM   #5
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Actually, it's

urpmi gcc

# Mandrake links
Mandrake home page
Mandrake Users website
Easy urpmi config for Mandrake
urpmi mini-HOWTO
All You Ever Wanted to Know About Urpmi But Never Dared Asking Before
Easy software management: Red Carpet
Maximum RPM
rpmfind
You didn't install the developmental packages? As root, command:
urpmi gcc
An Introduction to the Midnight Commander. You can install it by commanding:
urpmi mc
Midnight Commander home page
 
Old 12-02-2003, 10:27 PM   #6
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
Ok, back in Winblows again.

rpmdrake couldn't find it. I typed in "gcc" and pressed "find". I left it in the default "look at file name" mode.

urpmi returned a "command not found" error, but I'd used block capitals. I'll go back and try it again, after I review the Using Urpmi website that fancypiper has a link to.

And after I convince my cat to get her claws out of my pant cuffs.
 
Old 12-02-2003, 10:48 PM   #7
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
Lower-case urpmi works. Surprise! Here's what I get when I type in "urpmi gcc":
"The following contain gcc:
- gcc2.96-cpp
- libgcci
- gcc-cpp
- gcl-doc"

In rpmdrake, a search for gcc found:
1) In names:
none.
2) In descriptions:
- gdb
- p2c
3) In Files:
- How to French (whoopie.)
- How to Italian (whoopie.)
- lbggi
- man-pages-fr (again, le woop-de-doo.)
- mplayer (not, I think, what I'm looking for)
- tmake
- wine
- zsh
The non-instructional files above look like they just mention gcc in passing.

I suspect it's already on my hard drive, if only I could find it and somehow get it to install properly.
 
Old 12-02-2003, 10:55 PM   #8
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
# What compiler version do I have installed
gcc -v
gcc --version

If not installed, try

urpmi gcc2.96-cpp

You will probably need kernel-source as well.

# Compiling/installing kernel modules
You will need to have installed:
1. The developmental packages (compiler)
2. The kernel source code that matches your running kernel
3. The module source or install code

Check out your system and look under the hood and see if you installed the stuff you need to do the job. Open an x terminal and type in this sequence of commands to see what kernel we are running and see if you have the kernel source installed:
Code:
[fancy@tinwhistle fancy]$ su -
Password:
[root@tinwhistle root]# uname -r
2.4.18-3
I am running kernel version 2.4.18-3. Do I have the proper source code?
Code:
[root@tinwhistle root]# cd /usr/src
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          136 Jun 12 14:53 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
I do have the same kernel version source code installed in the directory /usr/src/linux-2.4.18-3 and there is a symbolic link named linux-2.4 pointing to it.

If you don't see something similiar to this (but in color), you will need to install the kernel source.

NOTE: I noticed that Red Hat didn't make the symbolic link /usr/src/linux that all of the INSTALL files that I have read mentioned that I need, so I may as well make one now to save editing the files in the source code to install.So, I'll make it just now:
Code:
[root@tinwhistle src]# ln -s linux-2.4.18-3 linux         
[root@tinwhistle src]# ls -alc
total 3
drwxr-xr-x    4 root     root          160 Jun 12 15:46 .
drwxr-xr-x   16 root     root          424 Jun  4 12:04 ..
lrwxrwxrwx    1 root     root           14 Jun 12 15:46 linux -> linux-2.4.18-3
lrwxrwxrwx    1 root     root           14 Jun  4 12:11 linux-2.4 -> linux-2.4.18-3
drwxr-xr-x   16 root     root          584 Jun  4 12:11 linux-2.4.18-3
drwxr-xr-x    7 root     root          168 Jun  4 12:08 redhat
[root@tinwhistle src]#
Ah, there it is, so that's done.

Next, did I install the compiler?
Code:
[root@tinwhistle src]# gcc -v          
Reading specs from /usr/lib/gcc-lib/i386-redhat-linux/2.96/specs
gcc version 2.96 20000731 (Red Hat Linux 7.3 2.96-113)
[root@tinwhistle src]#
Yes, I have a compiler installed.

If you don't have those two things installed, you have to install them first off your install CD.

If they are installed, download the source and happy comiling. Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing.

Last edited by fancypiper; 12-02-2003 at 10:58 PM.
 
Old 12-02-2003, 11:20 PM   #9
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
Thanks, Fancypiper. I've made progress, although I'm not there yet.

Results:
- I'm running kernel version 2.4.21-0.13mdk
(Tell me, is mdk where they get Murder-Death-Kill in The Demolition Man?)

Do I have the proper source code? I'm missing a couple of lines, and the first three lines are quite different from your example.

drwxr-xr-x 3 root root 4096 Nov 30 10:02
drxsr-xr-x 13 root root 4096 Nov 30 10:36 /
lrwxrwxrwx 3 root root 4096 Nov 30 10:02 rpm/

So it looks like I don't have the same kernel source code installed, and/or I dont' have a symbolic link named linux-2.4 pointing to it.

I think I need to install the kernel source - which means I need instructions.
 
Old 12-02-2003, 11:28 PM   #10
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
Can you pick out what you need from the result of

urpmi kernel-source
 
Old 12-02-2003, 11:31 PM   #11
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
What DOES "urpmi" mean, anyway? It sounds like "burp-me".
 
Old 12-03-2003, 11:24 AM   #12
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
I never have seen it explained.

WAG - ultimate rpm interface - WAG
 
Old 12-04-2003, 07:40 PM   #13
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
I typed "urpmi kernel-source" and got "no such package"

I'm going to go into rpmdrake and see if there's anything like this package on the Mandrake disks.
 
Old 12-04-2003, 07:47 PM   #14
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 58
rpmdrake is the front end to urpmi, so unless you have configured it for internet sources, all it is aware of is what is on the CDs.

Try configuring urpmi.
Easy urpmi config for Mandrake

Last edited by fancypiper; 12-04-2003 at 07:49 PM.
 
Old 12-04-2003, 08:13 PM   #15
lordshipmayhem
Member
 
Registered: Sep 2003
Location: Toronto
Distribution: Mandriva Powerpack 2007
Posts: 87

Original Poster
Rep: Reputation: 15
The screen you've pointed me to seems to require that I'm on the Internet in Linux. Talk about your catch-22's.

The primary problem is I'm only on the internet in Windoze.

Any suggestions? Any way of loading this manually and working from that?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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
Mandrake cannot find my gcc cajunaggie Linux - Newbie 2 09-30-2004 07:32 AM
ctype_tolower ctype_tupper not find when building GCC 3.2 on mandrake 9.1 with LFS4.1 toon Linux From Scratch 2 10-07-2003 12:39 PM
mandrake 9.1 cant find gcc ziegen Linux - Software 11 09-20-2003 05:36 AM
Still cant find and use gcc linuxlah Linux - Software 3 06-06-2002 12:14 AM
Cant find GCC manzoor Programming 3 10-12-2001 01:46 AM

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

All times are GMT -5. The time now is 06:35 PM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration