Page 1 of 1

(k)ubuntu x86_64 libgdk problem

Posted: Wed Aug 08, 2007 9:21 am
by Tiny_D
Hi everybody,

I know that these problem is discussed some time ago. But there was no resulution for me.

I running Kubuntu 7.04 x86_64 and try to install PR on it.

Code: Select all

linux32 ./privateer1.2.bz2.run
But the installer break with

Code: Select all

.setup7203: error while loading shared libraries: libgdk-1.2.so.0: cannot open shared object file: No such file or directory
but the lib is present

Code: Select all

ls -la /usr/lib|grep libgdk
lrwxrwxrwx   1 root root       19 2007-06-14 11:19 libgdk-1.2.so.0 -> libgdk-1.2.so.0.9.1
-rw-r--r--   1 root root   250912 2005-10-26 10:19 libgdk-1.2.so.0.9.1
lrwxrwxrwx   1 root root       30 2007-06-14 10:30 libgdk_pixbuf-2.0.so.0 -> libgdk_pixbuf-2.0.so.0.1000.11
-rw-r--r--   1 root root    98560 2007-04-05 19:06 libgdk_pixbuf-2.0.so.0.1000.11
lrwxrwxrwx   1 root root       22 2007-08-08 10:01 libgdk_pixbuf.so.2 -> libgdk_pixbuf.so.2.0.0
-rw-r--r--   1 root root   102328 2005-11-17 05:51 libgdk_pixbuf.so.2.0.0
lrwxrwxrwx   1 root root       35 2007-06-14 10:30 libgdk_pixbuf_xlib-2.0.so.0 -> libgdk_pixbuf_xlib-2.0.so.0.1000.11
-rw-r--r--   1 root root    64752 2007-04-05 19:06 libgdk_pixbuf_xlib-2.0.so.0.1000.11
lrwxrwxrwx   1 root root       27 2007-08-08 10:01 libgdk_pixbuf_xlib.so.2 -> libgdk_pixbuf_xlib.so.2.0.0
-rw-r--r--   1 root root   139176 2005-11-17 05:51 libgdk_pixbuf_xlib.so.2.0.0
lrwxrwxrwx   1 root root       27 2007-06-14 10:30 libgdk-x11-2.0.so.0 -> libgdk-x11-2.0.so.0.1000.11
-rw-r--r--   1 root root   627160 2007-04-05 19:06 libgdk-x11-2.0.so.0.1000.11
I found http://vegastrike.sourceforge.net/forum ... ght=libgdk
on forum, but it din't provide me a resulution.

I would try to compile it but cvs seems to be down at the moment. so have anybody a solution?

Posted: Wed Aug 08, 2007 2:51 pm
by loki1950
Welcome Tiny_D the reason that cvs seems to down is that it is permanently down we have moved to subversion are you sure that the versions of the lib you have installed are 32-bit.

Enjoy the Choice :)

Posted: Wed Aug 08, 2007 9:45 pm
by ace123
Two things:
First, you need to look in /usr/lib32 for the libgdk1.2.so if you want 32-bit GTK.

Second, the setup program should run inside a terminal with an NCurses interface.
Try "DISPLAY= linux32 ./privateer1.2.bz2.run" to disable using the X display/libraries.

You can use the "file" program on a library, and it will tell you if it's 32-bit or 64-bit, for example:

Code: Select all

# file /usr/lib/libgdk-1.2.so.0.9.1
/usr/lib/libgdk-1.2.so.0.9.1: ELF 64-bit LSB shared object, AMD x86-64, version 1 (SYSV), stripped
# file /usr/lib32/libgdk-1.2.so.0.9.1
/usr/lib/libgdk-1.2.so.0.9.1: ELF 32-bit LSB shared object, Intel 80386, version 1 (SYSV), stripped

Posted: Thu Aug 09, 2007 8:52 am
by Tiny_D
Ok, there seems 2 be 2 problems to resolve ;)

The libgdk1.2.so is missing in /usr/lib32 and so far there seems to be no known package which contain this.

Whiout that it is also not able to start the installation with the ncursus display.

I will keep searching for a package which will rpovide this lib.

Thanks for your helpfull advices.

Hopefully I will return with a resolution.

Posted: Thu Aug 09, 2007 9:37 am
by ace123
Make sure you spelled it right... It might be libgdk-1.2.so or libgdk.so.1.2 or something like that. At any rate probably similar to the one in /usr/lib32

At worst, you can just extract the installer script with
./privateer1.2.bz2.run --target InstallDir

Which will use "tar -zxf" from the shell and extract to a directory. There's no way that will fail on a linux system.

But it shouldn't be having that problem. If I look at another setup program, I see no dependencies on GDK.

Code: Select all

patrick@quad:~$ ldd .setup2852 
        linux-gate.so.1 =>  (0xffffe000)
        libutil.so.1 => /lib32/libutil.so.1 (0xf7f9c000)
        libc.so.6 => /lib32/libc.so.6 (0xf7e5b000)
        /lib/ld-linux.so.2 (0xf7fb8000)
It must be then that the privateer1.2 setup was not made in as portable a manner as other versions of the LOKI installers... so just use the --target option, and that should extract it. You will have to set your PATH to include the binaries, however.

Posted: Thu Aug 09, 2007 9:44 pm
by Tiny_D
It makes me upset to diasapoint you ace but that did not work.

But anyways, I have found a resolution 4 that problem with the help of the ubuntuforums.

You are able in Ubuntuo to install most of knowen libs with a tool namend getlibs.

To install getlibs:

Code: Select all

cd /tmp
wget -q http://www.boundlesssupremacy.com/Cappy/getlibs/getlibs
chmod +x getlibs
sudo mv getlibs /usr/bin
cd ~
Now you can install the 32-bit libgdk-1.2.so.0

Code: Select all

sudo getlibs -32 libgdk-1.2.so.0
Thanks again to Cappy from ubuntuforums

There are some other libs they has to be installed. You can also take the getlibs way for them.

Now I can start with PR! Thanks to ALL