/ sbin / ldconfig:在mac上安装paho时没有这样的文件或目录

时间:2015-04-21 17:28:53

标签: macos compiler-errors makefile mqtt paho

当我尝试逐步引用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

这意味着安装完成了吗?

1 个答案:

答案 0 :(得分:0)

Makefile未准备好OS X,尤其是install部分。注释掉或删除ldconfig行。 OS X上没有这样的命令,也不需要它。

<强>更新

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