[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [bug-GNUnet] Gnunet doesn't work with standard prefix

From: Christian Grothoff
Subject: Re: [bug-GNUnet] Gnunet doesn't work with standard prefix
Date: Mon, 02 Apr 2012 14:45:50 +0200
User-agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv: Gecko/20111114 Icedove/3.1.16

What it doesn't like is that the libraries are not in a directory ending with 'lib/'. At that point, a heuristic to find the 'share' directory fails (the heuristic says that if the library is in X/lib/libgnunetutil.so, the config.d directory should be in X/share/gnunet/config.d/). The code contains a few heuristics to find the resource files, we don't hard-code the path as often the binaries are re-located (i.e. by package managers). If you had *only* used --prefix=/usr or --prefix=/usr/local, those heuristics would work.

Now, this is still not a bug as there is one meta-heuristic which you can use to make sure the path is found. For this, you need to set the environment variable "GNUNET_PREFIX" (I think to just '/usr/' in your case, as I think the config.d should be in /usr/share/gnunet/config.d/ with this configure invocation).

After that, the peer should start. GNUNET_PREFIX is documented in the README and other places, btw.

Happy hacking!


On 04/01/2012 04:13 PM, Bertrand Marc wrote:

I am trying to package Gnunet 0.9.2 for Debian and I can't get it work
properly as soon as I use standard prefixes like these :
./configure --build=x86_64-linux-gnu --prefix=/usr
--includedir=\${prefix}/include --mandir=\${prefix}/share/man
--infodir=\${prefix}/share/info --sysconfdir=/etc --localstatedir=/var
--libexecdir=\${prefix}/lib/x86_64-linux-gnu --disable-maintainer-mode

make && make install seem to work, but any execution fails with errors
like this one :
avril 01 16:09:46-575611 util-25267 WARNING `stat' failed on file
`/usr/lib/x86_64-linux-gnu/share/gnunet/config.d' at disk.c:1081 with
error: Aucun fichier ou dossier de ce type
avril 01 16:09:46-575705 resolver-api-25267 ERROR Must specify
`HOSTNAME' for `resolver' in configuration!
avril 01 16:09:46-575726 gnunet-fs-25267 ERROR Assertion failed at

And tests fail (see attached). I don't understant why gnunet would look
for share* in $libdir instead of $prefix. Do you how this is possible ?

Last thing, with prefix = $HOME, Gnunet seems to work but the tests also

Bertrand Marc

Bug-GNUnet mailing list

reply via email to

[Prev in Thread] Current Thread [Next in Thread]