LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Add gcc to my path with vi (https://www.linuxquestions.org/questions/linux-newbie-8/add-gcc-to-my-path-with-vi-696668/)

bcaseytekah 01-12-2009 02:58 AM

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

arckane 01-12-2009 03:06 AM

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.

bcaseytekah 01-12-2009 03:31 AM

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?

Nylex 01-12-2009 05:28 AM

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

bcaseytekah 01-12-2009 05:44 AM

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!

jschiwal 01-12-2009 05:51 AM

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

bcaseytekah 01-12-2009 10:16 PM

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.


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