gpt4 book ai didi

macos -/sbin/ldconfig : No such file or directory when install paho on mac

转载 作者:行者123 更新时间:2023-12-02 10:48:23 26 4
gpt4 key购买 nike

当我尝试按Build Paho MQTT c library on Mac OS X逐步安装paho时,错误消息如下所示。

Alex:org.eclipse.paho.mqtt.c Alex$ sudo make install
mkdir -p build/output/samples
mkdir -p build/output/test
echo OSTYPE is Darwin
OSTYPE is Darwin
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/MQTTVersion /usr/local/bin
/sbin/ldconfig /usr/local/lib
make: /sbin/ldconfig: No such file or directory
make: *** [install] Error 1

有人对此有任何想法吗?谢谢!

[更新]
Alex:org.eclipse.paho.mqtt.c Alex$ sudo make install
mkdir -p build/output/samples
mkdir -p build/output/test
echo OSTYPE is Darwin
OSTYPE is Darwin
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/MQTTVersion /usr/local/bin
# /sbin/ldconfig /usr/local/lib
ln -s libpaho-mqtt3c.so.1 /usr/local/lib/libpaho-mqtt3c.so
ln -s libpaho-mqtt3cs.so.1 /usr/local/lib/libpaho-mqtt3cs.so
ln -s libpaho-mqtt3a.so.1 /usr/local/lib/libpaho-mqtt3a.so
ln -s libpaho-mqtt3as.so.1 /usr/local/lib/libpaho-mqtt3as.so
install -m 644 src/MQTTAsync.h /usr/local/include
install -m 644 src/MQTTClient.h /usr/local/include
install -m 644 src/MQTTClientPersistence.h /usr/local/include

这是否意味着安装已完成?

最佳答案

Makefile不支持OS X,尤其是install部分。注释掉或删除ldconfig行。在OS X上没有这样的命令,因此不需要。

更新

由于存在更多问题,我创建了一个patch for Makefile

关于macos -/sbin/ldconfig : No such file or directory when install paho on mac,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29779209/

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com