install.sh 494 B

1234567891011121314151617181920
  1. #!/bin/bash
  2. # Install silicon
  3. DIR=`pwd`
  4. rm -fr silicon;
  5. git clone https://github.com/matt-42/silicon.git
  6. cd silicon;
  7. CXX=/usr/bin/g++-4.9 ./install.sh $IROOT
  8. # Install microhttpd
  9. cd $DIR
  10. fw_get http://mirror.ibcp.fr/pub/gnu/libmicrohttpd/libmicrohttpd-0.9.39.tar.gz
  11. fw_untar libmicrohttpd-0.9.39.tar.gz
  12. cd libmicrohttpd-0.9.39
  13. ./configure --prefix=$IROOT
  14. make install
  15. cd $TROOT
  16. mkdir -p build
  17. cd build; cmake .. -DCMAKE_CXX_COMPILER=g++-4.9; make silicon_tpc_mysql; make silicon_epoll_mysql