Hi Marcus,
I tried
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/owfs/lib
and
ldconfig -v | less
/owfs
but it said
Pattern not found
I think it is set as I can echo it -
m...@mick-desktop:~$ echo $LD_LIBRARY_PATH
:/opt/owfs/lib
m...@mick-desktop:~$
Have I done something wrong here?
Regards
Mick
On Sun, 2010-03-14 at 21:25 +0100, Marcus Priesch wrote:
> Hi Mick,
>
> great success by now !
>
> Am Sonntag, den 14.03.2010, 19:42 +0000 schrieb Mick Sulley:
> > Hi Marcus,
> >
> > OK it seems to install now, now to the next problem!
> >
> > Following the example code from your web page
> >
> > >>> from pyowfs import Connection
> > >>> root = Connection ("/dev/ttyD1")
> > Traceback (most recent call last):
> > File "<stdin>", line 1, in <module>
> > File "/usr/lib/python2.6/dist-packages/pyowfs/owfs.py", line 281, in
> > __init__
> > capi = libcapi.CAPI ()
> > File "/usr/lib/python2.6/dist-packages/pyowfs/libcapi.py", line 42, in
> > __init__
> > self.libcapi = ctypes.CDLL ("libowcapi.so")
> > File "/usr/lib/python2.6/ctypes/__init__.py", line 353, in __init__
> > self._handle = _dlopen(self._name, mode)
> > OSError: libowcapi.so: cannot open shared object file: No such file or
> > directory
>
> ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>
> as pyowfs is just a wrapper around libowcapi - it needs access to it ...
>
> > >>>
> >
> > My adapter is connected to /dev/ttyD1, is the format root = Connection
> > ("/dev/ttyD1") correct?
>
> yes - if this is what you would give the owcapi lib as initialisation,
> it should work - i only tested with a usb adapter ("u") .... but ...
>
> >
> > I have looked for libowcapi.so and I have 3 of them
> > /opt/owfs/lib/libowcapi.so
>
> i assume this is the installed version ...
>
> > /usr/src/owfs-2.7p21/module/owcapi/src/c/.libs/libowcapi.so
> > /usr/src/owfs-2.7p29/module/owcapi/src/c/.libs/libowcapi.so
>
> and these are the compiled versions in your source tree ...
>
> as the installed version is not on a system wide "standard
> place" (/usr/lib, /usr/local/lib, ...) i assume you need to set the
> environment variable LD_LIBRARY_PATH which defines the places to look
> for .so files ...
>
> so, assuming you are using bash, the following should work ...
>
> export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/owfs/lib
>
> hope it does ;)
>
> you can check by:
>
> ldconfig -v | less
>
> and searching (type "/" followed by "owfs" - without the quotes) should
> discover the library ....
>
> regards,
> marcus.
>
------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
Owfs-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/owfs-developers