- From: Michael Thomas <Michael.Thomas_at_dynetics.com>
- Date: Fri, 16 Jul 2004 11:11:22 -0500
For some reason gcc with the -L parameter didn't help, but export LD_LIBRARY_PATH at the shell did work. Curious note: I could 'echo $LD_LIBRARY_PATH' and see what I had added, but it didn't persist through a reboot. However, the program still works even though the path isn't explicitly there anymore. Does the cache for linking get regenerated upon reboot? Comedi_data_write is now working (verified by O-scope), so my system is up - thanks! Michael Thomas -----Original Message----- From: Rob Myers [mailto:rob.myers_at_gtri.gatech.edu] Sent: Thursday, July 15, 2004 12:20 PM To: Michael Thomas Cc: comedi_at_comedi.org Subject: Re: shared library error On Thu, 2004-07-15 at 12:53, Michael Thomas wrote: > Now when I try to run ./ni_test I get "error while loading shared > libraries: libcomedi.so.0: > > cannot open shared object file: no such file or directory". > > > > I poked around and found that libcomedi.so.0 is a symlink to > libcomedi.so.0.0.0 so I copied > > both to the working directory, but apparently that isn't where it's > looking for the file. > > I'm used to writing "hello world" programs that don't use run-time > libraries. Help? try this: export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/local/lib ./ni_test hope that helps. rob.
Received on 2004-07-16Z15:11:22