Forum Post
Index > i.Ftp > Linux installation needs liblgi-x.so

Author/Date Linux installation needs liblgi-x.so
Cov
08/08/2004 7:17pm
Hi,

I've used your program in a windows version and am keep to put it onto my Linux box.

However, I get the following error message:

Error while loading shared libraries: liblgi-x.so : cannot open shared object file: No such file or directory.
fReT
08/08/2004 10:35pm
This is what happens if you run the executable 'scribe' directly instead of using the bundled 'run-scribe' script. All the script does is map the current directory into the library path so that it can find the .so files.
Cov
09/08/2004 8:45am
Hi,

Thanks for the reply.

I'm actually trying to use iftp ;)

I downloaded iftp-linux-v183 which contained the following files:

_about.gif
_commands.gif
_icon.png
_icons.gif
_pane.gif
iftp
iftp.lr8
liblgi-x.so

I'm afraid I couldn't find a script called 'run-iftp' or anything similar.

- Dave Coventry
fReT
09/08/2004 11:36am
The file should contain this:
#!/bin/bash
#
# run app
#

path=${0%/*}

if ls $path/iftp
then
    export LD_LIBRARY_PATH=$path:$LD_LIBRARY_PATH ; "$path/iftp"
fi

exit 0


So just create a text file, paste that in, and make it executable.
Cov
09/08/2004 2:01pm
Thanks!

I'll give it a go!
Cov
09/08/2004 8:04pm
I'm afraid that the following error message is generated:

Line 11: 3287 Bus error "$path/iftp"

I've tried setting the $LD_LIBRARY_PATH variable to "/opt/iftp-linux"

But this does not get rid of the liblgi-x.so error.
Matthew Allen
10/08/2004 1:35am
The other option is to copy/move the file liblgi-x.so into some folder that is already in the library path, usually /usr/lib ?
Cov
10/08/2004 7:45pm
Mathew,

Thanks for the rely.

I have tried to do as you suggested, which has got rid of the error reported above. However, I now get a succinct error message as follows:

'Bus error'

Nothing else. Any ideas?

Incidently, I am using a Debian unstable Sid install from Knoppix 3.4 (kernel 2.6.5 I believe)

Dave Coventry
fret
11/08/2004 1:29am
To check where the library can be found you'd use a command like this:
% ldd ./iftp
        libpthread.so.0 => /lib/i686/libpthread.so.0 (0x40036000)
        libXrender.so.1 => /usr/X11R6/lib/libXrender.so.1 (0x40087000)
        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x4008f000)
        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x4009d000)
        libXft.so.2 => /usr/X11R6/lib/libXft.so.2 (0x4017c000)
        libfreetype.so.6 => /usr/lib/libfreetype.so.6 (0x4018e000)
        libfontconfig.so.1 => /usr/lib/libfontconfig.so.1 (0x401df000)
        liblgi-x.so => /home/lemon/matthew/lgi/Lgi/ReleaseX/liblgi-x.so (0x40205000)
        libc.so.6 => /lib/i686/libc.so.6 (0x403a5000)
        libstdc++.so.5 => /usr/lib/libstdc++.so.5 (0x404dd000)
        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)
        libdl.so.2 => /lib/libdl.so.2 (0x40590000)
        libexpat.so.0 => /usr/lib/libexpat.so.0 (0x40594000)
        libm.so.6 => /lib/i686/libm.so.6 (0x405b5000)
        libgcc_s.so.1 => /lib/libgcc_s.so.1 (0x405d7000)

It'll tell you if there is missing libraries. This is obviously an example without missing libraries from my machine. Feel free to post what you get. Sometimes 'ldd' is in /sbin and not in the path so use '/sbin/ldd' if you get a command not found error.

'bus error' is not a valid error message for anything going on in a script so I'm at a loss to understand whats going wrong. I know thats not very helpful but I'm stumped.
Cov
11/08/2004 5:37pm
Here's the result of 'ldd ./iftp'

dave@linuxBox:/opt/iftp-linux$ ldd ./iftp
/usr/bin/ldd: line 1: 4228 Bus error LD_TRACE_LOADED_OBJECTS=1 LD_WARN= LD_BIND_NOW= LD_LIBRARY_VERSION=$verify_out LD_VERBOSE= "$file"

>I'm stumped

Well, thanks very much for your help up to now. ;)

Dave Coventry
Reply