LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   Can't compile (https://www.linuxquestions.org/questions/linux-general-1/can%27t-compile-40152/)

Gene Barrie 01-02-2003 11:54 PM

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

DavidPhillips 01-03-2003 12:04 AM

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

Gene Barrie 01-03-2003 12:14 AM

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...

DavidPhillips 01-03-2003 12:42 AM

did you ldconfig as root

DavidPhillips 01-03-2003 12:58 AM

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*

Gene Barrie 01-03-2003 01:09 AM

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.

DavidPhillips 01-03-2003 01:13 AM

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

tunedLow 01-03-2003 01:13 AM

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 :)

Mety 01-03-2003 01:17 AM

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?

Gene Barrie 01-03-2003 01:18 AM

locate gcc is long response. This will take a few minutes..

Gene Barrie 01-03-2003 01:42 AM

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?

Gene Barrie 01-03-2003 01:59 AM

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.

Gene Barrie 01-03-2003 03:02 AM

..

DavidPhillips 01-03-2003 03:41 AM

it appears the libs are there, but no binaries

Gene Barrie 01-03-2003 03:07 PM

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...


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