[Gambas-devel] Installer

craf prog at ...657...
Wed Sep 8 02:16:04 CEST 2010


Hi.

Thanks Benoit for the tips, I learned things that did not know.

Gradually I approach the solution.

1)I checked that file depends gbr2, yielding the following results:

$ldd gbr2

libm.so.6 
libdl.so.2  
libpthread.so.0  
libffi.so.5 
libc.so.6  
/lib/ld-linux.so.2 

2)Copy this link and files which point, in a folder called libraries:

The full path is as follows:

|-- Installer
|   |-- exe.sh
|   |-- gambas2
|   |   |-- bin
|   |   |   |-- gbr2 -> /home/user/Desktop/Installer/gambas2/bin/gbx2
|   |   |   `-- gbx2
|   |   |-- lib
|   |   |   `-- gambas2
|   |   |       |-- gb.draw.so
-> /home/user/Desktop/Installer/gambas2/lib/gambas2/gb.draw.so.0.0.0
|   |   |       |-- gb.draw.so.0
-> /home/user/Desktop/Installer/gambas2/lib/gambas2/gb.draw.so.0.0.0
|   |   |       |-- gb.draw.so.0.0.0
|   |   |       |-- gb.so
-> /home/user/Desktop/Installer/gambas2/lib/gambas2/gb.so.0.0.0
|   |   |       |-- gb.so.0
-> /home/user/Desktop/Installer/gambas2/lib/gambas2/gb.so.0.0.0
|   |   |       `-- gb.so.0.0.0
|   |   |-- lib_shared
|   |   |   `-- usr
|   |   |       `-- lib
|   |   |           |-- libffi.so.5
-> /home/user/Desktop/Installer/gambas2/lib_shared/usr/lib/libffi.so.5.0.10
|   |   |           `-- libffi.so.5.0.10
|   |   `-- libraries
|   |       |-- ld-2.11.1.so
|   |       |-- ld-linux.so.2 -> ld-2.11.1.so
|   |       |-- libc-2.11.1.so
|   |       |-- libc.so.6 -> libc-2.11.1.so
|   |       |-- libdl-2.11.1.so
|   |       |-- libdl.so.2 -> libdl-2.11.1.so
|   |       |-- libm-2.11.1.so
|   |       |-- libm.so.6 -> libm-2.11.1.so
|   |       |-- libthread_db-1.0.so
|   |       `-- libthread_db.so.1 -> libthread_db-1.0.so
|   `-- console.gambas

3)Edit the file exe.sh to add the new library path:

#!/bin/sh
export PATH=/home/user/Desktop/Installer/gambas2/bin:"$PATH"
export
LD_LIBRARY_PATH=/home/user/Desktop/Installer/gambas2/lib_shared/usr/lib
export GB_DIR=/home/user/Desktop/Installer/gambas2
$GB_DIR/libraries/ld-linux.so.2  /home/user/Desktop/Installer/gambas2/bin/gbr2 console.gambas

I run and do not get the message:

gbr2: /lib/tls/i686/cmov/libc.so.6: version `GLIBC_2.11' not
> found (required by gbr2)

but get the following:

/home/user/Desktop/Installer/gambas2/libraries: error while loading
shared libraries: /home/user/Desktop/Installer/gambas2/libraries: cannot
read file data: Error 21

I searched online and found that we can pass a path to the libraries to
file ld-linux.so.2.
Example:

$GB_DIR/libraries/ld-linux.so.2
--library-path /PATH/LIBRARIES/  /PATH/gbr2 console.gambas

This does not work.

Any light on the matter, I appreciate it.

Regards.

Cristian Abarzúa F.









































More information about the Devel mailing list