The UNIX and Linux Forums  

Go Back   The UNIX and Linux Forums > Top Forums > UNIX for Dummies Questions & Answers
Google UNIX.COM


UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !!

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Setting Up Profile.......Need Help Urgently reachtokhan UNIX for Advanced & Expert Users 13 11-06-2007 11:06 AM
Where can I read about the difference between "..profile" and ".profile" zorrokan UNIX for Dummies Questions & Answers 2 09-04-2007 10:35 PM
NLS_LANG setting in .profile arksjd Shell Programming and Scripting 1 06-22-2007 08:04 AM
Difference between .profile and .~/.profile maneesh mehta SCO 3 12-14-2005 12:35 AM
changed .profile but didnt ./.profile, yet reflected changes yls177 UNIX for Dummies Questions & Answers 4 12-05-2002 07:21 AM

Closed Thread
 
Submit Tools LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 07-18-2001
Registered User
 

Join Date: Jul 2001
Location: UK
Posts: 3
Unhappy 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:

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 03:49 AM.
Forum Sponsor
  #2 (permalink)  
Old 07-18-2001
mod mod is offline
Registered User
 

Join Date: Jul 2001
Location: Vienna
Posts: 29
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 (permalink)  
Old 07-18-2001
Registered User
 

Join Date: Jul 2001
Location: UK
Posts: 3
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 (permalink)  
Old 07-18-2001
Registered User
 

Join Date: Jul 2001
Location: California
Posts: 42


try this

export LD_LIBRARY_PATH=/directory on your file

__________________
:rolleyes:
  #5 (permalink)  
Old 02-21-2002
Chip Justis's Avatar
Registered User
 

Join Date: Feb 2002
Posts: 2
Angry Same problem

Any luck on the answer to this, I have the SAME problem!
  #6 (permalink)  
Old 02-22-2002
Registered User
 

Join Date: Jul 2001
Location: UK
Posts: 3
Unfortunately not 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 (permalink)  
Old 02-22-2002
Perderabo's Avatar
Unix Daemon
 

Join Date: Aug 2001
Location: Washington DC Area
Posts: 8,462
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".
Google The UNIX and Linux Forums
Closed Thread

Thread Tools
Display Modes




All times are GMT -7. The time now is 09:11 PM.


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

Content Relevant URLs by vBSEO 3.2.0