In article <506500000005000000EF330100-1066448259000@exchange.ni.com>,
"jonny e" wrote:
> Hi again-
> I tried to run the visaconf and NIvisaic tools (as root, of course). But
> I could not run them . I get the following error message:
> /usr/local/vxipnp/linux/NIvisa/visaconf
>
> ./visaconf: error while loading shared libraries: libvisa.so: cannot
> open shared object file: No such file or directory
>
> same happened for NIvisaic.
> what am i missing?
Hey, you found another gotcha! This is good coz it's common with many app
installations. Long story short, place the following in your
/etc/ld.so.conf
/usr/local/vxipnp/linux/lib
/usr/local/cvirte/lib
Then run 'ldconfig' as root. This will configure the run-time bindings to
the shared libraries. Look at the man page for details.
Some more details...
Whenever you get an error message like that, try using 'ldd' against the
executable. For example, 'ldd /usr/local/vxipnp/linux/NIvisa/visaconf'
(as any user) will produce the following:
libvisa.so => /usr/local/vxipnp/linux/lib/libvisa.so (0x40022000)
libcvi.so.5 => /usr/local/cvirte/lib/libcvi.so.5 (0x40054000) libc.so.6
=> /lib/libc.so.6 (0x40288000) /lib/ld-linux.so.2 => /lib/ld-linux.so.2
(0x40000000) libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x40399000)
libnsl.so.1 => /lib/libnsl.so.1 (0x40472000) libpthread.so.0 =>
/lib/libpthread.so.0 (0x40487000) libdl.so.2 => /lib/libdl.so.2
(0x4049e000) libm.so.6 => /lib/libm.so.6 (0x404a2000)
In your case some of the paths should show something like "not found".
After running ldconfig with the new lib paths in your ld.so.conf file,
they will appear. Then you should be able to run visaconf, unless there
are more problems.
BTW, I assume that since I don't use Redhat the paths to ld.so.conf may be
different. Perhaps they have a totally different mechanism. If you can't
find the file, you can always test this method by passing the path of the
library to the 'ldconfig' command directly with the -l option (see man
page).
I would think the RPMs or the install script would handle this stuff but
since I've never used them...
Let me know if it's still not working. I'll be around for a while tonight
🙂