Some people including me (Gideon) have encountered some trouble installing nix at home as suggested when Setting Up GW. Here are the problems I encountered with their solutions.

Please feel free to add your own problems or solutions (this is a wiki after all), you can also ask a question and hope someone answers...

error while loading shared libraries

After installing Nix and trying to run, you get this error:

java: error while loading shared libraries: \
  cannot open shared object file: No such file or directory


1. Short-term solution: Edit the file /nix/var/nix/profiles/${USERNAME}-gw-server/bin/start-jetty and comment out the following line:

export LD_ASSUME_KERNEL=2.2.5

and then you should be able to successfully go on to the next error, concerning libsvnjavahl ;).

2. Long-term solution: Since the /nix/var/nix/profiles/${USERNAME}-gw-server/bin/start-jetty is generated every time you rebuild the project (or at least when certain things are changed in the project), you should look for the same line as above in gw/nix/jetty/ and comment (or even remove) it there. Same suggestion goes for the Sever crashes with "cannot set LC_ALL locale" problem as well (see below). not found

After installing Nix and starting it, the page at http://localhost:8080/gw/view/trunk/WebHome doesn't load properly but gives the following error:


no svnjavahl in java.library.path


The console also shows this error as follows:

java.lang.UnsatisfiedLinkError: no svnjavahl in java.library.path
        at java.lang.ClassLoader.loadLibrary(
        at java.lang.Runtime.loadLibrary0(
        at java.lang.System.loadLibrary(
        at org.tigris.subversion.javahl.SVNClient.loadNativeLibrary(
        at org.mortbay.util.ThreadPool$


There should be a symlink to the library file which isn't there. Create it by using the following commands (you might have to do this as root):

$ cd /nix/var/nix/profiles/subversion-java/lib/
$ ln -s

Sever crashes with "cannot set LC_ALL locale"

After installing nix and fixing up another issue the server starts nicely but crashes when I try to load http://localhost:8080/gw/view/trunk/WebHome. The webpage never gets loaded and times out but the console gives the following output:

svnjavahl: error: cannot set LC_ALL locale
svnjavahl: error: environment variable LANG is en_US
svnjavahl: error: please check that your locale name is correct
# An unexpected error has been detected by HotSpot Virtual Machine:
#  SIGSEGV (0xb) at pc=0x4e7f3697, pid=18638, tid=196621
# Java VM: Java HotSpot(TM) Client VM (1.5.0_05-b05 mixed mode)
# Problematic frame:
# C  []  _ZN7JNIUtil6setEnvEP7JNIEnv_+0x17
# An error report file with more information is saved as hs_err_pid18638.log
# If you would like to submit a bug report, please visit:
/nix/var/nix/profiles/gideon-gw-server/bin/start-jetty: line 9: 18638 Killed                  
$JAVA_HOME/bin/java -Djava.library.path=:/nix/store/xzm616dhy4ixhd77k5gvkzjdzmff7p52-subversion-1.2.3/lib 
-Djetty.home=$JETTY_HOME -jar $JETTY_HOME/start.jar 


Edit the file /nix/var/nix/profiles/${USERNAME}-gw-server/bin/start-jetty and comment out the following line:

export LANG="en_US"

Topic revision: r4 - 27 Nov 2007, UnknownUser

This site is powered by FoswikiCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding UUCS? Send feedback