Linux下安装uci

Compiling UCI as stand alone

cd ~
git clone git://nbd.name/uci.git ~/uci
cd ~/uci
cmake -DBUILD_LUA=off
sudo make install

或make install DESTDIR=$HOME(为了能够安装到标准路径下,方便其他程序也可以调用uci库,此处选择sudo mak install安装到根目录下)

此时会提示出错,

进入

http://nbd.name/gitweb.cgi?p=luci2/libubox.git;a=summary

Linux下安装uci

git clone git://nbd.name/luci2/libubox.git ~/libubox
cd ~/libubox
cmake -DBUILD_LUA=off
sudo make install

返回uci目录继续安装

cd ~/uci
sudo make install

更新ldconfig

sudo /sbin/ldconfig -v

OK

参考:

http://blog.csdn.net/wsclinux/article/details/40426401

http://blog.csdn.net/newthinker_wei/article/details/8843133

https://forum.openwrt.org/viewtopic.php?id=15243

上一篇:配置基于Vim的Python开发环境


下一篇:005 Python开发环境配置