[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Updated Step-by-step Linux installation guide

From: Aaron Digulla <digulla_at_hepe.com>
Date: 2004-10-02 14:44:45 CEST

McClain Looney wrote:

> On Sat, 02 Oct 2004 01:19:04 +0200, Aaron Digulla <digulla@hepe.com> wrote:
>
>> * Compile the tests for javahl (this is one line): javac -d
>>subversion/bindings/java/javahl/classes -classpath
>>junit3.8.1/junit.jar:subversion/bindings/java/javahl/classes:/usr/lib/java/jre/lib:/usr/lib/java/jre/lib/charsets.jar:/usr/lib/java/jre/lib/jce.jar:/usr/lib/java/jre/lib/jsse.jar:/usr/lib/java/jre/lib/plugin.jar:/usr/lib/java/jre/lib/rt.jar:/usr/lib/java/jre/lib/sunrsasign.jar
>>subversion/bindings/java/javahl/src/org/tigris/subversion/javahl/tests/*.java
>
> make javahl-tests compiles these. you have to configure with
> --with-junit though.
>
>> Note: You could use "make check-javahl" for this but you'd have to edit
>>the Makefile to contain junit.jar, first.
>
> the above will take care of this problem too.

Thanks. Here is the updated version (which also fixes libpath problems).

  * Download subversion-1.1.0.tar.bz2 from subversion.tigris.org

  * Unpack the archive: tar xjf subversion-1.1.0.tar.bz2

    This will get you a new directory subversion-1.1.0

  * Go into that directory cd subversion-1.1.0

  * Download junit3.8.1.zip from www.junit.org

  * Unpack junit: unzip junit3.8.1.zip

  * Run configure: ./configure '--with-zlib' '--with-ssl' '--enable-javahl'
'--with-jdk=/usr/lib/java' '--with-jikes=/usr/lib/java/bin/javac'
--with-junit=junit3.8.1/junit.jar

    (everything in one line)

    --with-zlib: If you have libz.a or libz.so installed. Check with: whereis libz

    --with-ssl: If you want to connect to a server via https. Check with:
whereis openssl

    --enable-javahl: The most important one when you plan to use Subclipse

    --with-jdk=/path/to/your/java/1.4: Change the patch to where JSDK 1.4 is
installed on your system. JRE 1.4 is not enough; there are some additional
files which we'll need.

    --with-jikes=/path/to/javac: Path to the "javac" executable. Probably
somewhere below the path you passed with --with-jdk.

    --with-junit=path/to/junit.jar: Path to junit.jar including the file itself.

  * Wait while configure does it's job. It will complain when important stuff
is not installed. SuSE, for example, has divided all packages into a base and
a devel package. To compile subversion, you will need the devel packages.

    debian and other should be fine but maybe some packages are still missing.
Install them and run configure until creates a lot of "Makefile"s.

  * Run make: make -j2

    -j2 will compile two files at the same time. This will make the compile go
a little bit faster.

  * There is a bug in the makefiles for javahl. When you try to compile, a
neccessary directory will be missing. Create it:

    mkdir subversion/bindings/java/javahl/classes

  * Compile javahl: make javahl

  * Install subversion and javahl (run as root): make install install-javahl

  * Compile the tests for javahl (this is one line): make javahl-tests

    If you get errors like this, then Java cannot find junit.jar:

...cannot resolve symbol
symbol : method assertFalse (java.lang.String,boolean)

  * Run the tests to make sure that javahl is good (again one line): make
check-javahl

    This should print about 20 dots and then "OK (20 tests)"

    If you get this error, then Java cannot find junit:

Exception in thread "main" java.lang.NoClassDefFoundError:
junit/framework/TestCase

    If you get this error, then make sure libsvnjavahl is linked against
libstdc++:

undefined symbol: __gxx_personality_v0

    To fix this error:

    * Edit the Makefile and search for "LIBS = -lz" and append " -lstdc++" so
that the line reads "LIBS = -lz -lstdc++".

    * Delete the library so make will create it again:

      rm subversion/bindings/java/javahl/native/libsvnjavahl-1.la

    * make javahl

    * As root: make install-javahl

  * Now, to install subclipse, start eclipse: eclipse

  * Open the Help menu, select "Software Updates" and "Find and install..."

  * Choose "Search for new features to install" and click next.

  * Click "New Remote Site..."

  * Name: Subclipse

  * URL: http://subclipse.tigris.org/update

  * Click OK

  * Check the checkbox next to "Subclipse"

  * Click next.

  * Wait while eclipse looks for updates

  * Select the available updates

  * Click next

  * Accept the license

  * Click next

  * Click finish

  * Click install

  * When it asks to restart the workbench, copy the file
/usr/local/lib/svn-javahl/svn-javahl.jar to
eclipse/plugins/org.tigris.subversion.subclipse.core_0.9.21/svn-javahl.jar

    Afterwards restart the workbench.

  * After the restart, open the preferences and open "Team". There should now
be a page "SVN". Select it.

  * Make sure that "Javahl (JNI)" is selected. If you get errors in Eclipse's
error log which mention "org.tigris.subversion.svnclientadapter.commandline"
(the command-line interface), then Eclipse couldn't load svn-javahl.jar. Try
to add /usr/local/lib to your library path to fix this:

     LD_LIBRARY_PATH=/usr/local/lib:$LD_LIBRARY_PATH eclipse

  * Have fun.

-- 
Aaron "Optimizer" Digulla a.k.a. Philmann Dark
"It's not the universe that's limited, it's our imagination.
Follow me and I'll show you something beyond the limits."
http://www.philmann-dark.de/
Received on Sat Oct 2 22:44:45 2004

This is an archived mail posted to the Subclipse Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.