Skip to content

Commit

Permalink
Improved install-dev.sh script #16
Browse files Browse the repository at this point in the history
  • Loading branch information
nemesifier committed Mar 4, 2016
1 parent 48a2183 commit 133c999
Showing 1 changed file with 11 additions and 7 deletions.
18 changes: 11 additions & 7 deletions install-dev.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,23 @@ export CFLAGS="-Wno-error"
apt-get update
# install cmake and git
apt-get install -y cmake git-core
# install json-c and lua
apt-get install -y libjson0 libjson0-dev lua5.1 liblua5.1-0-dev
# install lua
apt-get install -y lua5.1 liblua5.1-0-dev
# install json-c
apt-get install -y dh-autoreconf
git clone https://github.com/json-c/json-c.git --depth=1 && cd json-c
sh autogen.sh && ./configure && make && make install && cd ..
# install openwrt libubox and uci
git clone https://git.openwrt.org/project/libubox.git --depth=1 && cd libubox
cmake . && sudo make install && cd ..
cmake . && make install && cd ..
git clone https://git.openwrt.org/project/uci.git --depth=1 && cd uci
cmake . && sudo make install && cd ..
cmake . && make install && cd ..
# update links to shared libraries
sudo ldconfig -v
ldconfig -v
# install luaunit
git clone https://github.com/bluebird75/luaunit.git --depth=1
mkdir -p /usr/share/lua/5.1/
cd luaunit && sudo cp luaunit.lua /usr/share/lua/5.1/ && cd ..
cd luaunit && cp luaunit.lua /usr/share/lua/5.1/ && cd ..
test -f /usr/share/lua/5.1/luaunit.lua
# clean
rm -rf libubox uci luaunit
rm -rf json-c libubox uci luaunit

0 comments on commit 133c999

Please sign in to comment.