LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
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!

Notices

Reply
 
Search this Thread
Old 11-19-2005, 08:03 AM   #1
aunquarra
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 (bhcompile@tweety.build.redhat.com) (gcc version 2.96
Quote:
Linux version 2.4.9-e.65 (bhcompile@tweety.build.redhat.com) (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
nukkel
Member
 
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!
 
  


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
Kernel Compilation issues Dr Croubie Linux - General 3 06-09-2005 05:40 AM
IT8212 Compilation Issues under 9.1....<grin> PmCode Suse/Novell 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


All times are GMT -5. The time now is 09:10 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration