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 06-02-2002, 09:41 PM   #1
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Rep: Reputation: 15
Can somebody please help me with a major installing issue?


Here is the scoop. Everything was going just fine, when all of a sudden I can't compile programs to install them.

When I download a TAR file, it unzips with no problem with TAR ZXVF [filename].tar.gz

When I CD to the directory and type in ./configure I get this:

[DAKPluto@localhost qtella-0.5.3]$ ./configure
loading cache ./config.cache
checking for a BSD compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking whether make sets ${MAKE}... yes
checking for working aclocal... missing
checking for working autoconf... missing
checking for working automake... missing
checking for working autoheader... missing
checking for working makeinfo... missing
checking for c++... no
checking for g++... no
checking for gcc... gcc
checking whether the C++ compiler (gcc ) works... no
configure: error: installation or configuration problem: C++ compiler cannot create executables.

I installed the RPM packages for the latest version of GCC, and that did not help
I am using RedHat 7.3 Any suggestions would be helpful, Thanks
 
Old 06-02-2002, 09:43 PM   #2
ChaosX2
Member
 
Registered: Aug 2001
Location: Sacramento, CA
Distribution: Gentoo 1.4+
Posts: 195

Rep: Reputation: 30
is gcc in your path?
 
Old 06-02-2002, 09:46 PM   #3
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Original Poster
Rep: Reputation: 15
Quote:
Originally posted by ChaosX2
is gcc in your path?
I don't know. How do I do that?

I'm new to Linux in case you didn't notice.
 
Old 06-02-2002, 10:50 PM   #4
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Original Poster
Rep: Reputation: 15
I guess the proper way to phrase the question is:

How do I put GCC in my path, and what is the "path"?
 
Old 06-03-2002, 12:20 AM   #5
Sfin
Member
 
Registered: Apr 2002
Location: Michigan
Distribution: Slackware 8.0
Posts: 197

Rep: Reputation: 30
Well do this to make sure that you have gcc:

open up a console, and type this in:

gcc

then try

g++

you should get a message like this

gcc: No input files --> For gcc
g++: No input files --> For g++

Any message other then Command not Found is good

If you got a command not found then maybe the path where gcc is installed is not in your $PATH.

$PATH is just a variable located in /etc/profile file, that tells Linux where to look for commands.

so what you need to know is find out where the gcc executable is located.

Do this:

which gcc --> Note the location that you get
which g++ --> Note the location that you get

then edit your etc/profile file

you should something that looks like this in it:

$PATH = .......

make sure that the directory that has your gcc + g++ in it is listed in there. If it is not then add a ";" after the last directory, and add the directory where g++, and gcc are after the ";"
 
Old 06-03-2002, 08:29 AM   #6
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Original Poster
Rep: Reputation: 15
Okay, which GCC gave me usr/bin for my location
I checked my profile and this is what I found:

# /etc/profile

# System wide environment and startup programs, for login setup
# Functions and aliases go in /etc/bashrc

pathmunge () {
if ! echo $PATH | /bin/egrep -q "(^|$1($|" ; then
if [ "$2" = "after" ] ; then
PATH=$PATH:$1
else
PATH=$1:$PATH
fi
fi
}

# Path manipulation
if [ `id -u` = 0 ]; then
pathmunge /sbin
pathmunge /usr/sbin
pathmunge /usr/local/sbin
fi

pathmunge /usr/X11R6/bin after

unset pathmunge

# No core files by default
ulimit -S -c 0 > /dev/null 2>&1

USER="`id -un`"
LOGNAME=$USER
MAIL="/var/spool/mail/$USER"

HOSTNAME=`/bin/hostname`
HISTSIZE=1000

if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
INPUTRC=/etc/inputrc
fi

export PATH USER LOGNAME MAIL HOSTNAME HISTSIZE INPUTRC

for i in /etc/profile.d/*.sh ; do
if [ -r "$i" ]; then
. $i
fi
done

unset i

Where do I put the location of GCC? Also of note, g++ brought up a command not found

Which g++ brought up this:

[DAKPluto@localhost DAKPluto]$ which g++
/usr/bin/which: no g++ in (/bin:/usr/bin:/usr/bin/X11:/usr/local/bin:/usr/bin:/usr/X11R6/bin:/home/DAKPluto/bin:/home/DAKPluto/bin)

Last edited by DAKPluto; 06-03-2002 at 08:46 AM.
 
Old 06-03-2002, 01:07 PM   #7
DAKPluto
Member
 
Registered: May 2002
Location: Orlando
Distribution: trying Debian
Posts: 54

Original Poster
Rep: Reputation: 15
Okay, scratch most of the previous stuff.

I have downloaded the TAR for GCC 3.1 (the latest version)

I have gotten the ./configure to work on that file.

Can somebody help me through the install of this? The gcc.gnu.org installation help doesn't really help a newbie like me. It assumes you know a lot about operating a terminal window, which I don't.

If somebody could post for me a nice description on how to properly install this for a RedHat 7.3 box, I would be very happy.

Thanks.
 
  


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
major Gnome window manager issue after installing blackbox buldir Fedora 2 09-08-2004 06:11 PM
MAJOR issue installing RedHat 9 floridagators1 Red Hat 1 05-26-2004 07:00 PM
Major issue installing Mandrake 10.0 floridagators1 Mandriva 1 05-26-2004 05:54 PM
MAJOR usb issue PLZ help. Shad.. Linux - Newbie 0 03-19-2004 05:43 PM
major redhat boot issue ferretmanus Linux - Newbie 2 01-09-2004 06:01 PM

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

All times are GMT -5. The time now is 11:20 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