Problem Running vim on HP RX2800 I2 server with HP-UX 11I VERSION 3 OS

149 views
Skip to first unread message

Ken Schmitt

unread,
May 29, 2012, 1:47:16 PM5/29/12
to vim...@googlegroups.com, Dave Kechour

We have recently purchased a new HP RX2800 I2 server with HP-UX 11I VERSION 3 operating system. I downloaded and our IT folks installed vim 7.3 (IA-64) from the following website:

 

http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.3/

 

When I run vim, I receive an error that libgtk-x11-2.0.so library file is not found. Clearly this file exists and is mentioned in the path, so what must be done to have vim operate properly with the standard HP operating software and libraries delivered with our system?

 

Below is a screen capture showing the problem and I have highlighted relevant text in yellow:

 

[wmsprod]@wmsr1 /home/kschmitt > setenv PATH /opt/gtk2.6/lib:$PATH

[wmsprod]@wmsr1 /home/kschmitt > echo $PATH

/opt/gtk2.6/lib:/usr/bin:/home/prod/tools/bin/hpux10:/home/prod/meldisco/wmsprod/bin/hpux10:/home/prod/meldisco/bin/hpux10:/home/pro

d/meldisco/wmsprod/scripts:/home/prod/meldisco/scripts:/home/prod/wmscore/scripts:/usr/ccs/bin:/usr/contrib/bin:/usr/contrib/Q4/bin:

/opt/perl/bin:/opt/gvsd/bin:/opt/ipf/bin:/opt/nettladm/bin:/opt/fcms/bin:/opt/wbem/bin:/opt/wbem/sbin:/opt/sas/bin:/opt/graphics/com

mon/bin:/opt/hpvm/bin:/opt/atok/bin:/usr/bin/X11:/usr/contrib/bin/X11:/opt/sec_mgmt/bastille/bin:/opt/caliper/bin:/opt/drd/bin:/opt/

dsau/bin:/opt/dsau/sbin:/opt/resmon/bin:/opt/firefox:/opt/perf/bin:/usr/contrib/kwdb/bin:/opt/perl_32/bin:/opt/perl_64/bin:/opt/prm/

bin:/opt/propplus/bin:/opt/sfm/bin:/etc/cmcluster/scripts/tkit/vtn:/opt/swm/bin:/opt/sec_mgmt/spc/bin:/opt/ssh/bin:/opt/swa/bin:/opt

/hpsmh/bin:/opt/thunderbird:/opt/sentinel/bin:/opt/langtools/bin:/opt/gwlm/bin:/opt/ignite/bin:/opt/omni/bin:/opt/aCC/bin:/opt/cadvi

se/bin:/opt/hpnpl//bin:/usr/local/bin:/usr/bin:/bin:/home/kschmitt:/usr/etc:/home/prod/tools/bin/hpux10:/home/prod/tools/bin/share:/

etc:/usr/contrib/bin:/usr/fms_unix/com:.:.

[wmsprod]@wmsr1 /home/kschmitt > vim

/usr/lib/hpux32/dld.so: Unable to find library 'libgtk-x11-2.0.so'.

Killed

[wmsprod]@wmsr1 /home/kschmitt > cd /opt/gtk2.6/lib

[wmsprod]@wmsr1 /opt/gtk2.6/lib > ll libgtk-x11-2.0.so

-r-xr-xr-x   1 bin        bin        12955496 Feb  1  2006 libgtk-x11-2.0.so

[wmsprod]@wmsr1 /opt/gtk2.6/lib >

 

Thanks

 

Ken Schmitt

Software Engineer

Toll Global Forwarding, Mira Loma Distribution Center

3355 Dulles Drive, Mira Loma, CA 91752

ken.s...@tollgroup.com

951-360-8310 x3020 office

951-681-4836 fax

 

Dominique Pellé

unread,
May 29, 2012, 2:19:56 PM5/29/12
to vim...@googlegroups.com
It's not the PATH env variable which is used to search
for shared library, but LD_LIBRARY_PATH.

See:

http://administratosphere.wordpress.com/2007/10/19/shared-libraries-hp-ux/

You can fix with with:

$ export LD_LIBRARY_PATH=/opt/gtk2.6/lib

Or ask the administrator to add /opt/gtk2.6/lib in
/etc/dld.sl.conf

Vim-7.3 is a bit old already, you're better off
downloading the source and compiling Vim, or
else you're missing 531 patches of goodies.

Regards
-- Dominique

Taylor Hedberg

unread,
May 29, 2012, 2:24:38 PM5/29/12
to vim...@googlegroups.com, Dave Kechour
I know essentially nothing about HP-UX, but at least on Linux, $PATH has
nothing to do with where shared libraries are searched for; it's the
search path for executables run as shell commands.

On Linux, there are default search locations for shared libs like /lib,
/usr/lib, and /usr/share/lib. If you want to dynamically link a library
that is in some other location, you can use the $LD_LIBRARY_PATH
variable to name those extra locations. So in your case, you might run

LD_LIBRARY_PATH=/opt/gtk2.6/lib vim

in the shell and see if that works. I don't know if any of that is truly
Linux-specific, but chances are something similar is true on HP-UX if
it's not exactly the same.
signature.asc

Ed Blackman

unread,
May 29, 2012, 3:59:08 PM5/29/12
to vim...@googlegroups.com
On Wed, May 30, 2012 at 03:47:16AM +1000, Ken Schmitt wrote:
>We have recently purchased a new HP RX2800 I2 server with HP-UX 11I
>VERSION 3 operating system. I downloaded and our IT folks installed vim
>7.3 (IA-64) from the following website:
>
>http://hpux.connect.org.uk/hppd/hpux/Editors/vim-7.3/

If my Linux experience is any guide, PATH doesn't have anything to do
with shared libraries. You either need to install shared libraries in a
standard location that your OS already looks in, or configure your
dynamic linker to know about the nonstandard place where you have your
GTK libraries installed.

When I went to the website above, I saw "gtk+2" on the list of Vim's
runtime dependencies. When I followed the link to that package, I see
that the standard HP porting package of gtk+2 installs in /usr/local,
not /opt, which is why I think your install of GTK is in a nonstandard
place.

I'd suggest getting your sysadmin to install gtk+2 from the page above,
and check that all the other runtime dependencies are installed while
they're at it.

--
Ed Blackman
Reply all
Reply to author
Forward
0 new messages