1820137 Members
3342 Online
109619 Solutions
New Discussion юеВ

gvim not running in X

 
support_5
Super Advisor

gvim not running in X

Hi Folks,

I was wondering if anyone could offer advice on running gvim under HP-UX. I have tried to install it, along with the associated libraries, but have not had luck getting gvim to work (ie the graphical component). Regular vim works within the console, but I can't get the graphical version to start in my X windows session.

I have installed the binary and libraries from the HP-UX porting and archiving centre. I have also tried compiling myself, which ended up having the same effect.

One strange thing: when I run a "gvim -V2", the very last lines show this:
sourcing "$HOME/.gvimrc"
finished sourcing $HOME/.gvimrc
Opening the X display took 73 msec

Why would it say it opened the X display in 73 msec when it clearly didn't do anything at all, and merely loads the text version of vim.

Also, after it says this, it replaces the last line with:
Testing the X display failed
and the proceeds to run the text version.

Any ideas on how to get this working would be appreciated.
5 REPLIES 5
James Specht
Trusted Contributor

Re: gvim not running in X

I just installed vim from the depots at the resource center and everything works fine. We can run both vim -g and gvim without a problem. Here is a list of all the libraries I had to install for a successful result.

atk-1.2.4-sd-11.00.depot.gz
gettext-0.12-sd-11.00.depot.gz
glib-1.2.10-sd-11.00.depot.gz
glib2-2.2.2-sd-11.00.depot.gz
gtk+-1.2.10-sd-11.00.depot.gz
gtk+2-2.2.2-sd-11.00.depot.gz
guile-1.6.0-sd-11.00.depot.gz
libiconv-1.9-sd-11.00.depot.gz
ncurses-5.3-sd-11.00.depot.gz
pango-1.2.3-sd-11.00.depot.gz
vim-6.2-sd-11.00.depot.gz

Hope this helps.

--Jim
"Everyone can be taught to sculpt: Michelangelo would have had to be taught how not to. So it is with the great programmers."
harry d brown jr
Honored Contributor

Re: gvim not running in X

Do you have DISPLAY set correctly?

live free or die
harry
Live Free or Die
Elmar P. Kolkman
Honored Contributor

Re: gvim not running in X

This message seems to indicate it has a problem using your X-display. This can be caused by multiple reasons:
1) your DISPLAY environment variable is wrong or your X server doesn't allow connections. To test this, try running another X-windows program, like xterm or xclock to make sure this is working correctly.

2) your X-windows environment doesn't support some features needed by gvim. I have no experience with gvim, but this happens with some X windows environment. Try oclock instead of xclock to test if shaped-windows work, for instance.

3) some shared library is missing, though this should be reported when starting, before it starts the text variant.

Every problem has at least one solution. Only some solutions are harder to find.
support_5
Super Advisor

Re: gvim not running in X

Hi folks,

I don't think it's an X server problem on my end, because I can run gvim from other linux boxes and display it on my screen (I compiled the executables on these linux boxes). Yes, My display is set correctly, as I can run any other X command, such as xterm, and it will come up on my display. oclock also displays correctly. (my display system is a linux box running mandrake 9.1)

I also had to install a heap of libraries. here is a list of the libraries etc I installed:

atk
libiconv
guile
ncurses
gettext
glib2
gtk+2
pango

I also have installed:
glib
gtk+
xpm

But as I say, it still doesn't work properly.

And as I said before, I have compiled it under linux and it worked fine, but if I compile it under HP-UX, only the text version workes (normal vim), and if I install the binary from the HP-UX Software porting and archiving centre, then it still doesn't work.

Any other ideas people?

Thanks! :-)

- Andrew Gray
support_5
Super Advisor

Re: gvim not running in X

Okay, for your info, I'll give you an update on what's happening.

I've managed to get gvim working on all my HP-UX boxes. However, I don't know why it is working. You see, gvim refuses to work (as described previously) if I install the libraries, and then after they are installed, install gvim. gvim also refuses to work if I re-install the libraries on top of the ones already there, and then (re-)install gvim. But if I remove the libraries and then remove gvim, and THEN do the install of the libraries and gvim together, it works. But then if I re-install gvim, it stops working once more. So the only way to get it working is to uninstall the libraries, and gvim, then re-install from scratch those libraries and gvim, and then it works! How strange is that?! As it has been said, it's probably a hp-ux specific problem, or with the libraries, but it is strange.

Also, I'm not sure, but I am led to believe that gtk2 is not the right library to use with gvim. just plain old gtk is the right one to use.

Anyway, thank you for your help, folks. And gvim really is a great little tool! Makes editing script sooooo much easier! I highly regard this product. Try it!

- Andrew Gray