Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

raspberrypi nymphcast_server[9460]: /usr/local/bin/nymphcast_server: error while loading shared libraries: libPocoUtil.so.70: cannot open shared object file: No such file or directory #66

Closed
alphabet5 opened this issue Jul 6, 2022 · 5 comments

Comments

@alphabet5
Copy link

After installing with sudo ./install.sh I'm getting this error when the service is trying to start.

Jul 05 18:38:41 raspberrypi systemd[1]: Started NymphCast audio/video casting server.
Jul 05 18:38:41 raspberrypi nymphcast_server[9460]: /usr/local/bin/nymphcast_server: error while loading shared libraries: libPocoUtil.so.70: cannot open shared object file: No such file or directory
Jul 05 18:38:41 raspberrypi systemd[1]: nymphcast.service: Main process exited, code=exited, status=127/n/a
Jul 05 18:38:41 raspberrypi systemd[1]: nymphcast.service: Failed with result 'exit-code'.
Jul 05 18:38:46 raspberrypi systemd[1]: nymphcast.service: Scheduled restart job, restart counter is at 10.
Jul 05 18:38:46 raspberrypi systemd[1]: Stopped NymphCast audio/video casting server.
@alphabet5
Copy link
Author

Installing from source doesn't seem like it worked either.

gui.h:23:10: fatal error: nymphcast_client.h: No such file or directory
   23 | #include "nymphcast_client.h"
      |          ^~~~~~~~~~~~~~~~~~~~
compilation terminated.
make: *** [Makefile:186: obj/aarch64-linux-gnu/gui.o] Error 1
make: Leaving directory '/home/pi/NymphCast-master/src/server'
make: Entering directory '/home/pi/NymphCast-master/src/server'
TARGET: aarch64-linux-gnu
install -d /usr/local/bin/ \
	-d /usr/local/etc/nymphcast/ \
	-d /usr/local/share/nymphcast/apps/ \
	-d /usr/local/share/nymphcast/wallpapers/ \
	-d /usr/local/etc/avahi/services/
install -m 755 bin/aarch64-linux-gnu/nymphcast_server /usr/local/bin/
install: cannot stat 'bin/aarch64-linux-gnu/nymphcast_server': No such file or directory
make: *** [Makefile:212: install] Error 1
make: Leaving directory '/home/pi/NymphCast-master/src/server'
Installing systemd service...
make: Entering directory '/home/pi/NymphCast-master/src/server'
TARGET: aarch64-linux-gnu
#install -d /usr/local/etc/systemd/system/
sed -e 's:@BIN@:/usr/local/bin/nymphcast_server:g' -e 's:@CONFIG@:/usr/local/etc/nymphcast/nymphcast_config.ini:g' -e 's:@APPS@:/usr/local/share/nymphcast/apps/:g' -e 's:@WALLPAPERS@:/usr/local/share/nymphcast/wallpapers/:g' systemd/nymphcast.service > /etc/systemd/user/nymphcast.service
make: Leaving directory '/home/pi/NymphCast-master/src/server'
Failed to connect to bus: $DBUS_SESSION_BUS_ADDRESS and $XDG_RUNTIME_DIR not defined (consider using --machine=<user>@.host --user to connect to bus of other user)
Jul 05 19:21:52 raspberrypi systemd[1]: Started NymphCast audio/video casting server.
Jul 05 19:21:52 raspberrypi nymphcast_server[6282]: /usr/local/bin/nymphcast_server: error while loading shared libraries: libPocoUtil.so.70: cannot open shared object file: No such file or directory
Jul 05 19:21:52 raspberrypi systemd[1]: nymphcast.service: Main process exited, code=exited, status=127/n/a
Jul 05 19:21:52 raspberrypi systemd[1]: nymphcast.service: Failed with result 'exit-code'.

@MayaPosch
Copy link
Owner

The first error is due to a mismatch in the LibPoco library version. What are the system specifications and installation steps?

Installing from source is automated with the setup.sh script. Could you provide the steps here too?

@jmillerv
Copy link

jmillerv commented Mar 26, 2024

Having a similar issue.

OS

Distributor ID:	Raspbian
Description:	Raspbian GNU/Linux 12 (bookworm)
Release:	12
Codename:	bookworm

And I installed via the tarball & the install script.

error

./bin/nymphcast_server -c nymphcast_screensaver_config.ini 
./bin/nymphcast_server: error while loading shared libraries: libPocoUtil.so.70: cannot open shared object file: No such file or directory

UPDATE

I went through and updated my sources to use debian 11 which has the version of libpoco-dev that includes libpocoutil70. Unfortunately, I immediately ran into the next issue, which was another dependency that requires libswscale5.

@jmillerv
Copy link

Solution that got NymphCast working for me.

  • I uninstalled libpoco-dev
  • I updated my /etc/apt/sources.list to deb http://raspbian.raspberrypi.org/raspbian/ bullseye main contrib non-free rpi and my /etc/apt/sources.list.d/raspi.list to deb http://archive.raspberrypi.org/debian/ bullseye main
  • I ran sudo apt update
  • resintalled libpoco-dev and all subsequent packages that it said it was missing

The program is now running on my Raspbery Pi.

@MayaPosch
Copy link
Owner

@jmillerv I think I may have encountered a similar issue with the libpoco dependency on Debian/RPiOS in the past as well. It does indeed appear to be due to an issue with the package manager and it getting its sources/dependencies mixed up. Uninstalling and reinstalling those dependencies seems to be the best 'fix'. Thank you for solving this issue on the latest RPiOS and providing the steps here :)

I assume that @alphabet5 has resolved this issue at this point, and I haven't encountered this issue on Debian-based distros over the past years on x86_64. I'll try it with the latest RPiOS to see whether I encounter this issue there.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants