[Gambas-user] Problem with PATH to shared library

craf prog at ...2177...
Wed Mar 31 17:59:15 CEST 2010


Hi.

I'm trying to port an application from Ubuntu 9.10 to Ubuntu 8.04. It
uses the environment variable GB, indicated by Benoit.

My project uses the following components:

gb.draw
gb.form
gb.gtk
gb.gtk.ext

I use a file called executable.sh to call the application, which is as
follows:

#!/bin/sh
export PATH = / opt/my_project/gambas2/bin
GB_DIR export = /opt/my_project/gambas2
exec opt/my_project / my_project.gambas

If I copy my project folder to another distribution of the same version,
such as the 9.10 on the 91.0, there is no problem.

Now, if I copy the project to a different distribution, such as 9.10 to
8.04 is that the components of Gambas need other shared libraries, so
look for them one by one with the LDD command and stores the same way
which is stored in the distribution, ex

/library_shared/ lib/tls/cmov ...
/library_shared/lib...

To add the following call path in the executable.sh

#!/bin/sh
export PATH = /opt/my_project/gambas2/bin
GB_DIR export = /opt/my_project/gambas2
export LD_LIBRARY_PATH = /opt/my_project/gambas2/library_shared
exec /opt/my_project/my_project.gambas

But the problem is that the executable GBR2 not find the path to the
shared libraries.

"gbr2: error while loading shared libraries: libffi.so.5: can not open
shared object file: No such file or directory"

What could be the correct way to indicate the path to the  shared
libraries in the file executable.sh

Regards.



More information about the User mailing list