I've installed gtk+, ncurses, then install vim on my Solaris 10 x86,
but when I try to run it, I get the following error:
ld.so.1: vim: fatal: libgtk-1.2.so.0: open failed: No such file or directory
Killed
How can I fix this issues?..
This looks like you've either:
* Not told ldconfig the path to your GTK libraries, or more likely:
* You're missing a symlink (libgtk-1.2.so.0) pointing to the actual
GTK shared object.
You can use ldd to find out what is missing from gvim. The output of
that would be appreciated.
-- Thomas Adam
> I've installed gtk+, ncurses, then install vim on my Solaris 10 x86,
> but when I try to run it, I get the following error:
>
> ld.so.1: vim: fatal: libgtk-1.2.so.0: open failed: No such file or directory
> Killed
You may only have GTK+ 2.x installed, which comes with GNOME (in
SUNWgnome-base-libs, I think). GTK+ 1.x is in a different package,
SUNWGtk; make sure you have that installed. If so, make sure that your vim
has a RUNPATH with /usr/sfw/lib in it (link with -R/usr/sfw/lib), or it
won't be able to find the library.
Danek
Or else, compile Vim with GTK2 (with or without GNOME), since GTK1 is
not supported anymore by its makers. In any case, make sure you get all
the necessary headers -- on Linux this would mean installing
"development" packages in addition to the libraries needed for running
Vim; I'm not sure about Solaris but part or all of my Unix/Linux HowTo
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm probably apply.
Best regards,
Tony.
--
hundred-and-one symptoms of being an internet addict:
71. You wonder how people walk
Did you compile Vim yourself? Was there a configure run (as part of the
"make" run or as a separate "make config")? Was there anything about gtk
in the configure log?
And, yes, which version of GTK did you install? When compiling (and even
running) Vim, GTK1 (gtk 1.x) and GTK2 (gtk 2.x) are very different.
Since GTK1 isn't supported anymore, I recommend compiling with GTK2
(and, if you want Gnome2 too, you need an additional
--enable-gnome-check configure switch).
See my Unix/Linux HowTo
http://users.skynet.be/antoine.mechelynck/vim/compunix.htm -- the top
paragraph may be slightly different on Solaris but I believe most of the
page applies without much changes. In particular, I think the script
which I use to set my configure arguments can be reused with almost no
changes (other than the "compiled by" line, of course) on practically
any Unix-like system.
Best regards,
Tony.
--
If the aborigine drafted an IQ test, all of Western civilization would
presumably flunk it.
-- Stanley Garn