Latest LQ Deal: Latest LQ Deals
Go Back > Forums > Linux Forums > Linux - Newbie
User Name
Linux - Newbie This 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!


  Search this Thread
Old 11-19-2005, 08:03 AM   #1
LQ Newbie
Registered: Jan 2005
Distribution: Slackware 10.1
Posts: 28

Rep: Reputation: 15
Question compilation issues

Okay, I'm stumped. The only servers I've ever worked with have been Slackware machines, and now I'm helping out some folks who have something else entirely. I'm trying to get the only text editor I've ever used (jove) installed, but I can't compile it (cc: Command not found).

Now, I've configured, compiled, and installed stuff on the Slackware machines I've used, so I know a little. And if I'm not mistaken, this means that the makefile didn't find a compiler.

So, I downloaded the latest gcc. But it needs a compiler as well. Yay. Catch 22s are fun.

So in my searching, I found this in /proc/version:
Linux version 2.4.9-e.65 ( (gcc version 2.96
Linux version 2.4.9-e.65 ( (gcc version 2.96 20000731 (Red Hat Linux 7.2 2.96-129.7.2)) #1 Thu Aug 4 20:19:30 EDT 2005
Now, I haven't ever really used /proc/version (since all the machines I've dealt with have been identical), but this seems to indicate to me that gcc _is_ installed on the machine (and it also seems to indicate that this is a RedHat box, but correct me if I'm wrong). I did a "find /* | grep 'gcc'" and didn't find anything.

Could this mean that my ssh login simply doesn't have permissions to use gcc (this is my first time using ssh rather than telnet or just shell, too, so this isn't familiar territory either)? Or is there more to it? And if this doesn't necessarily mean that gcc is installed, how can I install gcc without a compiler and without physical access to the machine (to install from the RH or whatever disks)?

Thanks in advance (yet again) for the help!
Old 11-19-2005, 03:32 PM   #2
Registered: Mar 2003
Location: Belgium
Distribution: Hardened gentoo
Posts: 323

Rep: Reputation: 30
The gcc version in /proc/version just indicates which version of gcc this kernel was compiled with, and the "red hat linux 7.2..." indicates what machine the kernel was compiled on.
Kernels can be redistributed after compilation, so you still know nothing about which or whether there is a gcc on that particular machine...

Try the command "which gcc" or "whereis gcc". But since your "find" didn't turn up anything, there's probably no gcc on the system.

What you could try is to download binary package of gcc and extract it manually... With some luck this could be found on the web. If there is choice, pick a "statically linked" version: the executable will be a bit bigger, but there will be less problems with libraries etc...

Good luck!


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
Kernel Compilation issues Dr Croubie Linux - General 3 06-09-2005 05:40 AM
IT8212 Compilation Issues under 9.1....<grin> PmCode SUSE / openSUSE 4 12-30-2004 11:34 AM
linux compilation issues.. nkshirsagar Linux - General 0 12-07-2004 12:18 AM
Myth TV compilation issues (again! yay!) ikataii Linux - Software 2 10-28-2004 03:23 AM
Kernel Compilation issues vinaypai Linux - General 7 06-26-2001 03:06 AM > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 02:46 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration