The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > OS Specific Forums > SUN Solaris
Google UNIX.COM


SUN Solaris The Solaris Operating System, usually known simply as Solaris, is a free Unix-based operating system introduced by Sun Microsystems .

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Spoofing paths. fahadsadah UNIX for Advanced & Expert Users 3 12-26-2007 04:57 AM
create paths alias47 UNIX for Dummies Questions & Answers 4 08-07-2007 06:14 AM
$PWD shows absolute path vs path w/symbolic links kornshellmaven Shell Programming and Scripting 3 06-13-2007 09:15 AM
Paths update phpote UNIX for Dummies Questions & Answers 5 07-25-2001 04:57 AM
paths caiohn UNIX for Dummies Questions & Answers 1 01-17-2001 03:35 PM

Reply
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 05-31-2008
Registered User
 

Join Date: Jan 2008
Posts: 183
Stumble this Post!
How to add new paths to $PATH

Hi all,
I downloaded a tarball of coreutils ....
extracted only to find out that i had to build it...
But when i executed ./configure, this is what i got
Code:
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
configure: autobuild project... GNU coreutils
configure: autobuild revision... 6.4
configure: autobuild hostname... Harivayu
configure: autobuild timestamp... 20080531-213259
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
Upon reading the final few lines i found out that C compiler was not being detected...
this is not possible as gcc and c are both in /usr/sfw/bin/
But when i echoed $PATH...
this destination was not set...
So i wanted to know how to edit $PATH so that i can specify pathsfor gcc and c and make it stay in $PATH over reboots....
I also searched for .bashrc but this not present in solaris (b83)so do i have to write my own .bashrc file,if so how do i do it?

thanks
Reply With Quote
Forum Sponsor
  #2 (permalink)  
Old 05-31-2008
seg seg is offline
Registered User
 

Join Date: Aug 2003
Posts: 87
Stumble this Post!
/etc/profile
Reply With Quote
  #3 (permalink)  
Old 06-01-2008
static's Avatar
Registered User
 

Join Date: May 2008
Location: Dobrich/Bulgaria
Posts: 5
Stumble this Post!
Quote:
Originally Posted by wrapster View Post
Hi all,
I downloaded a tarball of coreutils ....
extracted only to find out that i had to build it...
But when i executed ./configure, this is what i got
Code:
checking build system type... i386-pc-solaris2.11
checking host system type... i386-pc-solaris2.11
configure: autobuild project... GNU coreutils
configure: autobuild revision... 6.4
configure: autobuild hostname... Harivayu
configure: autobuild timestamp... 20080531-213259
checking for a BSD-compatible install... /usr/bin/ginstall -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... build-aux/install-sh -c -d
checking for gawk... gawk
checking whether make sets $(MAKE)... yes
checking for style of include used by make... GNU
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
Upon reading the final few lines i found out that C compiler was not being detected...
this is not possible as gcc and c are both in /usr/sfw/bin/
But when i echoed $PATH...
this destination was not set...
So i wanted to know how to edit $PATH so that i can specify pathsfor gcc and c and make it stay in $PATH over reboots....
I also searched for .bashrc but this not present in solaris (b83)so do i have to write my own .bashrc file,if so how do i do it?

thanks
add these lines:

Code:
PATH="$PATH:$HOME/bin:/usr/sbin:/usr/bin:/root/bin:/usr/bin:/usr/sbin:/usr/local/bin:/usr/local/sbin:/bin:/sbin:/opt/csw/bin:/opt/csw/sbin:/opt/csw/gcc3/bin:/usr/sfw/sbin:/usr/sfw/bin:/opt/csw/mysql5/bin"
export PATH
into your /etc/profile
Reply With Quote
Google The UNIX and Linux Forums
Reply

Thread Tools
Display Modes




All times are GMT -7. The time now is 06:28 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited.
The UNIX and Linux Forums Content Copyright ©1993-2008 The CEP Blog All Rights Reserved -Ad Management by RedTyger Visit The Global Fact Book

Content Relevant URLs by vBSEO 3.2.0