Comment 3 for bug 836348

Revision history for this message
harrykar (harrykar) wrote :

Here are the steps I followed to build gnunet 0.9 from their svn:

1. sudo apt-get install build-essential subversion checkinstall texinfo libcurl4-openssl-dev libgmp3-dev autopoint autoconf libpoppler-dev libtool
1.1 sudo apt-get build-dep libmicrohttpd5 gnunet-server libextractor1c2a

2. download & install from svn Extractor
mkdir -p $HOME/code/gnunet && cd $HOME/code/gnunet
svn checkout https://gnunet.org/svn/Extractor/ && cd Extractor
./bootstrap && ./configure --prefix=/usr && make
sudo make install
make check (optionally)

3. download & install from svn libmicrohttpd
cd $HOME/code/gnunet
svn checkout https://gnunet.org/svn/libmicrohttpd/ && cd libmicrohttpd
./bootstrap && ./configure --prefix=/usr && make
sudo make install
make check (optionally): here i get errors because probably i have something binding against the port the test is using --Although trough a netstat -a i don't see the hard coded test port 42433 in use--

4. download & install from svn gnunet
cd $HOME/code/gnunet
svn co https://gnunet.org/svn/gnunet/ && cd gnunet*
./bootstrap && ./configure --prefix=/usr && make
sudo make install
make check (optionally): here got an error because didn't set GNUNET_PREFIX

Now we have a perfectly functioning gnunet platform (without gui) with textual(cli) interface

Notes:
regard step 4. When i build it in Natty (as guest in virtualbox) --in Lucid i had no problems-- in ./configure phase i get the error:
/bin/sed: can't read /lib/x86_64-linux-gnu/libgcrypt.la: No such file or directory
libtool: link: `/lib/x86_64-linux-gnu/libgcrypt.la' is not a valid libtool archive

That's because libgcrypt.la site in /usr/lib/x86_64-linux-gnu/ in Natty and not in /lib/x86_64-linux-gnu/ where gnunet hope found it. I correlate natty's with lucid's gnunet installation and i do a symlink in natty:

sudo ln -sf /usr/lib/x86_64-linux-gnu/libgcrypt.la /lib/x86_64-linux-gnu/libgcrypt.la

next i redo ./bootstrap && ./configure --prefix=/usr && make and get the error :
gcc: /lib/x86_64-linux-gnu/libgcrypt.so: No such file or directory

I correlate natty's with lucid's gnunet installation and i do a symlink in natty:
sudo ln -sf /lib/x86_64-linux-gnu/libgcrypt.so.11.6.0 /lib/x86_64-linux-gnu/libgcrypt.so

After that make work as intended :-)

Regards
Harry Kar