You are here

Installing GNUnet 0.10.1 on Ubuntu 14.04

Primary tabs

Install the required dependencies

$ sudo apt-get install libltdl-dev libgpg-error-dev libidn11-dev libunistring-dev libglpk-dev libbluetooth-dev libextractor-dev libmicrohttpd-dev libgnutls28-dev

Choose one or more database backends
SQLite3

$ sudo apt-get install libsqlite3-dev

MySQL

$ sudo apt-get install libmysqlclient-dev

PostgreSQL

$ sudo apt-get install libpq-dev postgresql

Install the optional dependencies for gnunet-conversation:

$ sudo apt-get install gstreamer1.0 libpulse-dev libopus-dev

Install the libgrypt 1.6:
For Ubuntu 14.04:
$ sudo apt-get install libgcrypt20-dev
For Ubuntu older 14.04:
$ wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.6.1.tar.bz2
$ tar xf libgcrypt-1.6.1.tar.bz2
$ cd libgcrypt-1.6.1
$ ./configure
$ sudo make install
$ cd ..

Install libgnurl

$ wget https://gnunet.org/sites/default/files/gnurl-7.35.0.tar.bz2
$ tar xf gnurl-7.35.0.tar.bz2
$ cd gnurl-7.35.0
$ ./configure --enable-ipv6 --with-gnutls --without-libssh2 --without-libmetalink --without-winidn --without-librtmp --without-nghttp2 --without-nss --without-cyassl --without-polarssl --without-ssl --without-winssl --without-darwinssl --disable-sspi --disable-ntlm-wb --disable-ldap --disable-rtsp --disable-dict --disable-telnet --disable-tftp --disable-pop3 --disable-imap --disable-smtp --disable-gopher --disable-file --disable-ftp
$ sudo make install
$ cd ..

Install GNUnet

$ wget http://ftpmirror.gnu.org/gnunet/gnunet-0.10.1.tar.gz
$ tar xf gnunet-0.10.1.tar.gz
$ cd gnunet-0.10.1

If you want to:

  • Install to a different directory:
    --prefix=PREFIX
  • Have sudo permission, but do not want to compile as root:
    --with-sudo
  • Want debug message enabled:
    -- enable-logging=verbose


$ ./configure [ --with-sudo | --prefix=PREFIX | --enable-logging=verbose]
$ make; sudo make install

After installing it, you need to create an empty configuration file:
touch ~/.config/gnunet.conf

And finally you can start GNUnet with
$ gnunet-arm -s