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

+ Reply to Thread
Results 1 to 5 of 5

Thread: configuring gcc under Solaris 8

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


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


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




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


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


+ Reply to Thread