Vim run error on Solaris 10

484 views
Skip to first unread message

Sapfeer

unread,
Jul 13, 2009, 3:23:31 AM7/13/09
to Вим
Hi

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?..

Thomas Adam

unread,
Jul 13, 2009, 11:01:45 AM7/13/09
to vim...@googlegroups.com
2009/7/13 Sapfeer <sap...@gmail.com>:

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

Danek Duvall

unread,
Jul 13, 2009, 12:42:48 PM7/13/09
to vim...@googlegroups.com
On Mon, Jul 13, 2009 at 11:23:31AM +0400, Sapfeer wrote:

> 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

Tony Mechelynck

unread,
Jul 13, 2009, 3:21:51 PM7/13/09
to vim...@googlegroups.com

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

Tony Mechelynck

unread,
Jul 13, 2009, 3:31:58 PM7/13/09
to vim...@googlegroups.com

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

Sapfeer

unread,
Jul 14, 2009, 3:01:41 AM7/14/09
to vim...@googlegroups.com
Thanks a lot all! Actually, I've done it just by issuing "clre -c
/var/ld/ld.config -l /lib:/usr/lib:/usr/sfw/lib:/usr/local/lib". I
suppose it's just added needed libraries directories so that vim is
able to find it

Thanks a lot all!!!
--
Sent from my mobile device
Reply all
Reply to author
Forward
0 new messages