我正在尝试创建一个使用Bluez的Docker容器。在下载并解包我需要使用的版本后./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var
但是每次我尝试使用这个文件来构建我的容器时,我都会得到这个错误
checking udev directory... Package udev was not found in the pkg-config search path.
Perhaps you should add the directory containing `udev.pc'
to the PKG_CONFIG_PATH environment variable
No package 'udev' found
configure: error: udev directory is required
我不知道我做错了什么,或者我能做些什么来解决这个问题。
有问题的Dockerfile:
FROM ubuntu:18.04
USER root
WORKDIR /home/docker
COPY . /home/docker
ENV TZ=Europe/Vienna
ENV JAVA_HOME=/usr/lib/jvm/java-8-openjdk-ard64/
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt update && \
apt upgrade && \
apt install -y wget && \
apt install -y git && \
apt install -y cmake && \
apt install -y openjdk-8-jdk && \
apt install -y maven && \
apt install -y libglib2.0-dev libdbus-1-dev libudev-dev libical-dev libreadline-dev && \
wget http://www.kernel.org/pub/linux/bluetooth/bluez-5.47.tar.xz && \
tar -xf bluez-5.47.tar.xz && \
cd bluez-5.47 && \
./configure --prefix=/usr --mandir=/usr/share/man --sysconfdir=/etc --localstatedir=/var
make && \
make install
1条答案
按热度按时间whitzsjs1#
此问题与missing libudev static libraires有关。
添加这些标志以进行配置: