Repository navigation
Docker Compose libcups.so.2 #1012
Replies: 4 comments 4 replies
|
Hey @danielchild1 I am having same issue... did you find way to solve it? |
|
@michaelrsweet by any chance can you bring us some light here? Thank you so much. |
|
May be will help, change pathtolib where you install cups. |
|
I ran into this issue be the case on both I had more luck running olbat/cupsd instead of building from source. docker run -d -p 631:631 -v /var/run/dbus:/var/run/dbus --name cupsd olbat/cupsdFixesThere are two fixes that should resolve libraries not being found. Modify Dockerfile change-RUN ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var && make clean && make && make install
+RUN LDFLAGS='-Wl,-rpath=${libdir}' ./configure --prefix=/usr --sysconfdir=/etc --localstatedir=/var && make clean && make && make installMakedefs.in version-ALL_LDFLAGS = -L../cups @LDARCHFLAGS@ @RELROFLAGS@ $(LDFLAGS) \
+ALL_LDFLAGS = -L../cups -Wl,-rpath=${libdir} @LDARCHFLAGS@ @RELROFLAGS@ $(LDFLAGS) \The Dockerfile change should source rebuild when you when you run To CleanThis assumes you only have one image with "cups-cups" in the name # Remove containers referencing the cups image
docker container ls -a | grep 'cups-cups' | awk '{print $1}' | xargs -I{} docker container rm "{}"
# Remove cups image
docker image rm cups-cups
docker system pruneOtherwise run |
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
When I use
docker compose upI get caught on the the errorerror while loading shared libraries: libcups.so.2: cannot open shared object file: No such file or directory. So I go into the Dockerfile and addlibcups2to the end of the apt-get install -y line. Once I rebuild and run it gives me asymbol lookup error: /usr/sbin/cupsd: undefined symbol: _cupsArrayStrcmpError.I am wondering if I am needing to do some more prepwork before running this docker container. Is there documentation for the docker-compose.yml? I cannot find it. Thank you!
All reactions