Skip to content

Compiling subversion on x86_64

I think if there’s a technology equivalent of the poverty line, it should be having to live without subversion. Yet when I logged into a compute node assigned to us since we started clamouring for clock cycles, the first thing I see is: “bash: svn: command not found”. Ouch. What did I do to deserve this?

Anyway compiling svn on this machine was a bit of a chore, so I’m just writing it down for reference. The normal way to compile is to get the subversion-1.x.x and subversion-deps-1.x.x files, untar/gunzip them (they extract into the same subversion-1.x.x directory), run autogen.sh, run ./configure, make and make install. I got caught while running make due to one of the dependencies and the error was:

.../neon/src/.libs/libneon.a(ne_request.o): relocation R_X86_64_32 against `a local symbol’ can not be used when making a shared object; recompile with -fPIC

I found the solution in the comments of this blog post. The subversion-deps archive extracts a subdir called “neon” into the subversion source folder. The workaround is to go into the neon subdir, run ./configure –enable-shared && make && make install (i also used –prefix=$HOME/usr for both this and the top-level ./configure). Once this is done, go back to the top-level source directory, run autogen.sh, ./configure, make and make install as usual and it should work.

8 Comments

  1. shashwat wrote:

    Surely there are better ways to make notes for future reference. WHAT ON EARTH was this post about :)

    Wednesday, February 7, 2007 at 12:03 am | Permalink
  2. Sherene wrote:

    Phew. Such a relief to see Shash’s comment. I was starting to think it’s just me.

    Wednesday, February 7, 2007 at 3:45 pm | Permalink
  3. Anshul wrote:

    Sorry for the Greek, people. Subversion is a source-control software or a versioning system, I’m sure you guys use equivalent stuff at work (CVS/Rational Rose?). But basically I can use it to track every change that I commit to my code so that I can revert to old versions etc.

    As for writing it here, it’s a semi permanent place on the web; and the blog is searchable – nothing better for a permanent record :)

    Wednesday, February 7, 2007 at 4:58 pm | Permalink
  4. Thank you very much. I had exactly the same problem and subversion’s buddy has no info about it. Google search found this page for me and it helped me to compile svn.

    Tuesday, March 6, 2007 at 4:22 am | Permalink
  5. Denis wrote:

    Thank you! I spend couple of hours trying to compile before I have found your record.

    Wednesday, May 9, 2007 at 11:12 pm | Permalink
  6. Martin wrote:

    Me too! Thanks so much for posting this to your blog. I am building on x86_64 with FC3 so finding your entry was a great blessing.

    Saturday, January 12, 2008 at 8:23 am | Permalink
  7. Awesome, thanks, this really saved me some time. Much appreciated!
    John-

    Saturday, February 23, 2008 at 3:07 am | Permalink
  8. maha wrote:

    saved me tons of work…thanks man

    Thursday, March 20, 2008 at 11:41 pm | Permalink

Post a Comment

Your email is never published nor shared.