configuring gcc under Solaris 8 - Solaris
This is a discussion on configuring gcc under Solaris 8 - Solaris ; I installed gcc from the Companion CD under Solaris 8 but I need to
configure it as I put the path of gcc.
Not to always issue :
#/usr/bin/gcc hello.c
but issue :
#gcc hello.c...
-
configuring gcc under Solaris 8
I installed gcc from the Companion CD under Solaris 8 but I need to
configure it as I put the path of gcc.
Not to always issue :
#/usr/bin/gcc hello.c
but issue :
#gcc hello.c
-
Re: configuring gcc under Solaris 8
On Apr 18, 1:49 pm, ehabaziz2...@gmail.com wrote:
> I installed gcc from the Companion CD under Solaris 8 but I need to
> configure it as I put the path of gcc.
> Not to always issue :
> #/usr/bin/gcc hello.c
> but issue :
> #gcc hello.c
Just add gcc to the PATH env variable.
like this:
export PATH=$PATH:/usr/bin
Anoop
-
Re: configuring gcc under Solaris 8
On Apr 18, 10:49 am, ehabaziz2...@gmail.com wrote:
> I installed gcc from the Companion CD under Solaris 8 but I need to
> configure it as I put the path of gcc.
> Not to always issue :
> #/usr/bin/gcc hello.c
> but issue :
> #gcc hello.c
Incomprehensible. Thats like saying you dont have /usr/bin in your
PATH. The companion CD usually installs SW in /opt/sfw/*
I dont use anything that old but lets assume gcc gets put in /opt/sfw/
bin.
Append that to your PATH. Read the man pages of whatever shell you
use,
but heres an example hint:
# echo 'PATH=$PATH:/opt/sfw/bin export PATH' >> /.profile
# . /.profile
-
Re: configuring gcc under Solaris 8
On 18 Apr 2007 11:41:51 -0700, Anoop wrote:
> On Apr 18, 1:49 pm, ehabaziz2...@gmail.com wrote:
>> I installed gcc from the Companion CD under Solaris 8 but I need to
>> configure it as I put the path of gcc.
>> Not to always issue :
>> #/usr/bin/gcc hello.c
>> but issue :
>> #gcc hello.c
>
> Just add gcc to the PATH env variable.
>
> like this:
>
> export PATH=$PATH:/usr/bin
(that's assuming that you're using ksh or bash)
Looking at your shell prompt, I'd also say that you shouldn't work as
root. Create a regular user account, and use that. If you need to do
things that need admin rights, either 'su' to root temporarily, or get
sudo.
A bientot
Paul
-
Re: configuring gcc under Solaris 8
On Apr 18, 12:46 pm, Paul Floyd wrote:
> On 18 Apr 2007 11:41:51 -0700, Anoop wrote:
>
> > On Apr 18, 1:49 pm, ehabaziz2...@gmail.com wrote:
> >> I installed gcc from the Companion CD under Solaris 8 but I need to
> >> configure it as I put the path of gcc.
> >> Not to always issue :
> >> #/usr/bin/gcc hello.c
> >> but issue :
> >> #gcc hello.c
>
> > Just add gcc to the PATH env variable.
>
> > like this:
>
> > export PATH=$PATH:/usr/bin
>
> (that's assuming that you're using ksh or bash)
>
> Looking at your shell prompt, I'd also say that you shouldn't work as
> root. Create a regular user account, and use that. If you need to do
> things that need admin rights, either 'su' to root temporarily, or get
> sudo.
Thats assuming there IS any other account beside root : >
> Paul
Sur Gerry