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 startup.sh, you get this error:

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

Solution

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/builder.sh 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).


libsvnjavahl.so 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:

HTTP ERROR: 500

no svnjavahl in java.library.path

RequestURI=/gw/view/trunk/WebHome

The console also shows this error as follows:

java.lang.UnsatisfiedLinkError: no svnjavahl in java.library.path
        at java.lang.ClassLoader.loadLibrary(ClassLoader.java:1682)
        at java.lang.Runtime.loadLibrary0(Runtime.java:822)
        at java.lang.System.loadLibrary(System.java:992)
        at org.tigris.subversion.javahl.SVNClient.loadNativeLibrary(SVNClient.java:76)
        ...
        at org.mortbay.util.ThreadPool$PoolThread.run(ThreadPool.java:534)

Solution

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 libsvnjavahl-1.so.0.0.0 libsvnjavahl.so


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  [libsvnjavahl-1.so.0.0.0+0xd697]  _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:
#   http://java.sun.com/webapps/bugreport/crash.jsp
#
/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 
/nix/store/g3qzbjcgjp1rhjk7jaff939ik6sq0prg-gw-server/etc/server.xml

Solution

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