To set an environment variable (again!)

I didn’t find any solution to set
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib at boot in order that
everybody can use it.
I tried rc.local, Profile, rc.sysinit, no way!

any idea?

thanks,
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Hello Alain,

I didn’t find any solution to set
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib at boot in order that
everybody can use it.
I tried rc.local, Profile, rc.sysinit, no way!

any idea?

How did you try to setup your rc.sysinit?, I tried to
“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib” under export PATH…
and it worked.

Best Regards,

Marcin

thanks,
Alain.

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:

Hello Alain,

I didn’t find any solution to set
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib at boot in order that
everybody can use it.
I tried rc.local, Profile, rc.sysinit, no way!

any idea?

How did you try to setup your rc.sysinit?, I tried to
“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib” under export PATH…
and it worked.

Best Regards,

Marcin

thanks,
Alain.

Sorry Marcin, I don’t remember what I did exactly, but you’re right!

Thanks,
Alain.

Alain Bonnefoy a écrit :

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:

Hello Alain,

I didn’t find any solution to set
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib at boot in order that
everybody can use it.
I tried rc.local, Profile, rc.sysinit, no way!

any idea?

How did you try to setup your rc.sysinit?, I tried to
“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib” under export PATH…
and it worked.

Best Regards,

Marcin

thanks,
Alain.

Sorry Marcin, I don’t remember what I did exactly, but you’re right!

Thanks,
Alain.

It doesn’t work as I want!
The problem is when I login locally I have:
LD_LIBRARY_PATH=:/usr/local/lib:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib

If I login through phindows, I have:
LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib

if I login through telnet, I have:
LD_LIBRARY_PATH=:/usr/local/lib

In the last case, it seems normal that I don’t have the graphical pathname access.
But, Is there a common configuration file for local and remote login?

Thanks,
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Alain Bonnefoy a écrit :

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:

Hello Alain,

I didn’t find any solution to set
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib at boot in order that
everybody can use it.
I tried rc.local, Profile, rc.sysinit, no way!

any idea?

How did you try to setup your rc.sysinit?, I tried to
“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib” under export PATH…
and it worked.

Best Regards,

Marcin

thanks,
Alain.

Sorry Marcin, I don’t remember what I did exactly, but you’re right!

Thanks,
Alain.

Add a file depending on the shell (*.sh) you use to your /etc/profile.d directory,
ie. lib.sh (assuming you are using sh). In that file include the export LD…
line. and don’t forget to chmod lib.sh with a+x perms.

Best Regards,

Marcin

It doesn’t work as I want!
The problem is when I login locally I have:
LD_LIBRARY_PATH=:/usr/local/lib:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib

If I login through phindows, I have:
LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib

if I login through telnet, I have:
LD_LIBRARY_PATH=:/usr/local/lib

In the last case, it seems normal that I don’t have the graphical pathname access.
But, Is there a common configuration file for local and remote login?

Thanks,
Alain.

will this work for cron jobs? or users using other shells (tcsh)?
to answer the original post, I think Colin is working with someone
to provide a global config file (/etc/ld.so.conf) where you can
specify your LD_LIBRARY_PATH. This will ensure every application.

frank


On 20 Aug 2001, Tools Mail Account wrote:

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Alain Bonnefoy a écrit :

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:

Hello Alain,

I didn’t find any solution to set
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib at boot in order that
everybody can use it.
I tried rc.local, Profile, rc.sysinit, no way!

any idea?

How did you try to setup your rc.sysinit?, I tried to
“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib” under export PATH…
and it worked.

Best Regards,

Marcin

thanks,
Alain.

Sorry Marcin, I don’t remember what I did exactly, but you’re right!

Thanks,
Alain.

Add a file depending on the shell (*.sh) you use to your /etc/profile.d directory,
ie. lib.sh (assuming you are using sh). In that file include the export LD…
line. and don’t forget to chmod lib.sh with a+x perms.

Best Regards,

Marcin

It doesn’t work as I want!
The problem is when I login locally I have:
LD_LIBRARY_PATH=:/usr/local/lib:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib

If I login through phindows, I have:
LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/lib

if I login through telnet, I have:
LD_LIBRARY_PATH=:/usr/local/lib

In the last case, it seems normal that I don’t have the graphical pathname access.
But, Is there a common configuration file for local and remote login?

Thanks,
Alain.
\

It would be great to have some API for this, i.e., you could configure this
config file with some easy-to-use C functions (e.g., “add directory to PATH”
etc.)
Markus



“Frank Liu” <liug@mama.indstate.edu> wrote in message
news:Pine.LNX.4.33.0108201051340.3102-100000@mama.indstate.edu

will this work for cron jobs? or users using other shells (tcsh)?
to answer the original post, I think Colin is working with someone
to provide a global config file (/etc/ld.so.conf) where you can
specify your LD_LIBRARY_PATH. This will ensure every application.

frank


On 20 Aug 2001, Tools Mail Account wrote:

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Alain Bonnefoy a écrit :

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:

Hello Alain,

I didn’t find any solution to set
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib at boot in order
that
everybody can use it.
I tried rc.local, Profile, rc.sysinit, no way!

any idea?

How did you try to setup your rc.sysinit?, I tried to
“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib” under export
PATH…
and it worked.

Best Regards,

Marcin

thanks,
Alain.

Sorry Marcin, I don’t remember what I did exactly, but you’re right!

Thanks,
Alain.

Add a file depending on the shell (*.sh) you use to your /etc/profile.d
directory,
ie. lib.sh (assuming you are using sh). In that file include the export
LD…
line. and don’t forget to chmod lib.sh with a+x perms.

Best Regards,

Marcin

It doesn’t work as I want!
The problem is when I login locally I have:

LD_LIBRARY_PATH=:/usr/local/lib:/usr/photon/lib:/usr/photon/dll:/usr/X11R6/l

ib

If I login through phindows, I have:

LD_LIBRARY_PATH=/proc/boot:/lib:/usr/lib:/lib/dll:/usr/photon/lib:/usr/photo

n/dll:/usr/X11R6/lib

if I login through telnet, I have:
LD_LIBRARY_PATH=:/usr/local/lib

In the last case, it seems normal that I don’t have the graphical
pathname access.
But, Is there a common configuration file for local and remote login?

Thanks,
Alain.
\

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Alain Bonnefoy a écrit :

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:

Hello Alain,

I didn’t find any solution to set
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib at boot in order that
everybody can use it.
I tried rc.local, Profile, rc.sysinit, no way!

any idea?

How did you try to setup your rc.sysinit?, I tried to
“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib” under export PATH…
and it worked.

Best Regards,

Marcin

thanks,
Alain.

Sorry Marcin, I don’t remember what I did exactly, but you’re right!

Thanks,
Alain.

Add a file depending on the shell (*.sh) you use to your /etc/profile.d directory,
ie. lib.sh (assuming you are using sh). In that file include the export LD…
line. and don’t forget to chmod lib.sh with a+x perms.

Best Regards,

Marcin

For everybody ? in every home directory ???

Why are you talking about lib.sh, Isn’t it possible to declare it in etc/profile.d?
And what I’m going to do if someone like sh the other prefer bash, another tcsh…?

What the global starting scripts are for ??

WHY PHOTON DOESN’T TAKE CARE OF THE SYSTEM CONFIGURATION ?!?

Thanks,
Alain.

Alain Bonnefoy <alain.bonnefoy@icbt.com> wrote:

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Alain Bonnefoy a écrit :

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:

Hello Alain,

I didn’t find any solution to set
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib at boot in order that
everybody can use it.
I tried rc.local, Profile, rc.sysinit, no way!

any idea?

How did you try to setup your rc.sysinit?, I tried to
“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib” under export PATH…
and it worked.

Best Regards,

Marcin

thanks,
Alain.

Sorry Marcin, I don’t remember what I did exactly, but you’re right!

Thanks,
Alain.

Add a file depending on the shell (*.sh) you use to your /etc/profile.d directory,
ie. lib.sh (assuming you are using sh). In that file include the export LD…
line. and don’t forget to chmod lib.sh with a+x perms.

Best Regards,

Marcin


For everybody ? in every home directory ???

Yes, modified LD_LIBRARY_PATH should affect all users.

Why are you talking about lib.sh, Isn’t it possible to declare it in
etc/profile.d?

To declare it, you have to add a file (*.SHELL) to your /etc/profile.d
directory.

And what I’m going to do if someone like sh the other prefer bash,
another tcsh…?

You would have to change it to something like lib.bash etc.

Look at the /etc/profile which calls /etc/profile.d/.SHELL:



for file in /etc/profile.d/
.${SHELL##*/}; do
if test -x $file; then
. $file
fi
done
unset file


What the global starting scripts are for ??

In general to setup your system environment and configuration.

WHY PHOTON DOESN’T TAKE CARE OF THE SYSTEM CONFIGURATION ?!?

Can you be more specific? (what about people that don’t use photon?)

Regards,

Marcin

Thanks,
Alain.

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:
Alain Bonnefoy a écrit :

Tools Mail Account a écrit :

Alain Bonnefoy <> alain.bonnefoy@icbt.com> > wrote:

Hello Alain,

I didn’t find any solution to set
LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib at boot in order that
everybody can use it.
I tried rc.local, Profile, rc.sysinit, no way!

any idea?

How did you try to setup your rc.sysinit?, I tried to
“export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib” under export PATH…
and it worked.

Best Regards,

Marcin

thanks,
Alain.

Sorry Marcin, I don’t remember what I did exactly, but you’re right!

Thanks,
Alain.

Add a file depending on the shell (*.sh) you use to your /etc/profile.d directory,
ie. lib.sh (assuming you are using sh). In that file include the export LD…
line. and don’t forget to chmod lib.sh with a+x perms.

Best Regards,

Marcin


For everybody ? in every home directory ???

Yes, modified LD_LIBRARY_PATH should affect all users.

Why are you talking about lib.sh, Isn’t it possible to declare it in
etc/profile.d?

To declare it, you have to add a file (*.SHELL) to your /etc/profile.d
directory.

And what I’m going to do if someone like sh the other prefer bash,
another tcsh…?

You would have to change it to something like lib.bash etc.

Look at the /etc/profile which calls /etc/profile.d/.SHELL:
.
.
.
for file in /etc/profile.d/
.${SHELL##*/}; do
if test -x $file; then
. $file
fi
done
unset file
.
.
.

What the global starting scripts are for ??

In general to setup your system environment and configuration.

WHY PHOTON DOESN’T TAKE CARE OF THE SYSTEM CONFIGURATION ?!?

Can you be more specific? (what about people that don’t use photon?)

Well in fact, my problem is always the same, I understood how to set LD_LIBRARY_PATH, I
can set it allmost everywhere: /etc/rc.sysinit, /etc/rc.d/rc.local, /etc/Profile and ok,
that works if I’m in text mode.

Now if I start Photon, LD_LIBRARY_PATH is not equal to the value I’ve setted in one of the
configuration file listed above.
It’s because I asked why Photon doesn’t take care about the system configuration?
And is it possible to declare LD_LIBRARY_PATH in a file and only one in order that
everybody have it in their environment?

Thanks,
Alain.