LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 01-02-2003, 11:54 PM   #1
Gene Barrie
LQ Newbie
 
Registered: Dec 2002
Posts: 12

Rep: Reputation: 0
Can't compile


I have Redhat 8.0 installed. Today I downloaded all upgrade files from A Redhat FTP site. (Except the kernel) Since all of the downloads were RPMs I upgraded using the rpm -Uvh <Filemane>.rpm command and everything seemed to go smoothly until I tried to install a few tar files using the command line "tar -xzf <Filename>.tar.gz then the "./configure". (Unless otherwise noted in the INSTALL file) Now the tar files will not load. All of them give the error:

"checking for working makeinfo... missing"
"Looking for gcc... no"
"Looking for cc... no"
"Configure: Error: no acceptable cc found in $Path"

What have I done wrong and what can I do to fix it???
 
Old 01-03-2003, 12:04 AM   #2
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
I guess the easiest thing to do is run ldconfig

if that does not work you could search for gcc and see what you have

locate gcc

rpm -qa | grep gcc

maybe you will need to reinstall it, or it's not in your path for some reason
 
Old 01-03-2003, 12:14 AM   #3
Gene Barrie
LQ Newbie
 
Registered: Dec 2002
Posts: 12

Original Poster
Rep: Reputation: 0
David, the ldconfig gave me a "command not found".

The "rpm -q | grep gcc" gave me "libgcc 3.2-7"

What now?

If it makes a difference, I use the KDE desktop and programs. None others are installed so there shouldn't be a conflict there...

TIA...

Last edited by Gene Barrie; 01-03-2003 at 12:23 AM.
 
Old 01-03-2003, 12:42 AM   #4
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
did you ldconfig as root
 
Old 01-03-2003, 12:58 AM   #5
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
what did locate gcc say


you should have something like this, not exactly because this is Slackware

/usr/bin/gcc-2.95.3
/usr/bin/gcc
/usr/bin/i386-slackware-linux-gcc
/usr/bin/g++-gcc-2.95.3
/usr/bin/g77-gcc-2.95.3


ls -l /usr/bin/gcc
lrwxrwxrwx 1 root root 10 Dec 6 11:57 /usr/bin/gcc -> gcc-2.95.3*


ls -l /usr/bin/g++*
lrwxrwxrwx 1 root root 14 Dec 6 11:57 /usr/bin/g++ -> g++-gcc-2.95.3*
-rwxr-xr-x 1 root bin 69872 Feb 22 2002 /usr/bin/g++-gcc-2.95.3*

ls -l /usr/bin/g77*
lrwxrwxrwx 1 root root 14 Dec 6 11:57 /usr/bin/g77 -> g77-gcc-2.95.3*
-rwxr-xr-x 1 root bin 72296 Feb 22 2002 /usr/bin/g77-gcc-2.95.3*

Last edited by DavidPhillips; 01-03-2003 at 12:59 AM.
 
Old 01-03-2003, 01:09 AM   #6
Gene Barrie
LQ Newbie
 
Registered: Dec 2002
Posts: 12

Original Poster
Rep: Reputation: 0
David, i did try it as su and also logged in as root. Same response "command not found". I went ahead and did a system search and found the file in /sbin.
 
Old 01-03-2003, 01:13 AM   #7
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
there needs to be a gcc-???. that's the actual gcc binary

then you must have the links to it, maybe the links are pointing to the old gcc ( broken links ) or they are missing

here is another one you need

ls -l /usr/bin/cc
lrwxrwxrwx 1 root root 3 Dec 6 11:57 /usr/bin/cc -> gcc



I believe you will need at least cc, gcc, gcc, g++, and g77


all of these are links pointing to the new versions binaries

Last edited by DavidPhillips; 01-03-2003 at 01:16 AM.
 
Old 01-03-2003, 01:13 AM   #8
tunedLow
Member
 
Registered: Sep 2001
Location: Salt Lake City
Distribution: Slackware 8.1
Posts: 133

Rep: Reputation: 15
Were you able to compile them beforehand? I installed RedHat once without some of the packages (I was trying to go really light) offered during the install process and had a similar situation. Don't remember exaclty what the package group was called however (perhaps development?). Since the whole thing was so new I just reinstalled and selected those packages. Not that reinstalling is the way to fix things though

Last edited by tunedLow; 01-03-2003 at 01:24 AM.
 
Old 01-03-2003, 01:17 AM   #9
Mety
LQ Newbie
 
Registered: Jan 2003
Distribution: Mandrake 9.2
Posts: 8

Rep: Reputation: 0
Can anyone speak for this in regaurds to Mandrake 9.0? Because I'm getting a VERY simmular problem...

They should be close enough, right?

Last edited by Mety; 01-03-2003 at 01:21 AM.
 
Old 01-03-2003, 01:18 AM   #10
Gene Barrie
LQ Newbie
 
Registered: Dec 2002
Posts: 12

Original Poster
Rep: Reputation: 0
locate gcc is long response. This will take a few minutes..
 
Old 01-03-2003, 01:42 AM   #11
Gene Barrie
LQ Newbie
 
Registered: Dec 2002
Posts: 12

Original Poster
Rep: Reputation: 0
OK here it is...

/usr/bin/winegcc
/usr/lib/gcc-lib
/usr/lib/gcc-lib/i386-redhat-linux
/usr/lib/gcc-lib/i386-redhat-linux/3.2
/usr/lib/gcc-lib/i386-redhat-linux/3.2/tradcpp0
/usr/lib/gcc-lib/i386-redhat-linux/3.2/cpp0
/usr/lib/qt3-gcc3.2
/usr/lib/oppenoffice/program/libcppuhelper3ggc3.so
/usr/lib/oppenoffice/program/libgcc3_uno.so
/usr/lib/oppenoffice/program/libsalhelper3gcc3.so
//usr/lib/oppenoffice/program/libst1port_gcc.so
/usr/lib/gcc-lib/i386-redhat-linux
/usr/lib/gcc-lib/i386-redhat-linux/3.2
/usr/lib/gcc-lib/i386-redhat-linux/3.2/tradcpp0
/usr/lib/gcc-lib/i386-redhat-linux/3.2/cpp0
/usr/lib/qt3-gcc3.2
/usr/lib/openoffice/program/libcppuhelper3gcc3.so
/usr/lib/openoffice/program/libgcc3_uno.so
/usr/lib/openoffice/program/libsalhelper3gcc3.so
/usr/lib/openoffice/program/libstlport_gcc.so
/usr/lib/oppenoffice/program/libucbhelper1gcc3.so
/usr/lib/oppenoffice/program/libvos2gcc3.so
/usr/share/ghostscript/Resource/Cmap/HKgccs-B5-H
/usr/share/ghostscript/Resource/Cmap/HKgccs-B5-V
/usr/share/ghostscript/Resource/ac14/CMap/HKgccs-B5-H
/usr/share/ghostscript/Resource/ac14/CMap/HKgccs-B5-V
/lib/libgcc_s-3.2-20020903.so.1
/lib/libgcc_s.so.1

It appears we are missing a few development resources on our end... I'm going to try to install the development files off the installation CD and see what happens. I hear the RPMs a notorious for screwing up your dependences... You agree?

Last edited by Gene Barrie; 01-03-2003 at 01:52 AM.
 
Old 01-03-2003, 01:59 AM   #12
Gene Barrie
LQ Newbie
 
Registered: Dec 2002
Posts: 12

Original Poster
Rep: Reputation: 0
TunedLow, Yes I was able to compile files before this. I just installed RH 8.0 day before yesterday and have been trying to bring it current. It could be that I don't have all the resources installed, so as I said, I'll go back and reinstall them from the installation CD and see what happens.
 
Old 01-03-2003, 03:02 AM   #13
Gene Barrie
LQ Newbie
 
Registered: Dec 2002
Posts: 12

Original Poster
Rep: Reputation: 0
..

Last edited by Gene Barrie; 01-03-2003 at 03:27 AM.
 
Old 01-03-2003, 03:41 AM   #14
DavidPhillips
LQ Guru
 
Registered: Jun 2001
Location: South Alabama
Distribution: Fedora / RedHat / SuSE
Posts: 7,163

Rep: Reputation: 58
it appears the libs are there, but no binaries
 
Old 01-03-2003, 03:07 PM   #15
Gene Barrie
LQ Newbie
 
Registered: Dec 2002
Posts: 12

Original Poster
Rep: Reputation: 0
David, you've been great help. You kind of pushed me in the right direction. What I finally had to do, was to rebuild the RPM database, then force install krb5-libs to satisfy a few dependencies and everything is normal again...
 
  


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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How do I compile? icecream33 Programming 3 12-20-2017 11:49 AM
compile 2.6.13 jupiter3437 Linux - Software 3 09-09-2005 04:09 PM
ntop compile/post-compile problem? tjb Linux - Software 3 12-28-2004 04:22 PM
Cannot compile c davidtsl Programming 8 12-13-2004 01:36 AM
Compile help Twiggy794 Linux - Software 1 12-03-2003 01:53 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

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

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