Discussion:
[Linux-gpib-general] libgpib.so.0 not found on Debian
Alexander Bessman
2015-03-22 10:04:58 UTC
Permalink
Hello,


I've been using linux-gpib successfully on Scientific Linux 6 for a while, and recently decided to migrate to Debian instead. However, after compiling linux-gpib 3.2.21 on Debian I am unable to run gpib-config or ibtest due to this error: "ibtest: error while loading shared libraries: libgpib.so.0: cannot open shared object file: No such file or directory"


Indeed, running ldd on /usr/local/bin/ibtest shows the following:


linux-vdso.so.1 (0x00007ffd3edf2000)
libgpib.so.0 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5540a73000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f55406c9000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5540cbf000)


Which is odd, because /usr/local/lib/libgpib.so.0 exists and /usr/local/lib is in my library path.


I've tested this on both Debian Wheezy and Debian Sid with the same result.


Has anyone encountered this problem before, or have any ideas as to what might be the cause?


//Alexander Bessman
Dieter Wirz
2015-03-22 19:15:52 UTC
Permalink
Hi
Did you install the kernel headers?
apt-get install linux-headers-$(uname -r)

and other packages that migth be needed:
apt-get install kernel-package libncurses5-dev fakeroot wget bzip2
build-essential.

To patch a running Kernel often makes problems, I usually in this case
download a vanilla Kernel from kernel.org, compile over night "the
Debian way" (ask google how to) and linux-gpib runs smoothly....

BTW: Don't use Debian unstable, unless you know what you are doing.
And Debian Jessie will be released soon;)

Regards
Post by Alexander Bessman
Hello,
I've been using linux-gpib successfully on Scientific Linux 6 for a while,
and recently decided to migrate to Debian instead. However, after compiling
linux-gpib 3.2.21 on Debian I am unable to run gpib-config or ibtest due to
cannot open shared object file: No such file or directory"
linux-vdso.so.1 (0x00007ffd3edf2000)
libgpib.so.0 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0
(0x00007f5540a73000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f55406c9000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5540cbf000)
Which is odd, because /usr/local/lib/libgpib.so.0 exists and /usr/local/lib
is in my library path.
I've tested this on both Debian Wheezy and Debian Sid with the same result.
Has anyone encountered this problem before, or have any ideas as to what
might be the cause?
//Alexander Bessman
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website,
sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for
all
things parallel software development, from weekly thought leadership blogs
to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linux-gpib-general mailing list
https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
cfo
2015-03-22 20:18:08 UTC
Permalink
Post by Dieter Wirz
To patch a running Kernel often makes problems, I usually in this case
download a vanilla Kernel from kernel.org, compile over night "the
Debian way" (ask google how to) and linux-gpib runs smoothly....
I have just built current trunk on my wheezy 32bit
Svn At revision 1624.

I have no problems

I did a build for a Raspberry w. an Agilent-USB GPIB adapter , or the
100% compatible Beiming USB-GPIB.

That build is excatly the same as for a 386' machine , except the
additional boot config.txt modification on the RasPi.

You could use that as a guideline.


6: apt-get install linux-headers-$(uname -r)

6a: Install the needed system packages , in order for linux gpib to build
(i might be a bit generous here , it's the same packages used for making
avr-gcc , but hdd space is cheap)


python-dev is nescary for linux-gpib py support

#All packages on one line
sudo apt-get install build-essential texinfo texi2html libcwidget-dev
tcl8.4-dev tk8.4-dev libncurses5-dev \
libx11-dev binutils-dev bison flex libusb-1.0-0 libusb-dev libmpfr-
dev libexpat1-dev tofrodos subversion autoconf automake libtool python-dev


7: mkdir linux-gpib (we assume in your home dir)
8: cd linux-gpib
9: svn checkout svn://svn.code.sf.net/p/linux-gpib/code/trunk linux-gpib-
code

11: cd linux-gpib-code/linux-gpib/
12: ./bootstrap
13: ./configure
14: make | tee make.log
15: sudo make install | tee imake.log

16: sudo modprobe agilent_82357a
17: sudo gpib_config

Do some udev magic , maybe be a groupmember of gpib , and you should be
good to go.

/Bingo
--
E-mail:***@luna.dyndns.dk
carla
2015-03-23 07:36:27 UTC
Permalink
Once I had a similar problem. Running ldconfig fixed it.
Anyway, the problem should disappear after a reboot.

Also check:
libgpib is correctly compiled for 64 bit system?
libgpib.so.0 is a link; check the file it points to.

Marcello Carla'
Post by Alexander Bessman
Hello,
I've been using linux-gpib successfully on Scientific Linux 6 for a while, and
recently decided to migrate to Debian instead. However, after compiling
linux-gpib 3.2.21 on Debian I am unable to run gpib-config or ibtest due to this
error: "ibtest: error while loading shared libraries: libgpib.so.0: cannot open
shared object file: No such file or directory"
linux-vdso.so.1 (0x00007ffd3edf2000)
libgpib.so.0 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5540a73000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f55406c9000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5540cbf000)
Which is odd, because /usr/local/lib/libgpib.so.0 exists and /usr/local/lib is
in my library path.
I've tested this on both Debian Wheezy and Debian Sid with the same result.
Has anyone encountered this problem before, or have any ideas as to what might
be the cause?
//Alexander Bessman
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linux-gpib-general mailing list
https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
--
Marcello Carla' - ***@fi.infn.it
University of Florence - Dept. of Physics
Via G. Sansone 1 - I 50019 Sesto F. (Firenze) Italy
Tel.: 39 055 457 2055/2013/2060
Alexander Bessman
2015-03-23 08:13:54 UTC
Permalink
Thanks everyone! Running ldconfig fixed it.

//Alexander Bessman
Post by carla
Once I had a similar problem. Running ldconfig fixed it.
Anyway, the problem should disappear after a reboot.
libgpib is correctly compiled for 64 bit system?
libgpib.so.0 is a link; check the file it points to.
Marcello Carla'
Post by Alexander Bessman
Hello,
I've been using linux-gpib successfully on Scientific Linux 6 for a while, and
recently decided to migrate to Debian instead. However, after compiling
linux-gpib 3.2.21 on Debian I am unable to run gpib-config or ibtest due to this
error: "ibtest: error while loading shared libraries: libgpib.so.0: cannot open
shared object file: No such file or directory"
linux-vdso.so.1 (0x00007ffd3edf2000)
libgpib.so.0 => not found
libpthread.so.0 => /lib/x86_64-linux-gnu/libpthread.so.0 (0x00007f5540a73000)
libc.so.6 => /lib/x86_64-linux-gnu/libc.so.6 (0x00007f55406c9000)
/lib64/ld-linux-x86-64.so.2 (0x00007f5540cbf000)
Which is odd, because /usr/local/lib/libgpib.so.0 exists and /usr/local/lib is
in my library path.
I've tested this on both Debian Wheezy and Debian Sid with the same result.
Has anyone encountered this problem before, or have any ideas as to what might
be the cause?
//Alexander Bessman
------------------------------------------------------------------------------
Dive into the World of Parallel Programming The Go Parallel Website, sponsored
by Intel and developed in partnership with Slashdot Media, is your hub for all
things parallel software development, from weekly thought leadership blogs to
news, videos, case studies, tutorials and more. Take a look and join the
conversation now. http://goparallel.sourceforge.net/
_______________________________________________
Linux-gpib-general mailing list
https://lists.sourceforge.net/lists/listinfo/linux-gpib-general
Loading...