LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   AIX (https://www.linuxquestions.org/questions/aix-43/)
-   -   installing vim-X11 on AIX 7.1 machine (https://www.linuxquestions.org/questions/aix-43/installing-vim-x11-on-aix-7-1-machine-935810/)

vvertsberger 03-22-2012 01:00 AM

installing vim-X11 on AIX 7.1 machine
 
What rpm packages shall be installed prior to installation of vim-X11 on AIX 7.1 machine?
I have already installed three vim packages, but when I try to install vim-X11 I always get the message that some package is lacked.

DukeSSD 03-23-2012 07:07 PM

"I always get the message that some package is lacked."

What is the exact message please?

vvertsberger 03-27-2012 02:59 AM

It turned out that I installed packages with versions not enough upgraded: perl=5.8.2 and not 5.8.8, vim-common=6.3.1 etc.
I think after upgrading everything will be OK
Thanks

vvertsberger 04-16-2012 08:04 AM

vim-X11 on AIX 7.1
 
After installation of vim packages on AIX 7.1 machine I tried to run gvim and get error:

exec() 0509-036 Cannot load program gvim because of the following error:
0509-022 Cannot load module /lib/libgdk-x11-2.0.a(libgdk-x11-2.0.so.0).
0509-150 Dependent module /lib/libXrender.a(libXrender.so.1) could not be loaded
0509-152 Member libXrender.so.1 is not found in archive

It seems to me that when I installed packages vim is dependent on and somtimes used --nodeps flag some soft had not been installed properly.

Could someone write me what rpm packages and in what order shall be installed in order to install vim-X11 from the scratch?

cliffordw 04-18-2012 03:12 AM

It looks like you are missing xrender (ftp://ftp.software.ibm.com/aix/freeS...aix5.2.ppc.rpm).

vvertsberger 04-18-2012 04:33 AM

Hi
Here are some outputs:

# rpm -qa | grep Xrender
libXrender-0.9.6-1

# ls -lasF /lib/libXrender.a
/lib/libXrender.a@ -> /usr/lpp/X11/lib/R7/libXrender.a

# ls -lasF /usr/lpp/X11/lib/R7/libXrender.a
168 -rw-r--r-- 1 bin bin 168900 Aug 07 2010 /usr/lpp/X11/lib/R7/libXrender.a

cliffordw 04-18-2012 05:18 AM

OK, that looks similar to my setup. If you run "ar -t /lib/libXrender.a" to look at the contents of the library, you will see that it contains libXrender.so.0, while in your output above you are looking for libXrender.so.1.

I suspect that this might be because of the version of libgdk you are using, namely v2 from the gtk2 RPM. As far as I can tell, you need v1, which is in the gtk+ rpm. Is gtk+ installed on your machine?

vvertsberger 04-18-2012 07:42 AM

Hi
gtk+ was not installed and I installed it.

# rpm -qa | grep gtk
gtk+-1.2.10-6
gtk2-2.18.9-2

I tried to uninstall gtk2 but I got the following error:

# rpm -e gtk2-2.18.9-2
error: removing these packages would break dependencies:
gtk2>=2.8.3 is needed by vim-X11-7.3.353-1

cliffordw 04-18-2012 12:49 PM

You shouldn't need to uninstall gtk2; it can coexist with gtk+. Does gvim still produce the errors you got before installing gtk+?

vvertsberger 04-19-2012 04:27 AM

Yes, it does.
I think I need to reinstall all vim-X11 dependent or related rpm because it seems to me that since I made installation of rpms in stages sometimes I installed rpms that demand more latest rpm that were installed and I did not put attention on it - I used --nodeps flag.
Now this is the question what rpms and in what order shall be installed in order to success in vim-X11 installation assuming that no Linux tools is installed already.

cliffordw 04-20-2012 12:21 AM

Hi again,

I'm not sure which packages are required. The "-R" flag on the rpm command should tell you this, but on my version the RPM is not configured with specific package dependencies, so it just lists the auto-detected library dependencies, as follows:

# rpm -qRp vim-X11-6.3-1.aix5.1.ppc.rpm
vim-common
libC.a(shr.o)
libICE.a(shr.o)
libSM.a(shr.o)
libX11.a(shr4.o)
libXt.a(shr4.o)
libbind.a(shr.o)
libbsd.a(shr.o)
libc.a(shr.o)
libcurses.a(shr42.o)
libgdk.so
libglib.so
libgmodule.so
libgtk.so
libiconv.a(shr4.o)
librtl.a(shr.o)

If you just try and install it without --nodeps, it should tell you what you still need.

vvertsberger 04-22-2012 02:19 AM

Hi
Thanks a lot.
At the end I just extracted libXrender.so.0 from /lib/libXrender.a , renamed it libXrender.so.1 and added the module to /lib/libXrender.a and it works.

cliffordw 04-22-2012 07:00 AM

I'm glad you got it working. I'm not sure your solution is ideal, though, as:
1) This may break some other applications, possibly in the future when you install something else, and
2) Any update to the fileset containing /lib/libXrender.a will undo your hack


All times are GMT -5. The time now is 12:23 AM.