bootstrap.ubuntu.sh 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748
  1. #/bin/sh
  2. # Source https://gnunet.org/dependencies and README
  3. apt-get update
  4. # Install required tools
  5. apt-get -y install git build-essential gnupg curl openssl gnutls-bin miniupnpc
  6. # Autotools required for compiling
  7. apt-get -y install autoconf automake libtool autopoint
  8. # Tools for debugging
  9. apt-get -y install gdb valgrind
  10. # Direct dependencies obtained from README
  11. apt-get -y install libmicrohttpd-dev
  12. apt-get -y install libextractor-dev
  13. apt-get -y install libunistring-dev
  14. apt-get -y install libidn11-dev
  15. apt-get -y install libgcrypt20-dev
  16. apt-get -y install libgnutls30-dev
  17. apt-get -y install libltdl-dev
  18. apt-get -y install libcurl3
  19. apt-get -y install sqlite3 libsqlite3-dev
  20. apt-get -y install zlib1g-dev
  21. # apt-get -y install texlive-full # Skipped > 1GB
  22. # optional for gnunet-conversation
  23. # apt-get -y install libpulse-dev libopus-dev libogg-dev gstreamer1.0
  24. # optional for gnunet-qr
  25. apt-get -y install libzbar-dev
  26. # optional for experimental code
  27. apt-get -y install libglpk-dev
  28. #
  29. apt-get -y install libbluetooth-dev libjansson-dev
  30. # Compilation process
  31. addgroup gnunetdns
  32. adduser --system --home "/var/lib/gnunet" --group gnunet --shell /bin/sh
  33. # cd /gnunet
  34. # . bootstrap
  35. # export GNUNET_PREFIX=/usr/local/lib # or other directory of your choice
  36. # ./configure --prefix=$GNUNET_PREFIX/.. --with-extractor=$LE_PREFIX
  37. # make
  38. # make install
  39. # make check
  40. # echo "/usr/local/lib/gnunet" > /etc/ld.so.conf.d/libgnunet.conf
  41. # ldconfig
  42. # sudo -u gnunet gnunet-arm -s