tingpan

生命不息,折腾不止!
  首页  :: 新随笔  :: 联系 :: 订阅 订阅  :: 管理

Linux下安装uci

Posted on 2015-05-26 17:21  tingpan  阅读(1716)  评论(0编辑  收藏  举报

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

image

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