0

我正在使用安装 ubuntu16.04 的 Docker 容器,我尝试安装 openvino 工具包的设置,所以当我按照https://github.com/intel中给出的命令安装 Paho* MQTT C 客户端库时出现以下错误-iot-devkit/人员计数器

root@2fe5f8678637:~# cd paho.mqtt.c

root@2fe5f8678637:~/paho.mqtt.c# ls -a

.               CODE_OF_CONDUCT.md  .git           src
..              conanfile.py        .gitignore     test
about.html      CONTRIBUTING.md     .gitreview     test_package
android         .cproject           LICENSE        travis-build.sh
appveyor.yml    debian              Makefile       travis-deploy.sh
build           deploy_rsa.enc      notice.html    travis-env-vars
build.xml       dist                .project       travis-install.sh
 cbuild.bat      doc                 .pydevproject  travis-macos-vars
cmake           edl-v10             README.md      travis-setup-deploy.sh
CMakeLists.txt  epl-v10             .settings      .travis.yml

root@2fe5f8678637:~/paho.mqtt.c# make

mkdir -p build/output/samples
mkdir -p build/output/test
echo OSTYPE is Linux
OSTYPE is Linux

root@2fe5f8678637:~/paho.mqtt.c# sudo make install
mkdir -p build/output/samples
mkdir -p build/output/test
echo OSTYPE is Linux
OSTYPE is Linux
mkdir -p /usr/local/include

install -m 644  build/output/libpaho-mqtt3c.so.1.0 /usr/local/lib
install -m 644  build/output/libpaho-mqtt3cs.so.1.0 /usr/local/lib
install -m 644  build/output/libpaho-mqtt3a.so.1.0 /usr/local/lib
install -m 644  build/output/libpaho-mqtt3as.so.1.0 /usr/local/lib
install  build/output/paho_c_version /usr/local/bin
install  build/output/samples/paho_c_pub /usr/local/bin
install  build/output/samples/paho_c_sub /usr/local/bin
install  build/output/samples/paho_cs_pub /usr/local/bin
install  build/output/samples/paho_cs_sub /usr/local/bin
/sbin/ldconfig /usr/local/lib

ln -s libpaho-mqtt3c.so.1 /usr/local/lib/libpaho-mqtt3c.so

ln: failed to create symbolic link '/usr/local/lib/libpaho-mqtt3c.so':            File exists
Makefile:273: recipe for target 'install' failed
make: *** [install] Error 1

有人可以解释该错误的含义以及如何解决它吗?

4

1 回答 1

0

文档中:

ln [OPTION]... TARGET... DIRECTORY 

因此,如果您的目标是/usr/local/lib/libpaho-mqtt3c.so,则应该反过来使用它,如下所示:

ln -s /usr/local/lib/libpaho-mqtt3c.so libpaho-mqtt3c.so.1
于 2018-09-03T10:52:31.100 回答