Add path library

Add path library

Post by Cole Tuining » Thu, 31 Dec 1998 04:00:00

> How to add paths on Solaris 2.5.1 ???

Are you trying to change your path or (glancing at the Subject) your
library path?  It highly depends on your shell.

If you are using csh, tcsh, or something similar:

Temporary path change:
  % setenv PATH "$PATH:/path/you/want/to/add"
Temporary library path change:
  % setenv LD_LIBRARY_PATH "$LD_LIBRARY_PATH:/path/you/want/to/add"
Permanent change:
  Modify ~/.cshrc or ~/.tcshrc as appropriate

If you are using sh, ksh, bash, or something similar:

Temporary path change:
  % export PATH="$PATH:/path/you/want/to/add"
Temporary library path change:
  % export LD_LIBRARY_PATH="$LD_LIBRARY_PATH:/path/you/want/to/add"
Permanent change:
  Dependent on shell, but try editing ~/.profile

Suppose you were an idiot.  And suppose you were a member of Congress.
But I repeat myself.  -Mark Twain

Cole Tuininga
Network Admin
Trade Services, Inc

(603) 427-1100


1. add in the PATH a path if not present in the PATH

I look for a function in POSIX shell. this function must add path in the
$PATH if it isn't present.
by example:
I want add /bin in PATH
echo $PATH
--> /bin:/usr/bin
/bin is in the PATH then i don't add /bin
If I want add /usr/local/bin
/usr/local/bin isn't in the PATH then I add:

< 1K Download

2. eth0 failure........

3. ksh: add path to $PATH only when ot yet in $PATH

4. hacmp & nfs, again

5. Adding library paths to ld? How?

6. Two ethernet cards

7. How to add library-path to enviroment of nobody

8. What Unix Command???

9. How to add some static library into system's default lib path ?

10. adding to library search path

11. adding default include and library search paths?

12. Adding path for shared Libraries?

13. Adding to GCC's default library paths