2
votes

I am trying to install an odbc driver for vPostgres (Vmware's version for postgres) on Ubuntu 11.10 (64-bit). I have downloaded the rpm file of the installer (64-bit) and when I try to install the rpm using:

rpm -ivh Vmware-vPostgres-client.rpm, it shows me this error:

error: Failed dependencies:
    libc.so.6()(64bit) is needed by VMware-vPostgres-client-1.0.1.1145-532311.x86_64
    libc.so.6(GLIBC_2.2.5)(64bit) is needed by VMware-vPostgres-client-1.0.1.1145-532311.x86_64
    libc.so.6(GLIBC_2.3)(64bit) is needed by VMware-vPostgres-client-1.0.1.1145-532311.x86_64
    libc.so.6(GLIBC_2.3.3)(64bit) is needed by VMware-vPostgres-client-1.0.1.1145-532311.x86_64
    libdl.so.2()(64bit) is needed by VMware-vPostgres-client-1.0.1.1145-532311.x86_64
    libdl.so.2(GLIBC_2.2.5)(64bit) is needed by VMware-vPostgres-client-1.0.1.1145-532311.x86_64
    libpthread.so.0()(64bit) is needed by VMware-vPostgres-client-1.0.1.1145-532311.x86_64
    libpthread.so.0(GLIBC_2.2.5)(64bit) is needed by VMware-vPostgres-client-1.0.1.1145-532311.x86_64
    libresolv.so.2()(64bit) is needed by VMware-vPostgres-client-1.0.1.1145-532311.x86_64
    libresolv.so.2(GLIBC_2.2.5)(64bit) is needed by VMware-vPostgres-client-1.0.1.1145-532311.x86_64

Few things I have tried:

locate libpthread.so.0 returns:

/lib/i386-linux-gnu/libpthread.so.0

/lib/x86_64-linux-gnu/libpthread.so.0

/lib32/libpthread.so.0

I get similar locations for all other files: locate libc.so.6

/lib/i386-linux-gnu/libc.so.6

/lib/x86_64-linux-gnu/libc.so.6

/lib32/libc.so.6

and so on.

I tried creating symlinks using:

sudo ln -s lib/x86_64-linux-gnu/libc.so.6
 /lib64/libc.so.6

sudo ln -s lib/x86_64-linux-gnu/libc.so.6
 /lib/libc.so.6

sudo ln -s lib/x86_64-linux-gnu/libc.so.6
 libc.so.6

but none of them worked. I am not sure where exactly it is trying to search for this files.

ldd Vmware-vPostgres-client.rpm doesnt help much and returns 'not a dynamic executable' which is expected

I tried adding the path in the /etc/ld.so.conf file

include lib/x86_64-linux-gnu/libc.so.6

I also tried setting the LD_LIBRARY_PATH to the specified file but of no use.

ldd --version shows GLIBC 2.13

Can anyone help me out where exactly does it searches for the file?

1
Could you not just install a 32-bit RPM as a temporary fix?Alex W
I would make sure that you delete the symlinks, since they didn't work. The packages it's asking for are packages I usually run into problems with when I don't have the 'build-essential' package installed. On a side note, I think you may run into people who will ask you to move the question to superuser.comAlex W
Even the 32-bit version throws the same error with different versions of the files.Deepti Jain

1 Answers

0
votes

Finally, found the solution.. Use alien. rpm packages are for redhat based distributions of linux like CentOS and redhat. For debian based systems(Ubuntu) you need deb packages. Alien is a product which can convert rpm file to deb file which can then be installed on ubuntu.