LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Mandriva (https://www.linuxquestions.org/questions/mandriva-30/)
-   -   Can't find GCC on Mandrake 9.1 (https://www.linuxquestions.org/questions/mandriva-30/cant-find-gcc-on-mandrake-9-1-a-122131/)

lordshipmayhem 12-02-2003 09:08 PM

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?:confused:

teval 12-02-2003 09:23 PM

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.

lordshipmayhem 12-02-2003 09:36 PM

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

jcksrobbins 12-02-2003 09:59 PM

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.

fancypiper 12-02-2003 10:09 PM

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

lordshipmayhem 12-02-2003 10:27 PM

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.

lordshipmayhem 12-02-2003 10:48 PM

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.

fancypiper 12-02-2003 10:55 PM

# 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. :tisk: Make sure you carefully read the README and INSTALL files after extracting and before compiling/installing. :study:

lordshipmayhem 12-02-2003 11:20 PM

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.

fancypiper 12-02-2003 11:28 PM

Can you pick out what you need from the result of

urpmi kernel-source

lordshipmayhem 12-02-2003 11:31 PM

What DOES "urpmi" mean, anyway? It sounds like "burp-me". :)

fancypiper 12-03-2003 11:24 AM

I never have seen it explained.

WAG - ultimate rpm interface - WAG

lordshipmayhem 12-04-2003 07:40 PM

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.

fancypiper 12-04-2003 07:47 PM

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

lordshipmayhem 12-04-2003 08:13 PM

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?


All times are GMT -5. The time now is 08:21 AM.