10-15-2018 01:17 PM
Hi all,
I'm trying to set up a logger on linux with nidaqmx. As only a selection of distros are supported, I decided to use the opensuse:42.3 image. I suppose I followed the instructions, but still I'm getting
OSError: libavahi-client.so.3: cannot open shared object file: No such file or directory
Did I miss something? Here's my Dockerfile
FROM opensuse:42.3
COPY rpm_OpenSUSE423.rpm /tmp
COPY getpip.py /tmp
RUN rpm -vi /tmp/rpm_OpenSUSE423.rpm
RUN zypper -n update
RUN zypper install -y ni-daqmx
RUN zypper install -y python3
RUN /usr/bin/python3 /tmp/getpip.py \
&& pip install --upgrade pip
COPY requirements /tmp
RUN ln -s /usr/bin/python3 /bin/python \
&& pip install -r /tmp/requirements
Thanks for any suggestion!
p.s. not sure if this is the right place on the forum
10-17-2018 06:22 AM
Hey Appie_user,
Have you seen: Troubleshooting Shared Library Errors When Launching LabVIEW on Linux ? It sounds like a similar situation!
There is also a KB on selecting a different directory manually if needed: LV Library or Resource File Error in Linux When Running an Application
Let it know how it goes!
Rebecca
10-24-2018 02:53 AM
For others trying to work with nidaqmx: I solved the above issue, but couldn't get the docker working. The reason seems to be in .ko (kernel object) files that need to be installed. However, Docker uses the host kernel, and thus the host kernel needs to be changed. This partly eliminates advantages of Docker considering deployment/ platform independence .