ffead-cpp.sh 727 B

1234567891011121314151617181920212223
  1. #!/bin/bash
  2. sudo /etc/init.d/apache2 stop
  3. RETCODE=$(fw_exists ${IROOT}/ffead-cpp.installed)
  4. [ ! "$RETCODE" == 0 ] || { return 0; }
  5. sudo apt-get install -y uuid-dev unixodbc unixodbc-dev
  6. fw_get -o ffead-cpp-2.0.tar.gz https://github.com/sumeetchhetri/ffead-cpp/releases/download/v2.0-Draft-TLV-Fixed-TE_Benchmark/ffead-cpp-2.0-tlfixed-bin.tar.gz
  7. fw_untar ffead-cpp-2.0.tar.gz
  8. cp -R ffead-cpp-2.0-bin/ ${TROOT}/ffead-cpp-2.0
  9. rm -rf ffead-cpp-2.0/
  10. wget https://github.com/mongodb/mongo-c-driver/releases/download/1.1.10/mongo-c-driver-1.1.10.tar.gz
  11. tar -xzf mongo-c-driver-1.1.10.tar.gz
  12. cd mongo-c-driver-1.1.10/
  13. ./configure --prefix=${IROOT} --libdir=${IROOT}
  14. make && sudo make install
  15. touch ${IROOT}/ffead-cpp.installed