The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

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 03:06 PM
Where can I read about the difference between "..profile" and ".profile" zorrokan UNIX for Dummies Questions & Answers 2 09-05-2007 01:35 AM
NLS_LANG setting in .profile arksjd Shell Programming and Scripting 1 06-22-2007 11:04 AM
Difference between .profile and .~/.profile maneesh mehta SCO 3 12-14-2005 04:35 AM
changed .profile but didnt ./.profile, yet reflected changes yls177 UNIX for Dummies Questions & Answers 4 12-05-2002 11:21 AM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish Bulgarian Greek Powered by Powered by Google
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
  #1 (permalink)  
Old 07-18-2001
durnelln durnelln is offline
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 06:49 AM..
  #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
durnelln durnelln is offline
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
yellowfish yellowfish is offline
Registered User
  
 

Join Date: Jul 2001
Location: California
Posts: 42


try this

export LD_LIBRARY_PATH=/directory on your file

  #5 (permalink)  
Old 02-21-2002
Chip Justis's Avatar
Chip Justis Chip Justis is offline
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
durnelln durnelln is offline
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
Perderabo Perderabo is offline Forum Staff  
Unix Daemon
  
 

Join Date: Aug 2001
Location: Ashburn, Virginia
Posts: 9,119
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".
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On




All times are GMT -4. The time now is 01:15 AM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language Translations Powered by .
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0