[Gambas-user] Problem with directory /lib

craf prog at ...2177...
Mon Apr 19 17:15:32 CEST 2010


Hi.

I managed to install a console program compiled on Ubuntu 9.04 to Ubuntu
8.04, using shared libraries. 
The problem is with a program that uses the GTK or QT library, and they
require the libraries that are in the lib folder, and take into account
that come with the PC and not those that are packaged with the project. 
Example. If I provide shared libraries are located in the lib folder,
should be exported with the following: 

export LD_LIBRARY_PATH
=/opt/proyect/gambas2/lib_shared/lib:/opt/proyect/gambas2/lib_shared/usr/lib 

The path /usr/lib is taken into account, but the path /lib, and take the
PC where you are installing the program. 

I also tested:

export LD_LIBRARY_PATH =
$LD_LIBRARY_PATH:/opt/proyect/gambas2/lib_shared/lib:/opt/proyect/gambas2/lib_shared/usr/lib

export LD_LIBRARY_PATH
=/opt/proyect/gambas2/lib_shared/lib:/opt/proyect/gambas2/lib_shared/usr/lib:$LD_LIBRARY_PATH

but nothing...

Is there any way to force you to take the path /lib specified in the
file .sh by one and not the PC?

Regards



More information about the User mailing list