aboutsummaryrefslogtreecommitdiff
path: root/doc
diff options
context:
space:
mode:
authorng0 <ng0@infotropique.org>2017-09-07 13:47:14 +0000
committerng0 <ng0@infotropique.org>2017-09-07 13:47:14 +0000
commitd6fee7e016217462627b02ec7561c7696ed68402 (patch)
treea2424d02b97361fcecfb9bf99b2c0ae19ef79a3c /doc
parent618f08aa628c0d99b91ab0cf5fd3eac59871ae4c (diff)
downloadgnunet-d6fee7e016217462627b02ec7561c7696ed68402.tar.gz
gnunet-d6fee7e016217462627b02ec7561c7696ed68402.zip
doc: trim chapters/installation.texi to move some very old
instructions into an "archive" file.
Diffstat (limited to 'doc')
-rw-r--r--doc/Makefile.am3
-rw-r--r--doc/chapters/installation.texi511
-rw-r--r--doc/outdated-and-old-installation-instructions.txt672
3 files changed, 678 insertions, 508 deletions
diff --git a/doc/Makefile.am b/doc/Makefile.am
index 1e5a12321..72c073496 100644
--- a/doc/Makefile.am
+++ b/doc/Makefile.am
@@ -75,7 +75,8 @@ gnunet_TEXINFOS = \
75EXTRA_DIST = \ 75EXTRA_DIST = \
76 $(gnunet_TEXINFOS) \ 76 $(gnunet_TEXINFOS) \
77 $(gnunet_doc_images) \ 77 $(gnunet_doc_images) \
78 $(gnunet_tutorial_examples) 78 $(gnunet_tutorial_examples) \
79 outdated-and-old-installation-instructions.txt
79 80
80version.texi: 81version.texi:
81 echo "@set UPDATED $(date +'%d %B %Y')" > $@ 82 echo "@set UPDATED $(date +'%d %B %Y')" > $@
diff --git a/doc/chapters/installation.texi b/doc/chapters/installation.texi
index be458981f..edbad84de 100644
--- a/doc/chapters/installation.texi
+++ b/doc/chapters/installation.texi
@@ -1190,15 +1190,14 @@ and Postgres better resillience.
1190This chapter contains a collection of outdated, older installation guides. They 1190This chapter contains a collection of outdated, older installation guides. They
1191are mostly intended to serve as a starting point for writing up-to-date 1191are mostly intended to serve as a starting point for writing up-to-date
1192instructions and should not be expected to work for GNUnet 0.10.x. 1192instructions and should not be expected to work for GNUnet 0.10.x.
1193A set of older installation instructions can also be found in the
1194@file{doc/outdated-and-old-installation-instructions.txt} in the source
1195of GNUnet. This file covers old instructions which no longer receive
1196security updates or any kind of support.
1193 1197
1194 1198
1195@menu 1199@menu
1196* Installing GNUnet 0.10.1 on Ubuntu 14.04:: 1200* Installing GNUnet 0.10.1 on Ubuntu 14.04::
1197* Build instructions for FreeBSD 8::
1198* Basic installation for Mac OS X::
1199* Basic Installation for Fedora/PlanetLab nodes running Fedora 12::
1200* Basic Installation for Fedora/PlanetLab nodes running Fedora 8 .::
1201* Build instructions for Gentoo::
1202* Building GLPK for MinGW:: 1201* Building GLPK for MinGW::
1203* GUI build instructions for Ubuntu 12.04 using Subversion:: 1202* GUI build instructions for Ubuntu 12.04 using Subversion::
1204* Installation with gnunet-update:: 1203* Installation with gnunet-update::
@@ -1297,508 +1296,6 @@ After installing it, you need to create an empty configuration file:@
1297And finally you can start GNUnet with@ 1296And finally you can start GNUnet with@
1298@code{$ gnunet-arm -s} 1297@code{$ gnunet-arm -s}
1299 1298
1300
1301@node Build instructions for FreeBSD 8
1302@subsection Build instructions for FreeBSD 8
1303
1304To get GNUnet 0.9 to compile on FreeBSD (at least FreeBSD 8.0):@ in order to
1305install the library @code{libiconv}, at first change the directory to your
1306ports directory, e.g.@
1307@code{@
1308 $ cd /usr/ports/@
1309}@
1310 following that, go to the install file of @code{libiconv} and install it,@
1311@code{@
1312 $ cd converters/libiconv,@
1313 $ make install@
1314}
1315
1316after that, change the directory to where you will check out
1317@code{libextractor} and GNUnet, and install latest @code{libextractor},@
1318 first of all, checkout @code{libextractor}, e.g.@
1319@code{@
1320 $ svn co https://gnunet.org/svn/Extractor@
1321}@
1322 then change the directory into which it was checked out, e.g.@
1323@code{@
1324 $ cd Extractor@
1325}@
1326 before the installation, you should do following steps,@
1327
1328@example
1329$ ./bootstrap@
1330$ ./configure --with-ltdl-include=/usr/local/include \
1331 --with-ltdl-lib=/usr/local/lib@
1332@end example
1333
1334if these steps complete successfully, you can install the library,@
1335
1336@example
1337$ make install@
1338@end example
1339
1340to check out the GNUnet, you should do the similar steps as
1341@code{libextractor}, firstly, change back to starting directory, e.g.@
1342@code{@
1343 $ cd ../@
1344}@
1345 Set the following environmental variables:@
1346@code{@
1347 export CPPFLAGS="-I/usr/local/include"@
1348 export LDFLAGS="-L/usr/local/lib"@
1349}@
1350 next, checkout GNUnet using@
1351@code{@
1352 $ svn co https://gnunet.org/svn/gnunet@
1353}@
1354 then change directory into newly checked out directory,@
1355@code{@
1356 $ cd gnunet@
1357}@
1358 at last, start to install GNUnet,@
1359
1360@example
1361 $ ./bootstrap@
1362 $ ./configure --with-ltdl-include=/usr/local/include \
1363 --with-ltdl-lib=/usr/local/lib --with-extractor=/usr/local
1364
1365## NOTE: you may not need the --with-extractor option!@
1366
1367$ make install
1368@end example
1369
1370@node Basic installation for Mac OS X
1371@subsection Basic installation for Mac OS X
1372
1373This documentation may be outdated!
1374
1375This page is providing guidelines for users trying to install GNUnet on Mac OS
1376X.@ Mainly users trying to install GNUnet by building source code are the most
1377welcome readers.@ The steps below are tested on an Intel Architecture running
1378Mac OS X Tiger (10.4.11). Ideally they should work on other Mac boxes with
1379different configurations as all the configuration done for it is dependent on
1380@uref{http://www.macports.org/, MacPorts}
1381
1382For having GNUnet installed successfully, some dependencies should be firstly
1383resolved:
1384
1385@itemize @bullet
1386
1387@item
1388Install/Update your @uref{http://developer.apple.com/tools/xcode/, Xcode}
1389version 3.2.1 or later for Snow Leopard, 3.1.4 or later for Leopard, or 2.5 for
1390Tiger.
1391
1392@item
1393Download and install @uref{http://www.macports.org/, MacPorts}.@
1394Now you are ready for installing GNunet dependencies.
1395
1396@item
1397First, you'd better make sure that: /opt/local/bin and /opt/local/sbin are
1398available in your PATH. (For doing so, open a terminal and type:@
1399
1400@example
1401$ echo $PATH
1402@end example
1403
1404and examine the output of it). If the paths are not available in your
1405environment, you have to add them (You can add them by editing your .profile
1406file in your home directory, append them to the PATH line). Then type:
1407@example
1408$ source ~/.profile
1409@end example
1410
1411and re-examine the echo command output.
1412
1413@item
1414Use MacPorts to download and install the dependencies:@
1415The libraries are:
1416
1417@itemize @bullet
1418
1419@item
1420@uref{http://trac.macports.org/browser/trunk/dports/www/libmicrohttpd/Portfile, libmicrohttpd.}
1421
1422@item
1423@uref{http://trac.macports.org/browser/trunk/dports/devel/libgcrypt/Portfile, libgcrypt.}
1424
1425@item
1426@uref{http://trac.macports.org/browser/trunk/dports/net/curl/Portfile, libcurl.}
1427
1428@item
1429@uref{http://trac.macports.org/browser/trunk/dports/devel/libtool/Portfile, libltdl.}
1430
1431@item
1432@uref{http://trac.macports.org/browser/trunk/dports/databases/sqlite3/Portfile, SQlite.}
1433
1434@item
1435libunistring
1436
1437@item
1438glpk
1439
1440@end itemize
1441
1442The port command is as follows:@
1443@example
1444port install libmicrohttpd libgcrypt curl libtool sqlite3 linunistring glpk
1445@end example
1446One of the dependencies, the libextractor, should be explicitly installed,
1447since the version available from macports is outdated to work with GNUnet. To
1448install the latest libextractor:
1449@itemize @bullet
1450
1451
1452@item
1453Install the Subversion Client:@
1454For more information about Subversion visit:
1455@uref{http://subversion.tigris.org/, http://subversion.tigris.org/}
1456
1457@example
1458# port install subversion
1459@end example
1460
1461
1462@item
1463Use Subversion to download the latest Extractor:
1464@example
1465$ svn checkout https://gnunet.org/svn/Extractor
1466@end example
1467
1468
1469@item
1470Go to the installation directory of the Extractor, compile and install it:
1471@example
1472$ ./bootstrap
1473$ export CPPFLAGS="-I/opt/local/include"
1474$ export LDFLAGS="-L/opt/local/lib"
1475$ ./configure --prefix=/opt/local
1476$ make
1477# make install
1478@end example
1479
1480@end itemize
1481
1482
1483@item
1484Now, your system is ready to install GNunet. If you downloaded GNUnet by
1485checking it out from svn, you should start by running the bootstrap script.
1486Open a terminal pointing to the GNUnet directory and type:@
1487
1488@example
1489$ ./bootstrap
1490@end example
1491
1492
1493@item
1494Run the configure script:
1495@example
1496$ export CPPFLAGS="-I/opt/local/include"
1497$ export LDFLAGS="-L/opt/local/lib"
1498$ ./configure --prefix=/tmp/gnunet_build
1499@end example
1500
1501
1502GNUnet will be installed in the directory /tmp/gnunet_build (Of course that
1503installation path can be changed).@ The CPPFLAGS and LDFLAGS are mentioned in
1504order to inform the compiler and the linker to lookup headers and libraries in
1505/opt/local/include and /opt/local/lib.
1506
1507@item
1508Compile@
1509
1510@example
1511$ make
1512@end example
1513
1514
1515@item
1516Install GNUnet
1517@example
1518# make install
1519@end example
1520
1521@end itemize
1522
1523@node Basic Installation for Fedora/PlanetLab nodes running Fedora 12
1524@subsection Basic Installation for Fedora/PlanetLab nodes running Fedora 12
1525
1526
1527@strong{This documentation is outdated and not valid for GNUnet 0.10.0!}@
1528
1529GNUnet installation on Fedora 8/Planetlab nodes can be done as following:
1530
15311. Install the build tools to build GNUnet@
1532@example
1533sudo yum -y -t --nogpgcheck install gcc make autoconf gettext-devel \
1534texinfo subversion@
1535@end example
1536
15372. Install the GNUnet dependencies@
1538@example
1539sudo yum -y -t --nogpgcheck install libunistring-devel libunistring-devel \
1540libgcrypt-devel zlib-devel sqlite-devel postgresql-devel mysql-devel \
1541libgsf-devel libvorbis-devel@
1542@end example
1543
15443. Install outdated dependencies from source@
1545libtool@
1546@example
1547wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz@
1548tar xvfz libtool-2.4.2.tar.gz@
1549cd libtool-2.4.2@
1550./configure@
1551sudo make install@
1552@end example
1553
1554glpk@
1555@example
1556wget http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz@
1557tar xvfz glpk-4.47.tar.gz@
1558cd glpk-4.47@
1559./configure@
1560sudo make install@
1561@end example
1562
1563libcurl@
1564@example
1565wget http://curl.haxx.se/download/curl-7.26.0.tar.gz@
1566tar xvfz curl-7.26.0.tar.gz@
1567cd curl-7.26.0@
1568./configure@
1569sudo make install@
1570@end example
1571
15724. Install libextractor@
1573@example
1574svn co https://gnunet.org/svn/libextractor@
1575cd libextractor@
1576libtoolize@
1577./bootstrap@
1578./configure@
1579sudo make install@
1580@end example
1581
15825. Install libmicrohttpd@
1583@example
1584svn co https://gnunet.org/svn/libmicrohttpd@
1585cd libmicrohttpd@
1586libtoolize@
1587./bootstrap@
1588./configure@
1589sudo make install@
1590@end example
1591
15926. Set GNUnet prefix and add to PATH@
1593@example
1594export GNUNET_PREFIX=@
1595export PATH=$PATH:$GNUNET_PREFIX/bin@
1596@end example
1597
15987. Install GNUnet from svn@
1599@example
1600export LD_LIBRARY_PATH=/usr/local/lib@
1601svn co https://gnunet.org/svn/gnunet@
1602cd gnunet@
1603libtoolize@
1604./bootstrap@
1605./configure --prefix=$GNUNET_PREFIX --with-extractor=/usr \
1606 --with-mysql=/usr/lib/mysql --enable-logging=verbose@
1607make install@
1608@end example
1609
1610Done!
1611
1612@node Basic Installation for Fedora/PlanetLab nodes running Fedora 8 .
1613@subsection Basic Installation for Fedora/PlanetLab nodes running Fedora 8 .
1614@c %**end of header
1615
1616@strong{This documentation is outdated and not valid for GNUnet 0.10.0!}@
1617 GNUnet installation on Fedora 8/Planetlab nodes can be done as following:
1618
16191. Install the build tools to build GNUnet@
1620@example
1621sudo yum -y -t --nogpgcheck install gcc make automake autoconf gettext-devel \
1622texinfo zlib-devel subversion@
1623@end example
1624
16252. Install the GNUnet dependencies@
1626@example
1627sudo yum -y -t --nogpgcheck install gnutls-devel gnutls-devel libgcrypt-devel \
1628sqlite-devel postgresql-devel mysql-devel libgsf-devel libvorbis-devel \
1629libidn-devel
1630@end example
1631
16323. Install outdated dependencies from source@
1633 libtool@
1634@code{@
1635 wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz@
1636 tar xvfz libtool-2.4.2.tar.gz@
1637 cd libtool-2.4.2@
1638 ./configure@
1639 sudo make install@
1640}
1641
1642libtool@
1643@code{@
1644 wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz@
1645 tar xvfz libtool-2.4.2.tar.gz@
1646 cd libtool-2.4.2@
1647 ./configure@
1648 sudo make install@
1649}
1650
1651glpk@
1652@code{@
1653 wget http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz@
1654 tar xvfz glpk-4.47.tar.gz@
1655 cd glpk-4.47@
1656 ./configure@
1657 sudo make install@
1658}
1659
1660libgpg-error@
1661@code{@
1662 wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.10.tar.bz2@
1663 tar xvfj libgpg-error-1.10.tar.bz2@
1664 cd libgpg-error-1.10@
1665 ./configure --prefix=/usr@
1666 sudo make install@
1667}
1668
1669libgcrypt@
1670@code{@
1671 wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2@
1672 tar xvfj libgcrypt-1.5.0.tar.tar.bz2@
1673 cd libgcrypt-1.5.0@
1674 ./configure --prefix=/usr@
1675 sudo make install@
1676}
1677
1678libcurl@
1679@code{@
1680 wget http://curl.haxx.se/download/curl-7.26.0.tar.gz@
1681 tar xvfz curl-7.26.0.tar.gz@
1682 cd curl-7.26.0@
1683 ./configure@
1684 sudo make install@
1685}
1686
1687libunistring@
1688@code{@
1689 wget http://ftp.gnu.org/gnu/libunistring/libunistring-0.9.3.tar.gz@
1690 tar xvfz libunistring-0.9.3.tar.gz@
1691 cd libunistring-0.9.3@
1692 ./configure@
1693 sudo make install@
1694}
1695
16964. Remove conflicting packages@
1697@code{@
1698 sudo rpm -e --nodeps libgcrypt libgpg-error@
1699}
1700
17014. Install libextractor@
1702@code{@
1703 wget ftp://ftp.gnu.org/gnu/libextractor/libextractor-0.6.3.tar.gz@
1704 tar xvfz libextractor-0.6.3.tar.gz@
1705 cd libextractor-0.6.3@
1706 ./configure@
1707 sudo make install@
1708}
1709
17105. Install libmicrohttpd and dependencies
1711
1712nettle@
1713@code{@
1714 wget http://ftp.gnu.org/gnu/nettle/nettle-2.5.tar.gz@
1715 tar xvfz nettle-2.5.tar.gz@
1716 cd nettle-2.5@
1717 ./configure@
1718 sudo make install@
1719}
1720
1721GnuTLS@
1722@code{@
1723 wget http://ftp.gnu.org/gnu/gnutls/gnutls-2.12.20.tar.bz2@
1724 tar xvfj gnutls-2.12.20.tar.bz2@
1725 cd gnutls-2.12.20@
1726 ./configure --without-p11-kit@
1727 sudo make install@
1728}
1729
1730libmicrohttpd@
1731@code{@
1732 wget ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.21.tar.gz@
1733 tar xvfz libmicrohttpd-0.9.21.tar.gz@
1734 cd libmicrohttpd-0.9.21@
1735 ./configure@
1736 sudo make install@
1737}
1738
17396. Set GNUnet prefix and add to PATH@
1740@code{@
1741 export GNUNET_PREFIX=@
1742 export PATH=$PATH:$GNUNET_PREFIX/bin@
1743}
1744
17457. Install GNUnet from svn@
1746@example
1747 export LD_LIBRARY_PATH=/usr/local/lib@
1748 svn co https://gnunet.org/svn/gnunet@
1749 cd gnunet@
1750 libtoolize@
1751 ./bootstrap@
1752 ./configure --prefix=$GNUNET_PREFIX --with-extractor=/usr/local \
1753 --with-curl=/usr/local --with-mysql=/usr/lib/mysql --enable-logging=verbose@
1754 make install@
1755@end example
1756
1757Done!
1758
1759@node Build instructions for Gentoo
1760@subsection Build instructions for Gentoo
1761
1762
1763This page describes how to install GNUnet 0.9 on Gentoo.
1764
1765Since the GNUnet 0.9 ebuilds are not in the official portage tree yet, we need
1766to add them to the local portage overlay. All the commands below should be
1767executed as root.
1768
1769Specify your local portage directory in the /etc/make.conf, for example:@
1770@code{$ echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/make.conf}
1771
1772Create directories for the ebuilds:@
1773@code{$ mkdir -p /usr/local/portage/media-libs/libextractor /usr/local/portage/net-p2p/gnunet/files}
1774
1775Download the latest ebuilds, init and config files from here and put them into
1776respective directories:@
1777@code{$ cp libextractor-0.6.2.ebuild /usr/local/portage/media-libs/libextractor@
1778 $ cp gnunet-0.9.2.ebuild /usr/local/portage/net-p2p/gnunet@
1779 $ cp gnunet-0.9.2.conf gnunet-0.9.2.confd gnunet-0.9.2.initd /usr/local/portage/net-p2p/gnunet/files}
1780
1781Generate Manifest files for the ebuilds:@
1782@code{$ cd /usr/local/portage/net-p2p/gnunet@
1783 $ ebuild gnunet-0.9.2.ebuild digest@
1784 $ cd /usr/local/portage/media-libs/libextractor@
1785 $ ebuild libextractor-0.6.2.ebuild digest}
1786
1787Unmask GNUnet and dependencies in the /etc/portage/package.keywords. For
1788example, if you use x86-64 architecture, add the following lines:@
1789@code{net-p2p/gnunet ~amd64@
1790 media-libs/libextractor ~amd64@
1791 net-libs/libmicrohttpd ~amd64@
1792 net-misc/curl ~amd64}
1793
1794Add either sqlite or mysql USE-flag in the /etc/portage/package.use:@
1795@code{net-p2p/gnunet sqlite}
1796
1797Now everything is ready to install GNUnet:@
1798@code{$ emerge -av gnunet}
1799
1800Use /etc/init.d/gnunet to start/stop GNUnet.
1801
1802@node Building GLPK for MinGW 1299@node Building GLPK for MinGW
1803@subsection Building GLPK for MinGW 1300@subsection Building GLPK for MinGW
1804 1301
diff --git a/doc/outdated-and-old-installation-instructions.txt b/doc/outdated-and-old-installation-instructions.txt
new file mode 100644
index 000000000..f2cbe1847
--- /dev/null
+++ b/doc/outdated-and-old-installation-instructions.txt
@@ -0,0 +1,672 @@
1# This file contains pieces from chapter/installation.texi for systems where the LTS or otherwise support
2# ended. They can be useful for people trying to write new installation instructions for those systems.
3# In particual this covers:
4# - FreeBSD 8
5# - Mac OS X Tiger
6# - Fedora 8
7# - Gentoo with GNUnet 0.9
8#
9# Sources for LTS and support ranges:
10# https://www.freebsd.org/security/security.html#sup
11# https://support.microsoft.com/en-us/help/17140/lifecycle-faq-general-policy-questions
12# Mac products, OS is supposedly similar (no official statements exist): https://web.archive.org/web/20160706101225/https://support.apple.com/en-us/HT201624
13# https://wiki.debian.org/LTS
14# https://www.ubuntu.com/info/release-end-of-life
15
16@node Build instructions for Gentoo
17@subsection Build instructions for Gentoo
18
19
20This page describes how to install GNUnet 0.9 on Gentoo.
21
22Since the GNUnet 0.9 ebuilds are not in the official portage tree yet, we need
23to add them to the local portage overlay. All the commands below should be
24executed as root.
25
26Specify your local portage directory in the /etc/make.conf, for example:@
27@code{$ echo 'PORTDIR_OVERLAY="/usr/local/portage"' >> /etc/make.conf}
28
29Create directories for the ebuilds:@
30@code{$ mkdir -p /usr/local/portage/media-libs/libextractor /usr/local/portage/net-p2p/gnunet/files}
31
32Download the latest ebuilds, init and config files from here and put them into
33respective directories:@
34@code{$ cp libextractor-0.6.2.ebuild /usr/local/portage/media-libs/libextractor@
35 $ cp gnunet-0.9.2.ebuild /usr/local/portage/net-p2p/gnunet@
36 $ cp gnunet-0.9.2.conf gnunet-0.9.2.confd gnunet-0.9.2.initd /usr/local/portage/net-p2p/gnunet/files}
37
38Generate Manifest files for the ebuilds:@
39@code{$ cd /usr/local/portage/net-p2p/gnunet@
40 $ ebuild gnunet-0.9.2.ebuild digest@
41 $ cd /usr/local/portage/media-libs/libextractor@
42 $ ebuild libextractor-0.6.2.ebuild digest}
43
44Unmask GNUnet and dependencies in the /etc/portage/package.keywords. For
45example, if you use x86-64 architecture, add the following lines:@
46@code{net-p2p/gnunet ~amd64@
47 media-libs/libextractor ~amd64@
48 net-libs/libmicrohttpd ~amd64@
49 net-misc/curl ~amd64}
50
51Add either sqlite or mysql USE-flag in the /etc/portage/package.use:@
52@code{net-p2p/gnunet sqlite}
53
54Now everything is ready to install GNUnet:@
55@code{$ emerge -av gnunet}
56
57Use /etc/init.d/gnunet to start/stop GNUnet.
58
59
60
61
62@node Basic Installation for Fedora/PlanetLab nodes running Fedora 8 .
63@subsection Basic Installation for Fedora/PlanetLab nodes running Fedora 8 .
64@c %**end of header
65
66@strong{This documentation is outdated and not valid for GNUnet 0.10.0!}@
67 GNUnet installation on Fedora 8/Planetlab nodes can be done as following:
68
691. Install the build tools to build GNUnet@
70@example
71sudo yum -y -t --nogpgcheck install gcc make automake autoconf gettext-devel \
72texinfo zlib-devel subversion@
73@end example
74
752. Install the GNUnet dependencies@
76@example
77sudo yum -y -t --nogpgcheck install gnutls-devel gnutls-devel libgcrypt-devel \
78sqlite-devel postgresql-devel mysql-devel libgsf-devel libvorbis-devel \
79libidn-devel
80@end example
81
823. Install outdated dependencies from source@
83 libtool@
84@code{@
85 wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz@
86 tar xvfz libtool-2.4.2.tar.gz@
87 cd libtool-2.4.2@
88 ./configure@
89 sudo make install@
90}
91
92libtool@
93@code{@
94 wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz@
95 tar xvfz libtool-2.4.2.tar.gz@
96 cd libtool-2.4.2@
97 ./configure@
98 sudo make install@
99}
100
101glpk@
102@code{@
103 wget http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz@
104 tar xvfz glpk-4.47.tar.gz@
105 cd glpk-4.47@
106 ./configure@
107 sudo make install@
108}
109
110libgpg-error@
111@code{@
112 wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.10.tar.bz2@
113 tar xvfj libgpg-error-1.10.tar.bz2@
114 cd libgpg-error-1.10@
115 ./configure --prefix=/usr@
116 sudo make install@
117}
118
119libgcrypt@
120@code{@
121 wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2@
122 tar xvfj libgcrypt-1.5.0.tar.tar.bz2@
123 cd libgcrypt-1.5.0@
124 ./configure --prefix=/usr@
125 sudo make install@
126}
127
128libcurl@
129@code{@
130 wget http://curl.haxx.se/download/curl-7.26.0.tar.gz@
131 tar xvfz curl-7.26.0.tar.gz@
132 cd curl-7.26.0@
133 ./configure@
134 sudo make install@
135}
136
137libunistring@
138@code{@
139 wget http://ftp.gnu.org/gnu/libunistring/libunistring-0.9.3.tar.gz@
140 tar xvfz libunistring-0.9.3.tar.gz@
141 cd libunistring-0.9.3@
142 ./configure@
143 sudo make install@
144}
145
1464. Remove conflicting packages@
147@code{@
148 sudo rpm -e --nodeps libgcrypt libgpg-error@
149}
150
1514. Install libextractor@
152@code{@
153 wget ftp://ftp.gnu.org/gnu/libextractor/libextractor-0.6.3.tar.gz@
154 tar xvfz libextractor-0.6.3.tar.gz@
155 cd libextractor-0.6.3@
156 ./configure@
157 sudo make install@
158}
159
1605. Install libmicrohttpd and dependencies
161
162nettle@
163@code{@
164 wget http://ftp.gnu.org/gnu/nettle/nettle-2.5.tar.gz@
165 tar xvfz nettle-2.5.tar.gz@
166 cd nettle-2.5@
167 ./configure@
168 sudo make install@
169}
170
171GnuTLS@
172@code{@
173 wget http://ftp.gnu.org/gnu/gnutls/gnutls-2.12.20.tar.bz2@
174 tar xvfj gnutls-2.12.20.tar.bz2@
175 cd gnutls-2.12.20@
176 ./configure --without-p11-kit@
177 sudo make install@
178}
179
180libmicrohttpd@
181@code{@
182 wget ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.21.tar.gz@
183 tar xvfz libmicrohttpd-0.9.21.tar.gz@
184 cd libmicrohttpd-0.9.21@
185 ./configure@
186 sudo make install@
187}
188
1896. Set GNUnet prefix and add to PATH@
190@code{@
191 export GNUNET_PREFIX=@
192 export PATH=$PATH:$GNUNET_PREFIX/bin@
193}
194
1957. Install GNUnet from svn@
196@example
197 export LD_LIBRARY_PATH=/usr/local/lib@
198 svn co https://gnunet.org/svn/gnunet@
199 cd gnunet@
200 libtoolize@
201 ./bootstrap@
202 ./configure --prefix=$GNUNET_PREFIX --with-extractor=/usr/local \
203 --with-curl=/usr/local --with-mysql=/usr/lib/mysql --enable-logging=verbose@
204 make install@
205@end example
206
207Done!
208
209
210@node Build instructions for FreeBSD 8
211@subsection Build instructions for FreeBSD 8
212
213To get GNUnet 0.9 to compile on FreeBSD (at least FreeBSD 8.0):@ in order to
214install the library @code{libiconv}, at first change the directory to your
215ports directory, e.g.@
216@code{@
217 $ cd /usr/ports/@
218}@
219 following that, go to the install file of @code{libiconv} and install it,@
220@code{@
221 $ cd converters/libiconv,@
222 $ make install@
223}
224
225after that, change the directory to where you will check out
226@code{libextractor} and GNUnet, and install latest @code{libextractor},@
227 first of all, checkout @code{libextractor}, e.g.@
228@code{@
229 $ svn co https://gnunet.org/svn/Extractor@
230}@
231 then change the directory into which it was checked out, e.g.@
232@code{@
233 $ cd Extractor@
234}@
235 before the installation, you should do following steps,@
236
237@example
238$ ./bootstrap@
239$ ./configure --with-ltdl-include=/usr/local/include \
240 --with-ltdl-lib=/usr/local/lib@
241@end example
242
243if these steps complete successfully, you can install the library,@
244
245@example
246$ make install@
247@end example
248
249to check out the GNUnet, you should do the similar steps as
250@code{libextractor}, firstly, change back to starting directory, e.g.@
251@code{@
252 $ cd ../@
253}@
254 Set the following environmental variables:@
255@code{@
256 export CPPFLAGS="-I/usr/local/include"@
257 export LDFLAGS="-L/usr/local/lib"@
258}@
259 next, checkout GNUnet using@
260@code{@
261 $ svn co https://gnunet.org/svn/gnunet@
262}@
263 then change directory into newly checked out directory,@
264@code{@
265 $ cd gnunet@
266}@
267 at last, start to install GNUnet,@
268
269@example
270 $ ./bootstrap@
271 $ ./configure --with-ltdl-include=/usr/local/include \
272 --with-ltdl-lib=/usr/local/lib --with-extractor=/usr/local
273
274## NOTE: you may not need the --with-extractor option!@
275
276$ make install
277@end example
278
279
280
281@node Basic installation for Mac OS X
282@subsection Basic installation for Mac OS X
283
284This documentation may be outdated!
285
286This page is providing guidelines for users trying to install GNUnet on Mac OS
287X.@ Mainly users trying to install GNUnet by building source code are the most
288welcome readers.@ The steps below are tested on an Intel Architecture running
289Mac OS X Tiger (10.4.11). Ideally they should work on other Mac boxes with
290different configurations as all the configuration done for it is dependent on
291@uref{http://www.macports.org/, MacPorts}
292
293For having GNUnet installed successfully, some dependencies should be firstly
294resolved:
295
296@itemize @bullet
297
298@item
299Install/Update your @uref{http://developer.apple.com/tools/xcode/, Xcode}
300version 3.2.1 or later for Snow Leopard, 3.1.4 or later for Leopard, or 2.5 for
301Tiger.
302
303@item
304Download and install @uref{http://www.macports.org/, MacPorts}.@
305Now you are ready for installing GNunet dependencies.
306
307@item
308First, you'd better make sure that: /opt/local/bin and /opt/local/sbin are
309available in your PATH. (For doing so, open a terminal and type:@
310
311@example
312$ echo $PATH
313@end example
314
315and examine the output of it). If the paths are not available in your
316environment, you have to add them (You can add them by editing your .profile
317file in your home directory, append them to the PATH line). Then type:
318@example
319$ source ~/.profile
320@end example
321
322and re-examine the echo command output.
323
324@item
325Use MacPorts to download and install the dependencies:@
326The libraries are:
327
328@itemize @bullet
329
330@item
331@uref{http://trac.macports.org/browser/trunk/dports/www/libmicrohttpd/Portfile, libmicrohttpd.}
332
333@item
334@uref{http://trac.macports.org/browser/trunk/dports/devel/libgcrypt/Portfile, libgcrypt.}
335
336@item
337@uref{http://trac.macports.org/browser/trunk/dports/net/curl/Portfile, libcurl.}
338
339@item
340@uref{http://trac.macports.org/browser/trunk/dports/devel/libtool/Portfile, libltdl.}
341
342@item
343@uref{http://trac.macports.org/browser/trunk/dports/databases/sqlite3/Portfile, SQlite.}
344
345@item
346libunistring
347
348@item
349glpk
350
351@end itemize
352
353The port command is as follows:@
354@example
355port install libmicrohttpd libgcrypt curl libtool sqlite3 linunistring glpk
356@end example
357One of the dependencies, the libextractor, should be explicitly installed,
358since the version available from macports is outdated to work with GNUnet. To
359install the latest libextractor:
360@itemize @bullet
361
362
363@item
364Install the Subversion Client:@
365For more information about Subversion visit:
366@uref{http://subversion.tigris.org/, http://subversion.tigris.org/}
367
368@example
369# port install subversion
370@end example
371
372
373@item
374Use Subversion to download the latest Extractor:
375@example
376$ svn checkout https://gnunet.org/svn/Extractor
377@end example
378
379
380@item
381Go to the installation directory of the Extractor, compile and install it:
382@example
383$ ./bootstrap
384$ export CPPFLAGS="-I/opt/local/include"
385$ export LDFLAGS="-L/opt/local/lib"
386$ ./configure --prefix=/opt/local
387$ make
388# make install
389@end example
390
391@end itemize
392
393
394@item
395Now, your system is ready to install GNunet. If you downloaded GNUnet by
396checking it out from svn, you should start by running the bootstrap script.
397Open a terminal pointing to the GNUnet directory and type:@
398
399@example
400$ ./bootstrap
401@end example
402
403
404@item
405Run the configure script:
406@example
407$ export CPPFLAGS="-I/opt/local/include"
408$ export LDFLAGS="-L/opt/local/lib"
409$ ./configure --prefix=/tmp/gnunet_build
410@end example
411
412
413GNUnet will be installed in the directory /tmp/gnunet_build (Of course that
414installation path can be changed).@ The CPPFLAGS and LDFLAGS are mentioned in
415order to inform the compiler and the linker to lookup headers and libraries in
416/opt/local/include and /opt/local/lib.
417
418@item
419Compile@
420
421@example
422$ make
423@end example
424
425
426@item
427Install GNUnet
428@example
429# make install
430@end example
431
432@end itemize
433
434
435@node Basic Installation for Fedora/PlanetLab nodes running Fedora 12
436@subsection Basic Installation for Fedora/PlanetLab nodes running Fedora 12
437
438
439@strong{This documentation is outdated and not valid for GNUnet 0.10.0!}@
440
441GNUnet installation on Fedora 8/Planetlab nodes can be done as following:
442
4431. Install the build tools to build GNUnet@
444@example
445sudo yum -y -t --nogpgcheck install gcc make autoconf gettext-devel \
446texinfo subversion@
447@end example
448
4492. Install the GNUnet dependencies@
450@example
451sudo yum -y -t --nogpgcheck install libunistring-devel libunistring-devel \
452libgcrypt-devel zlib-devel sqlite-devel postgresql-devel mysql-devel \
453libgsf-devel libvorbis-devel@
454@end example
455
4563. Install outdated dependencies from source@
457libtool@
458@example
459wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz@
460tar xvfz libtool-2.4.2.tar.gz@
461cd libtool-2.4.2@
462./configure@
463sudo make install@
464@end example
465
466glpk@
467@example
468wget http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz@
469tar xvfz glpk-4.47.tar.gz@
470cd glpk-4.47@
471./configure@
472sudo make install@
473@end example
474
475libcurl@
476@example
477wget http://curl.haxx.se/download/curl-7.26.0.tar.gz@
478tar xvfz curl-7.26.0.tar.gz@
479cd curl-7.26.0@
480./configure@
481sudo make install@
482@end example
483
4844. Install libextractor@
485@example
486svn co https://gnunet.org/svn/libextractor@
487cd libextractor@
488libtoolize@
489./bootstrap@
490./configure@
491sudo make install@
492@end example
493
4945. Install libmicrohttpd@
495@example
496svn co https://gnunet.org/svn/libmicrohttpd@
497cd libmicrohttpd@
498libtoolize@
499./bootstrap@
500./configure@
501sudo make install@
502@end example
503
5046. Set GNUnet prefix and add to PATH@
505@example
506export GNUNET_PREFIX=@
507export PATH=$PATH:$GNUNET_PREFIX/bin@
508@end example
509
5107. Install GNUnet from svn@
511@example
512export LD_LIBRARY_PATH=/usr/local/lib@
513svn co https://gnunet.org/svn/gnunet@
514cd gnunet@
515libtoolize@
516./bootstrap@
517./configure --prefix=$GNUNET_PREFIX --with-extractor=/usr \
518 --with-mysql=/usr/lib/mysql --enable-logging=verbose@
519make install@
520@end example
521
522Done!
523
524
525@node Basic Installation for Fedora/PlanetLab nodes running Fedora 8 .
526@subsection Basic Installation for Fedora/PlanetLab nodes running Fedora 8 .
527@c %**end of header
528
529@strong{This documentation is outdated and not valid for GNUnet 0.10.0!}@
530 GNUnet installation on Fedora 8/Planetlab nodes can be done as following:
531
5321. Install the build tools to build GNUnet@
533@example
534sudo yum -y -t --nogpgcheck install gcc make automake autoconf gettext-devel \
535texinfo zlib-devel subversion@
536@end example
537
5382. Install the GNUnet dependencies@
539@example
540sudo yum -y -t --nogpgcheck install gnutls-devel gnutls-devel libgcrypt-devel \
541sqlite-devel postgresql-devel mysql-devel libgsf-devel libvorbis-devel \
542libidn-devel
543@end example
544
5453. Install outdated dependencies from source@
546 libtool@
547@code{@
548 wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz@
549 tar xvfz libtool-2.4.2.tar.gz@
550 cd libtool-2.4.2@
551 ./configure@
552 sudo make install@
553}
554
555libtool@
556@code{@
557 wget http://ftp.gnu.org/gnu/libtool/libtool-2.4.2.tar.gz@
558 tar xvfz libtool-2.4.2.tar.gz@
559 cd libtool-2.4.2@
560 ./configure@
561 sudo make install@
562}
563
564glpk@
565@code{@
566 wget http://ftp.gnu.org/gnu/glpk/glpk-4.47.tar.gz@
567 tar xvfz glpk-4.47.tar.gz@
568 cd glpk-4.47@
569 ./configure@
570 sudo make install@
571}
572
573libgpg-error@
574@code{@
575 wget ftp://ftp.gnupg.org/gcrypt/libgpg-error/libgpg-error-1.10.tar.bz2@
576 tar xvfj libgpg-error-1.10.tar.bz2@
577 cd libgpg-error-1.10@
578 ./configure --prefix=/usr@
579 sudo make install@
580}
581
582libgcrypt@
583@code{@
584 wget ftp://ftp.gnupg.org/gcrypt/libgcrypt/libgcrypt-1.5.0.tar.bz2@
585 tar xvfj libgcrypt-1.5.0.tar.tar.bz2@
586 cd libgcrypt-1.5.0@
587 ./configure --prefix=/usr@
588 sudo make install@
589}
590
591libcurl@
592@code{@
593 wget http://curl.haxx.se/download/curl-7.26.0.tar.gz@
594 tar xvfz curl-7.26.0.tar.gz@
595 cd curl-7.26.0@
596 ./configure@
597 sudo make install@
598}
599
600libunistring@
601@code{@
602 wget http://ftp.gnu.org/gnu/libunistring/libunistring-0.9.3.tar.gz@
603 tar xvfz libunistring-0.9.3.tar.gz@
604 cd libunistring-0.9.3@
605 ./configure@
606 sudo make install@
607}
608
6094. Remove conflicting packages@
610@code{@
611 sudo rpm -e --nodeps libgcrypt libgpg-error@
612}
613
6144. Install libextractor@
615@code{@
616 wget ftp://ftp.gnu.org/gnu/libextractor/libextractor-0.6.3.tar.gz@
617 tar xvfz libextractor-0.6.3.tar.gz@
618 cd libextractor-0.6.3@
619 ./configure@
620 sudo make install@
621}
622
6235. Install libmicrohttpd and dependencies
624
625nettle@
626@code{@
627 wget http://ftp.gnu.org/gnu/nettle/nettle-2.5.tar.gz@
628 tar xvfz nettle-2.5.tar.gz@
629 cd nettle-2.5@
630 ./configure@
631 sudo make install@
632}
633
634GnuTLS@
635@code{@
636 wget http://ftp.gnu.org/gnu/gnutls/gnutls-2.12.20.tar.bz2@
637 tar xvfj gnutls-2.12.20.tar.bz2@
638 cd gnutls-2.12.20@
639 ./configure --without-p11-kit@
640 sudo make install@
641}
642
643libmicrohttpd@
644@code{@
645 wget ftp://ftp.gnu.org/gnu/libmicrohttpd/libmicrohttpd-0.9.21.tar.gz@
646 tar xvfz libmicrohttpd-0.9.21.tar.gz@
647 cd libmicrohttpd-0.9.21@
648 ./configure@
649 sudo make install@
650}
651
6526. Set GNUnet prefix and add to PATH@
653@code{@
654 export GNUNET_PREFIX=@
655 export PATH=$PATH:$GNUNET_PREFIX/bin@
656}
657
6587. Install GNUnet from svn@
659@example
660 export LD_LIBRARY_PATH=/usr/local/lib@
661 svn co https://gnunet.org/svn/gnunet@
662 cd gnunet@
663 libtoolize@
664 ./bootstrap@
665 ./configure --prefix=$GNUNET_PREFIX --with-extractor=/usr/local \
666 --with-curl=/usr/local --with-mysql=/usr/lib/mysql --enable-logging=verbose@
667 make install@
668@end example
669
670Done!
671
672