Making the PATH and LD_LIBRARY_PATH permanent

Making the PATH and LD_LIBRARY_PATH permanent

Post by Phil » Thu, 13 Feb 2003 03:03:43



Hi, I am new, very new to Solaris but have used Linux for a while, can
anyone kindly answer these questions:

1. How do I make settings in the PATH and LD_LIBRARY_PATH permanent, I used
the export command to test a new installation of Apache, which promptly
stopped working on a reboot.

2. Why is there no up arrow to recall the last commands?

3. Can the shell be made to work like Linux BASH, with auto complete etc?

Any help would make my first usage of Solaris 9.0 more efficient.

Thanks,

Phil

 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Dave Uhrin » Thu, 13 Feb 2003 04:14:15



> Hi, I am new, very new to Solaris but have used Linux for a while, can
> anyone kindly answer these questions:

> 1. How do I make settings in the PATH and LD_LIBRARY_PATH permanent, I used
> the export command to test a new installation of Apache, which promptly
> stopped working on a reboot.

> 2. Why is there no up arrow to recall the last commands?

> 3. Can the shell be made to work like Linux BASH, with auto complete etc?

If you installed all of the software on both CDs then /usr/bin/bash
exists.

DO NOT make that your root shell!  Create a user account:

# useradd -c 'Phil Whatever' -u 100 -g sysadmin -d /export/home/phil -m -s
/usr/bin/bash phil
# passwd phil

Log out as root, log in as phil and you have your nice Linux-like BASH
available to you.  Customize your shell with ~/.bash_profile.

 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Barry Margoli » Thu, 13 Feb 2003 04:33:28




>Hi, I am new, very new to Solaris but have used Linux for a while, can
>anyone kindly answer these questions:

>1. How do I make settings in the PATH and LD_LIBRARY_PATH permanent, I used
>the export command to test a new installation of Apache, which promptly
>stopped working on a reboot.

Put the commands in your .profile or .login (depending on what shell you
use) so they'll be executed every time you login.

Quote:>2. Why is there no up arrow to recall the last commands?

It depends on what shell you use.  csh and sh don't have it, but most other
shells (e.g. tcsh, ksh, and bash) do.

Quote:>3. Can the shell be made to work like Linux BASH, with auto complete etc?

As someone else said in their response, change your shell to bash.

--

Genuity Managed Services, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Neil W Ricker » Thu, 13 Feb 2003 04:38:06



>1. How do I make settings in the PATH and LD_LIBRARY_PATH permanent, I used
>the export command to test a new installation of Apache, which promptly
>stopped working on a reboot.

You can make your PATH semi-permanent by editing your ".profile"
or perhaps "/etc/default/login".

If you compiled apache properly, it should not need an
LD_LIBRARY_PATH .  If you didn't do it properly, then a work-around
is to define LD_LIBRARY_PATH in the script that starts up apache.  DO
NOT attempt to make it "permanent" or "global".

Quote:>2. Why is there no up arrow to recall the last commands?

Change your user shell to bash.
 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Casper H.S. Di » Thu, 13 Feb 2003 04:54:32



>Hi, I am new, very new to Solaris but have used Linux for a while, can
>anyone kindly answer these questions:
>1. How do I make settings in the PATH and LD_LIBRARY_PATH permanent, I used
>the export command to test a new installation of Apache, which promptly
>stopped working on a reboot.

Use the Solaris supplied version of Apache or build it properly
so LD_LIBRARY_PATH does not need to be set; or read the crle(1m) manual
page.

Quote:>2. Why is there no up arrow to recall the last commands?

Because you use the wrong shell.

Quote:>3. Can the shell be made to work like Linux BASH, with auto complete etc?

Solaris ships with bash (GNU bash, not Linux bash), zsh, tcsh, ksh, to
name just the four shells with completion and up arrows.

Casper
--
Expressed in this posting are my opinions.  They are in no way related
to opinions held by my employer, Sun Microsystems.
Statements on Sun products included here are not gospel and may
be fiction rather than truth.

 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Dave Uhrin » Thu, 13 Feb 2003 05:24:27



Quote:> Solaris ships with bash (GNU bash, not Linux bash), zsh, tcsh, ksh, to
> name just the four shells with completion and up arrows.

You must not ascribe to Mr. Stallman's philosophy that Linux == GNU ;-)
 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Doug McIntyr » Thu, 13 Feb 2003 05:41:47




>> Solaris ships with bash (GNU bash, not Linux bash), zsh, tcsh, ksh, to
>> name just the four shells with completion and up arrows.
>You must not ascribe to Mr. Stallman's philosophy that Linux == GNU ;-)

But anyway, bash has been around years before Linux has..
--

                   Network Engineer/Jack of All Trades
                      Vector Internet Services, Inc.
 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by John D Groenve » Thu, 13 Feb 2003 06:01:12




>You must not ascribe to Mr. Stallman's philosophy that Linux == GNU ;-)

That's certainly *NOT* his philosophy.
<URL:http://www.fsf.org/gnu/linux-and-gnu.html>

At several times its appeared that Sun management has believed they
were synonymous, but I hope that we've fixed that bug.

John

 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Paul Floy » Thu, 13 Feb 2003 05:53:20



> Hi, I am new, very new to Solaris but have used Linux for a while, can
> anyone kindly answer these questions:

> 1. How do I make settings in the PATH and LD_LIBRARY_PATH permanent, I used
> the export command to test a new installation of Apache, which promptly
> stopped working on a reboot.

a) put whatever PATH you want in your .profile/.cshrc
b) do not use LD_LIBRARY_PATH unless necessary: use LD_OPTIONS when you
build packages, and consider using crle

you may also wish to have your startup script sourced when you open a
terminal - see .dtprofile

Quote:> 2. Why is there no up arrow to recall the last commands?

Because either you are using a shell that does not do that, or you are
using one and you have not correctly configured it to respond to the
arrow keys.

Quote:> 3. Can the shell be made to work like Linux BASH, with auto complete etc?

"the shell" is a bit wide of the mark, on Solaris 8, I have bash, csh,
ksh, sh, tcsh and zsh all in /bin. If you want bash, use bash.

A bientot
Paul
--
Paul Floyd                 http://paulf.free.fr (for what it's worth)
Netgear: the worst technical support I've ever encountered.

 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Dave Uhrin » Thu, 13 Feb 2003 06:33:28





>>You must not ascribe to Mr. Stallman's philosophy that Linux == GNU ;-)

That should have been "subscribe".

Quote:> That's certainly *NOT* his philosophy.
> <URL:http://www.fsf.org/gnu/linux-and-gnu.html>

The claim that an OS is GNU because 28% of the size of that OS is GNU is
absurd IMHO but Stallman is certainly entitled to his opinion.
 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Barry Margoli » Thu, 13 Feb 2003 06:51:55







>>>You must not ascribe to Mr. Stallman's philosophy that Linux == GNU ;-)

>That should have been "subscribe".

>> That's certainly *NOT* his philosophy.
>> <URL:http://www.fsf.org/gnu/linux-and-gnu.html>

>The claim that an OS is GNU because 28% of the size of that OS is GNU is
>absurd IMHO but Stallman is certainly entitled to his opinion.

That's not what he claims.  Paraphrasing heavily, the kernel is Linux, the
commands and library are mostly GNU, so the package as a whole should be
called GNU/Linux.  If you layered the BSD utilities and runtime on top of
the Linux kernel, he would expect it to be called BSD/Linux.

We in the Solaris newsgroup should be used to distinguishing between the
name of the kernel and the name of the whole operating environment -- we
have the same thing in SunOS (the kernel) vs. Solaris (the whole package).

--

Genuity Managed Services, Woburn, MA
*** DON'T SEND TECHNICAL QUESTIONS DIRECTLY TO ME, post them to newsgroups.
Please DON'T copy followups to me -- I'll assume it wasn't posted to the group.

 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Dave Uhrin » Thu, 13 Feb 2003 07:20:52



> That's not what he claims.  Paraphrasing heavily, the kernel is Linux, the
> commands and library are mostly GNU, so the package as a whole should be
> called GNU/Linux.  If you layered the BSD utilities and runtime on top of
> the Linux kernel, he would expect it to be called BSD/Linux.

First line from Casper's referenced URL:

Many computer users run a modified version of the GNU system (18k
characters) every day, without realizing it. Through a peculiar turn of
events, the version of GNU which is widely used today is more often known
as ``Linux'', and many users are not aware of the extent of its connection
with the GNU Project.

That, precisely, is his claim.

Quote:> We in the Solaris newsgroup should be used to distinguishing between the
> name of the kernel and the name of the whole operating environment -- we
> have the same thing in SunOS (the kernel) vs. Solaris (the whole package).

We fortunately do not have do deal with such kooks.

Stallman certainly deserves recognition for his compiler and editor, but
for him to claim ownership of the other 72% of a Linux distro is absurd.

The history of that compiler BTW is one of spite.  He deliberately wrote
the compiler and released it under his "free" license to kill the
possibility of some of his associates making some profit from their own
work.

 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Joerg Schilli » Thu, 13 Feb 2003 09:19:07






>>> Solaris ships with bash (GNU bash, not Linux bash), zsh, tcsh, ksh, to
>>> name just the four shells with completion and up arrows.

>>You must not ascribe to Mr. Stallman's philosophy that Linux == GNU ;-)

>But anyway, bash has been around years before Linux has..

And bsh and ksh have been around with up arrow support years before bash
came out....

--



URL:  http://www.fokus.fhg.de/usr/schilling    ftp://ftp.berlios.de/pub/schily

 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by ultraspa.. » Thu, 13 Feb 2003 15:51:03



Quote:>1. How do I make settings in the PATH and LD_LIBRARY_PATH permanent, I used
>the export command to test a new installation of Apache, which promptly
>stopped working on a reboot.

put them in your shell's startup files.

Quote:>2. Why is there no up arrow to recall the last commands?

there is.

Quote:>3. Can the shell be made to work like Linux BASH, with auto complete etc?

bash is not "Linux BASH", it ran on SunOS long before Linux.  Solaris
comes with bash, feel free to use it.
 
 
 

Making the PATH and LD_LIBRARY_PATH permanent

Post by Dimitri Maziu » Thu, 13 Feb 2003 16:59:06


Barry Margolin sez:






>>>>You must not ascribe to Mr. Stallman's philosophy that Linux == GNU ;-)

>>That should have been "subscribe".

>>> That's certainly *NOT* his philosophy.
>>> <URL:http://www.fsf.org/gnu/linux-and-gnu.html>

>>The claim that an OS is GNU because 28% of the size of that OS is GNU is
>>absurd IMHO but Stallman is certainly entitled to his opinion.

> That's not what he claims.  Paraphrasing heavily, the kernel is Linux, the
> commands and library are mostly GNU, so the package as a whole should be
> called GNU/Linux.  If you layered the BSD utilities and runtime on top of
> the Linux kernel, he would expect it to be called BSD/Linux.

Not according to what I read on LKML -- somebody grepped for copyright
notices in early (and later) Linux sources in response to Stallman's
recent GNU/Linux troll, and came up with rather interesting results.
Along the "GNU code that mysteriously lost its original UCB copyrights" lines...

Dima