LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
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 08-15-2003, 09:37 PM   #1
Patchorus
LQ Newbie
 
Registered: Aug 2003
Location: Sweden
Distribution: Fedora core 4
Posts: 25

Rep: Reputation: 15
c compiler??


when i want to ./configure things i get this:

error: no acceptable C compiler found in $PATH

anything i can do to fix this?
 
Old 08-15-2003, 09:49 PM   #2
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
This is an odd one, try typing into a console
/bin/gcc --version

also type

/usr/bin/gcc --version

also type

$PATH

and tell us what you get back. from these three commands.
 
Old 08-15-2003, 09:53 PM   #3
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
# What is the distribution
cat /etc/.product
cat /etc/.issue
cat /etc/issue
cat /etc/issue.net
sysinfo

# What is the running kernel and compiler installed
cat /proc/version

More info, better answers.

How to get good answers with your questions about Linux

# Guides to software management
LNAG - How do I install a program I downloaded from the Internet?
Rute Guide's software explanation
You might want to check out CheckInstall to manage source code installations/uninstallation

Last edited by fancypiper; 08-15-2003 at 09:54 PM.
 
Old 08-15-2003, 09:54 PM   #4
Patchorus
LQ Newbie
 
Registered: Aug 2003
Location: Sweden
Distribution: Fedora core 4
Posts: 25

Original Poster
Rep: Reputation: 15
ok.. here it is:

[root@c(my ip is private) root]# /bin/gcc --version
bash: /bin/gcc: No such file or directory

[root@c(my ip is private) root]# /usr/bin/gcc --version
bash: /usr/bin/gcc: No such file or directory

[root@c(my ip is private) root]# $PATH
bash: /usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/usr/X11R6/bin:/root/bin: No such file or directory
 
Old 08-15-2003, 10:03 PM   #5
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
There is nothing wrong with your path, but you don't have GCC installed at all it appears, The best thing to do is download it for your distro.

If we know the distro we can tell you where you can get it from.
 
Old 08-15-2003, 10:07 PM   #6
Patchorus
LQ Newbie
 
Registered: Aug 2003
Location: Sweden
Distribution: Fedora core 4
Posts: 25

Original Poster
Rep: Reputation: 15
distro?
i have redhat8 if that is of any help?...
 
Old 08-15-2003, 10:14 PM   #7
fancypiper
LQ Guru
 
Registered: Feb 2003
Location: Sparta, NC USA
Distribution: Ubuntu 10.04
Posts: 5,141

Rep: Reputation: 60
Use redhat-config-packages and install what you need. You probably will need kernel-sources installed as well.

Some tips:
# 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.

# Red Hat links
Red Hat Linux Manuals
Get your mp3 support here
Maximum RPM
rpmfind
Easier software management: apt4rpm - Red Carpet
Red Hat 8.0 Tips & Tricks

# Red Hat 7.3 down configuration commands
setup leads to several configuration tools

# Red Hat 7.3 up configuration commands
Configure soundcard:
redhat-config-soundcard
Configure X server:
redhat-config-xfree86
Configure network:
redhat-config-network
Manage software:
redhat-config-packages

# Handling NTFS
New Technology FileSystem (NTFS) HOWTOs
Linux NTFS project

Last edited by fancypiper; 08-15-2003 at 10:16 PM.
 
Old 08-15-2003, 10:17 PM   #8
Patchorus
LQ Newbie
 
Registered: Aug 2003
Location: Sweden
Distribution: Fedora core 4
Posts: 25

Original Poster
Rep: Reputation: 15
ok thanks. youre the king my friend
 
Old 08-15-2003, 10:51 PM   #9
Patchorus
LQ Newbie
 
Registered: Aug 2003
Location: Sweden
Distribution: Fedora core 4
Posts: 25

Original Poster
Rep: Reputation: 15
i got

ls -alc
total 12
drwxr-xr-x 3 root root 4096 Aug 13 11:58 .
drwxr-xr-x 16 root root 4096 Aug 13 11:22 ..
drwxr-xr-x 4 root root 4096 Aug 13 11:58 redhat

where can i get the kernel? it is that i need first right?
just need help with that and ill fix the rest i think :P

Last edited by Patchorus; 08-15-2003 at 11:05 PM.
 
Old 08-15-2003, 11:17 PM   #10
leonscape
Senior Member
 
Registered: Aug 2003
Location: UK
Distribution: Debian SID / KDE 3.5
Posts: 2,313

Rep: Reputation: 48
type:
uname -r

This will tell you what kernel you have. so you can download the kernel source.

type:
gcc -v

Will tell you if gcc is installed.

use redhat-config-packages to install the kernel source that matchs what you got from uname -r.

If nothing came up for gcc -v also install the GNU C Compiler. (usually under gcc)
 
  


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
checking for C compiler default output... configure: error: C compiler cannot create fiorejm Linux - Software 6 11-12-2009 12:35 PM
C++ IDE+Compiler?Java IDE+compiler? Boby Linux - Software 3 05-31-2005 01:12 PM
Compiler conundrum: Which came first, a compiler, or it's source code? fr0zen Programming 21 01-29-2004 04:31 AM
No compiler to compiler the compliler NewtonIX Linux - Newbie 13 11-03-2003 05:32 AM
compile a compiler without a compiler? lackluster Linux - General 18 01-02-2003 07:55 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie

All times are GMT -5. The time now is 09:28 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
Open Source Consulting | Domain Registration