On Sunday, November 27, 2016 at 12:41:38 PM UTC-5, David Johns wrote:
>
> With regards to the rest, I don't understand where to put LD_LIBRARY_PATH 
> and also the weewxd
>

first try these two lines at the command prompt:

export LD_LIBRARY_PATH=/opt/owfs/lib
weewxd /etc/weewx/weewx.conf
 
the LD_LIBRARY_PATH tells weewxd where to find shared libraries.  most of 
the time you don't have to set LD_LIBRARY_PATH, because libraries live in 
locations that are already known, e.g., /lib or /usr/lib.  /opt/owfs is a 
standard way to install owfs, but /opt/owfs/lib is not in the list of known 
library locations.

Weewx is being run as a service. ie sudo service weewx start
>
> There is no RC script as far as I am aware.
>

/etc/init.d/weewx is the RC script.  it is invoked when you do 'sudo 
service weewx start'

if setting the LD_LIBRARY_PATH worked in the experiment above, then you 
need to set it when weewxd is run via the rc script.

one way to do that is to put this near the top of the rc script:

LD_LIBRARY_PATH=/opt/owfs

a safer way to do that is to put it in the defaults file for weewx:

echo "LD_LIBRARY_PATH=/opt/owfs" | sudo tee /etc/defaults/weewx

that way you won't have to modify /etc/init.d/weewx every time up upgrade 
weewx.

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to