Yup, the first thing in my .kshrc is a reset of the PATH variable to the basic
one in the /etc/environments file, so it does not get longer and longer.
And in 4.3, when using Nways, it works to put /usr/lib ahead of the tivoli
library.
Cordially,
Leslie A. Clark
IBM Global Services - Systems Mgmt & Networking
Thanks for the advice, I couldn't get it to work until I swapped the
ordering of the LIBPATH statement in ~/.kshrc thus:
old statement LIBPATH="${LIBDIR}:/usr/lib${LIBPATH:+:$LIBPATH}"
new statement LIBPATH="/usr/lib${LIBPATH:+:$LIBPATH}:${LIBDIR}"
this puts the Tivoli library path after the standard AIX one. Can anyone
see a problem with this? I.e. why the Tivoli libraries are searched first?
Also I found that the original suggestion from Leslie Clark (sourcing
/etc/Tivoli/setup_env.sh in .kshrc) wasn't ideal because the
/etc/Tivoli/setup_env.sh script is called everytime you open an aixterm
(from an aixterm) causing the PATH variable to grow with duplicate Tivoli
paths.
Thanks again everyone, these environment variables are the bain of my life
- who would be a system's administrator?!?
Erdinc.
--
Erdinc Degirmencioglu
Network Infrastructure,
LAN Service Development,
Barclays Technology Services, Second Floor Block 10 (E3)
Radbroke Hall, Knutsford, Cheshire, WA16 9EU
Voice +44 (0)1565 61 5738
Fax +44 (0)1565 61 5518
Email Erdinc.Degirmencioglu@barclays.co.uk
----------
From: bowens[SMTP:bowens@EASTMAN.COM]
Sent: 05 May 1999 16:21
To: NV-L
Cc: bowens
Subject: Re: Framework & CDE & LIBPATH
Although I don't run Nways I had similar problems with other X-window
apps
on AIX 4.3.2. Following is an excerpt from a note which led to the
solution
of this problem for me, perhaps it will fix yourm problem as well:
After talking with AIX (Charles Hall in Austin), I eventually found out
that setting the LIBPATH variable in "/etc/Tivoli/setup_env.sh" was
causing
the problem.
We corrected the problem by:
1) commenting out the following 4 lines in /etc/Tivoli/setup_env.sh
LIBDIR=/base/Tivoli/lib/aix4-r1
export LIBDIR
LIBPATH="${LIBDIR}:/usr/lib${LIBPATH:+:$LIBPATH}"
export LIBPATH
2) I moved these four lines to /.kshrc
3) In /.profile, I added "export ENV=$HOME/.kshrc just before ".
/etc/Tivoli/setup_env.sh
Now all was ok!
Blaine Owens
Eastman Chemical Company
Email - bowens@eastman.com
Phone - (423)229-3579
Fax - (423)229-1188
> -----Original Message-----
> From: Erdinc Degirmencioglu
[SMTP:Erdinc.Degirmencioglu@barclays.co.uk]
> Sent: Wednesday, May 05, 1999 9:55 AM
> To: NV-L@UCSBVM.ucsb.edu
> Subject: Re: Framework & CDE & LIBPATH
>
> I have found that the /etc/Tivoli/setup_env.sh script stops iubeui
working
> in Nways i.e. no chassis views can be opened if the Tivoli
environment has
> been pulled in. The ~/nv6000.log shows:
>
> exec(): 0509-036 Cannot load program /usr/CML/bin/nwsstatif because
of
> the
> following errors:
> 0509-023 Symbol XmeFlushIconFileCache in /usr/lib/libDtSvc.a
is
> not
> defined.
> 0509-023 Symbol XmGetIconFileName in /usr/lib/libDtSvc.a is
not
> defined.
> 0509-023 Symbol XmeGetMask in /usr/lib/libDtSvc.a is not
defined.
> 0509-023 Symbol _XmSetThickness in /usr/lib/libDtWidget.a is not
> defined.
> 0509-023 Symbol _XmRemoveMissedImageEntry in
> /usr/lib/libDtWidget.a
> is not defined.
> 0509-023 Symbol _XmIsMissedImage in /usr/lib/libDtWidget.a is not
> defined.
> 0509-022 Cannot load library libnwsEUI_sh.a[EUI_shared.o].
> 0509-026 System error: Cannot run a file that does not have a
> valid format.
>
> This happens only when /etc/Tivoli/setup_env.sh is sourced, either with
CDE
> or mwm.
>
> Any ideas?
>
> Confused from Manchester,
>
> Erdinc
> --
> Erdinc Degirmencioglu
> Network Infrastructure,
> LAN Service Development,
> Barclays Technology Services, Second Floor Block 10 (E3)
> Radbroke Hall, Knutsford, Cheshire, WA16 9EU
> Voice +44 (0)1565 61 5738
> Fax +44 (0)1565 61 5518
> Email Erdinc.Degirmencioglu@barclays.co.uk
>
> ----------
> From: lclark[SMTP:lclark@US.IBM.COM]
> Sent: 23 April 1999 16:56
> To: NV-L
> Cc: lclark
> Subject: Re: Framework & CDE & LIBPATH
>
>
> I imagine that dtterm is like aixterm. LIBPATH is deliberately
cleared,
> something about security. A unix feature.
> I'm not sure what the equivalent is with CDE, since I habitually use
> aixterm even with the CDE, but this is what I use:
>
> ..dtprofile: just uncomment that last line that makes .profile run
> ..profile: just export ENV=$HOME/.kshrc
> ..kshrc: source the tivoli environment, (. /etc/Tivoli/setup_env.sh),
> and whatever else you want for each window, like set -o vi.
>
> This ensures that every window I open is set up correctly to do
> whatever.
>
> Cordially,
>
> Leslie A. Clark
> IBM Global Services - Systems Mgmt & Networking
>
***********************************************************************
> Any opinions expressed in this message are those of the sender only
> and do not necessarily represent the views of WOOLWICH PLC or any
> of its subsidiaries. The sender may not be authorised to give
financial
> advice and nothing in this message should be constructed as offering
> such advice.
>
> WOOLWICH PLC represents only WOOLWICH LIFE and WOOLWICH UNIT TRUST
> MANAGERS which are regulated by the Personal Investment Authority for
> Life Assurance and Unit Trust business
>
***********************************************************************
> Has anyone seen problems with AIX v4.2.1, CDE and the setting of the
> LIBPATH
> variable?
>
> I have installed Framework v3.6 onto my AIX v4.2.1 system but when I
> try to
> run the 'tivoli' command it fails with the following messages:
>
> $ tivoli
> exec(): 0509-036 Cannot load program tivoli because of the
> following
> errors:
> 0509-022 Cannot load library libtas.a[shr.o].
> 0509-026 System error: A file or directory in the path
> name
> does not exist.
>
> I initially thought that the 'setup_env.sh' script was not being run
but
> then found that all the other environmental variables et by the script
> were
> set by issuing echo commands in the dtterm.
>
> I believe the LIBPATH variable is being unset somewhere between the
end
> of
> the 'setup_env.sh' script and the displaying of the 'dtterm' window
as I
> have added an echo to my '.profile' which writes the value of $LIBPATH
> to
> the startlog but an echo of $LIBPATH in the dtterm returns nothing.
>
> Rerunning the 'setup_env.sh' in the dtterm causes the LIBPATH variable
> to
> be
> set correctly thus allowing the 'tivloi' command to run.
>
> Any help would be much appreciated.
>
> Ken Freeman
> Woolwich plc
>
Internet communications are not secure and therefore the Barclays Group does
not accept legal responsibility for the contents of this message. Any views
or opinions presented are solely those of the author and do not necessarily
represent those of the Barclays Group unless otherwise specifically stated.
|