Linux下安装uci

时间:2015-05-26 18:27:43   收藏:0   阅读:945

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

技术分享

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

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!