LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
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 01-12-2009, 03:58 AM   #1
bcaseytekah
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Rep: Reputation: 0
Add gcc to my path with vi


Hello all, I've tinkered with Linux here and there but until now I haven't really buckled up for a real drive. On Suse 9.1 I'm trying to get OpenVPN setup but when I run ./configure I apparently do not have my PATH pointing to GCC (I don't actually have a Path statement yet). I'll be using vi unless otherwise directed. I've googled for help and found some good stuff but I still need help. I'm a long-time windows user and presently working as a System Admin on Server 2003, AS400/iSeries and RS6000/AIX which are new in my company, but want to get into the depths of Linux. I learn quickly and can handle tech talk so don't spare the lingo (I used to use a Nextel Lingo-LOL).

Thanks and all the best in this young new year!
Bryan
 
Old 01-12-2009, 04:06 AM   #2
arckane
Member
 
Registered: Sep 2005
Location: UK
Distribution: Gentoo/Debian/Ubuntu
Posts: 307

Rep: Reputation: 38
at the CLI, type: which gcc

This should tell you whether you have gcc installed or not. I thought nearly all distos installed this as standard, including OpenSUSE. If it comes back as not having gcc with the which command, you'll need to install it with your package manager.
 
Old 01-12-2009, 04:31 AM   #3
bcaseytekah
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Part of the fail message..

checking whether make sets $(MAKE)... no
checking for gcc... no
checking for cc... no
checking for cc... no
checking for cl... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.

Ran YaST as suggested...same result.

Should $PATH get populated automatically?
 
Old 01-12-2009, 06:28 AM   #4
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
$PATH will contain a list of directories in which executables are to be found. If you had gcc installed, it would normally be in /usr/bin. The error messages you get suggest you don't have gcc installed, so I'd use your distribution's package manager to install it.
 
Old 01-12-2009, 06:44 AM   #5
bcaseytekah
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
Where can I add the desired path?

Ran YaST as noted in my reply.....no dice. What file can I open in vi to verify if and/or add the path I need to get this install done? I have other installs to go and getting this wrapped will expedite my list of programs to load.

On one note my post did give a link to useful resources that might do the trick. I look forward to reading and posting more over time.

Thanks again!
 
Old 01-12-2009, 06:51 AM   #6
jschiwal
LQ Guru
 
Registered: Aug 2001
Location: Fargo, ND
Distribution: SuSE AMD64
Posts: 15,733

Rep: Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671Reputation: 671
Is SuSE 9.1 still supported? The problem could be that the repo doesn't exist anymore, but gcc should be on your installation disks. You also need to install binutils if it isn't installed already. However there should be a package for openvpn. You don't need to build it, however if SuSE 9.1 doesn't have security updates anymore, install a more recent version.

By the way, if you run "echo $PATH" you can see which directories or in your PATH. Directories are usually added to PATH in ~/.profile with a couple statements like:
PATH=$PATH:/usr/local/bin
export PATH

Last edited by jschiwal; 01-12-2009 at 06:54 AM.
 
Old 01-12-2009, 11:16 PM   #7
bcaseytekah
LQ Newbie
 
Registered: Jan 2009
Posts: 4

Original Poster
Rep: Reputation: 0
gcc reply

Thanks jschiwal. I'm at work now but will try the command and see where to go from there. As for using 9.1, I had that on CD from a few yrs ago when a chap I worked with was studying Linux for his certs. He created a couple of CD's for us to learn from.

I also have an aged RH Fedora Core on an old Compaq, both RH and Suse send blanks emails from webmail.....why is that? Sorry if that question belongs in a new thread...pls advise.
 
  


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
add to path FrankBlourtango Linux - Newbie 2 08-06-2007 02:31 PM
Do you add to the path line or make a new path in /etc/profile? M$ISBS Linux - Newbie 2 12-13-2006 03:14 PM
how do i add gcc to the Path list? wonderwizard SUSE / openSUSE 6 02-18-2006 01:14 AM
Add path to @INC deus1 Linux - Software 0 07-27-2005 08:52 AM
How do I add something to my $PATH? iammeuno Linux - Software 1 12-18-2003 05:02 PM


All times are GMT -5. The time now is 03:29 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration