Visit Our UNIX and Linux User Community


Setting LIBPATH in profile


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers Setting LIBPATH in profile
# 1  
Old 07-18-2001
Setting LIBPATH in profile

Hi there,

I wonder if anyone can help me. I run an application on an AIX 4.3.3 machine, for which I need to set up the LIBPATH environment variable for a specific user. I need this to be set up automatically when the user logs in (via Exceed), so I tried setting this in the .profile file.

All EXPORT commands that I put into .profile work, *EXCEPT* LIBPATH!! When I check the value of $LIBPATH after logging in, it is blank.

As an example, I have created this dummy .profile file:

Code:
export PATH=$JAVA_HOME/jre/sh:$JAVA_HOME/sh:$ANT_HOME/bin:/usr/bin:/etc:/usr/sbin:/usr/ucb:$HOME/bin:/home/allusers/bin:/usr/bin/X11:/sbin:/usr/local/bin/:.

if [ -s "$MAIL" ]           # This is at Shell startup.  In normal
then echo "$MAILMSG"        # operation, the Shell checks
fi                          # periodically.

export TEST1=/test/test1
export LIBPATH=/home/nick
export TEST2=/test/test2

When I log on (with Exceed), my test variables are there but not LIBPATH:

$ echo $TEST1
/test/test1
$ echo $LIBPATH

$ echo $TEST2
/test/test2
$

When logging on using telnet, it all works fine.

Does anyone know why this happens on Exceed? How can I get LIBPATH to be set up automatically at log on?

Any help gratefully received,

Nick Durnell.

Last edited by durnelln; 07-18-2001 at 07:49 AM..
# 2  
Old 07-18-2001
Unfortunately I 've no Exceed over here to test it out ...

What you could do is to check the .*shrc (depends on the shell you're using) and the .dtprofile to see what that files are doing ... maybe in one of these your settings are overwritten
# 3  
Old 07-18-2001
Thanks mod, but I have already checked .dtprofile and .kshrc.

.dtprofile is set up with the line DTSOURCEPROFILE=true so that the .profile file is executed.

.kshrc contains a couple of aliases, and nothing else.

Any other ideas? This isn't limited to my installation of Exceed as one of our clients has the same set up and is also experiencing this problem!
# 4  
Old 07-18-2001
try this
Code:
 export LD_LIBRARY_PATH=/directory on your file

# 5  
Old 02-21-2002
Network Same problem

Any luck on the answer to this, I have the SAME problem!
# 6  
Old 02-22-2002
Unfortunately not Smilie I still cannot set $LIBPATH automatically from any profile files that are run when logging on with Exceed.

This is very annoying as without setting $LIBPATH some software will not function correctly. Users must remember to run '. .profile' every time they log on or run a script file to set it.

The equivalent variable on SUN ($LD_LIBRARY_PATH) CAN be set automatically in .profile so we have no problems when logging on to a SUN machine. But try as I might I cannot set $LIBPATH on AIX.

Does ANYONE out there know why this can't be done?????

Nick.
# 7  
Old 02-22-2002
I don't have either exceed or AIX so I'm really flying blind here. Sign into a system that is working well for you and type "ps -f". Do the same thing on a system that isn't working well. If your shell shows up with a CMD field like "-ksh" on the good system while it's something like "ksh" on the bad, then the problem is that xterm is not being invoked in login mode on the bad system.

If this is the case you will need to reconfigure exceed to run the command "xterm -ls" on the bad system instead of "xterm" or "xterm +ls".
 

Previous Thread | Next Thread
Test Your Knowledge in Computers #984
Difficulty: Medium
FreeBSD was the most popular open-source BSD operating system, accounting for more than three-quarters of all installed BSD systems.
True or False?

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Long PATH, LD_LIBRARY_PATH, LIBPATH, what kind of performance impact do they have?

Hi, there! a long PATH... makes the OS access the disk quite often, hence there is a lot of disk I/O a long PATH... makes the OS compute a lot of ..., hence a high CPU load (Edited/added later: Yes, this is not about the lenght of the env. var., but about the number of directories listed.)... (1 Reply)
Discussion started by: Jochen_Hayek
1 Replies

2. AIX

Profile Max CPU Setting

I have a system with the following settings: min:0.10 Assigned: 2.0 Max: 6.0 Partition is uncapped weight is 128. I would like to know if even if this is uncapped, is the max it can use 6? The actual pool has 16. I remember reading about this somewhere but I don't remember can anyone... (3 Replies)
Discussion started by: techy1
3 Replies

3. UNIX for Dummies Questions & Answers

setting the profile

What's the purpose of setting the profile in side the script? however the user when logins, the profile wil be set. Then why we need to use that explicitly inside the script? Thanks (1 Reply)
Discussion started by: pandeesh
1 Replies

4. UNIX for Dummies Questions & Answers

Setting umask 022 by default to my profile

Hello everyone, I want to set my properties of my profile to umask 022 by default. I have an idea that i need to make the change in .profile file. Can you please help me, on how would i be able to set it. Thanks, Abhishek S. (4 Replies)
Discussion started by: abhisheksunkari
4 Replies

5. Shell Programming and Scripting

Need help in setting .profile , .cshrc , .exerc ..... in HP-UX , Solaris , AIX-UX

I need help in settings to Hp-UX , Solaris , AIX-UX .. I worked on Linux previously ... now i am working on Hp-UX , Solaris , AIX-UX .. up/down arrow , to see history of previous command (basically to modify ) and few keyboard keys are different ... so i need to set .profile , .cshrc , ... to... (1 Reply)
Discussion started by: girija
1 Replies

6. Shell Programming and Scripting

Sysdate setting in .profile

Hi, I need to append the current system date and time in my file which are being taken a backup by my shell script .so i added the following line in by .profile SYSDATE="$( date '+%d/%B/%Y/%S' )" export SYSDATE But it's a constant one rather then a sync with my system date ,so how can i do... (10 Replies)
Discussion started by: malickhat
10 Replies

7. UNIX for Dummies Questions & Answers

setting home as lin in user profile

Hi. I have a directory structure built with links. For example: /home/user1 is a link to /var/123/user1 can i set the home variable in the .profile of the user to use a link? or it has to be a "real" directory? tks (1 Reply)
Discussion started by: mrodrig
1 Replies

8. UNIX for Dummies Questions & Answers

Setting up Bash profile

Hi, I have a SunOS -s 5.9 Generic_118558-39 sun4u sparc SUNW,Sun-Fire-V210 system. I need to set up my .bash_profile. I need to do the following thins. 1) set up history 2) Set up VI as my editor 3) Display the current directory at the prompt. I have tried using the set command, the... (1 Reply)
Discussion started by: kaushys
1 Replies

9. UNIX for Advanced & Expert Users

Setting Up Profile.......Need Help Urgently

Hi I am not able to setup PS1 environment variable in .profile file in my Home directory.I am using RED HAT3 Linux.this is the excercise that i have done $echo $SHELL /bin/ksh $pwd /home/khan $ls -l .profile -rwxrwxrwx $more .profile set -o vi export PS1='khan' $echo $PS1 $ (13 Replies)
Discussion started by: reachtokhan
13 Replies

10. Shell Programming and Scripting

NLS_LANG setting in .profile

Hi In my .Profile file initially I had given export NLS_LANG="BRAZILIAN PORTUGUESE_BRAZIL.WE8ISO8859P1" and later I commented it. When I connect to sqlplus from shell prompt and query "select * from nls_session_parameters" it gives PARAMETER VALUE... (1 Reply)
Discussion started by: arksjd
1 Replies

Featured Tech Videos