The Artima Developer Community
Sponsored Link

Java Buzz Forum
HOWTO Install Subversion and the IDEA plugin on OS X

0 replies on 1 page.

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 0 replies on 1 page
Brian McCallister

Posts: 1282
Nickname: frums
Registered: Sep, 2003

Brian McCallister is JustaProgrammer who thinks too much.
HOWTO Install Subversion and the IDEA plugin on OS X Posted: May 20, 2004 11:10 PM
Reply to this message Reply

This post originated from an RSS feed registered with Java Buzz by Brian McCallister.
Original Post: HOWTO Install Subversion and the IDEA plugin on OS X
Feed Title: Waste of Time
Feed URL: http://kasparov.skife.org/blog/index.rss
Feed Description: A simple waste of time and weblog experiment
Latest Java Buzz Posts
Latest Java Buzz Posts by Brian McCallister
Latest Posts From Waste of Time

Advertisement

This worked with IDEA 4.0.3, Subversion 1.0.3, and SvnUp (SVN plugin for IDEA) 0.8, YMMV with Pallada.

I use DarwinPorts when I can, sadly you cannot for svn if you want the java bindings =/ I still used it to get the patch to handle the /tmp being a symlink however.

Make Sure you have the Java Developer stuff Installed. Apple's Java config is weird, you can have javac but not the jni headers. Who knows. Hit http://developer.apple.com/ and make sure to grab the Java developer package with the JNI stuff.

This installs client-only svn (all you need for server is bdb/db4 and to tell config where it is. I don't run an svn server on my lappy though so didn't bother.

tar -zxvf subversion-1.0.3.tar.gz
cd subversion-1.0.3

sudo port install swig
; You can install swig however you want. I do it this way

port extract subversion

pushd [darwinports install dir]
cp dports/devel/subversion/files/patch-svnlook-main.c \
   [wherever you have subversion untarred]
popd


; Apply the patch to handle /tmp being a symlink
patch < patch-svnlook-main.c

; You will probably want to change prefix to be something reasonable on your system
./configure \
    --with-jdk=/Library/Java/Home \
    --with-swig=/opt/local/bin/swig \
    --enable-swig-bindings=java \
    --prefix=/Users/mccallister/.opt/subversion-1.0.3

make && make install

cd subversion/bindings/java/javahl/

edit autogen.sh to change libtoolize to glibtoolize

./configure \
    --with-jdk=/Library/Java/Home \
    --prefix=/Users/mccallister/.opt/subversion-1.0.3

make && make install

;Download the svn4idea4-0.8.jar and /svnup-0.8.0.jar from http://svnup.tigris.org/

sudo cp /Users/mccallister/.opt/subversion-1.0.3/lib/libsvnjavahl.0.dylib \
        /Library/Java/Extensions/libsvnjavahl.jnilib

sudo cp /Users/mccallister/.opt/subversion-1.0.3/share/svnjavahl.jar \
        /Library/Java/Extensions/

cp svn4idea4-0.8.0.jar /Applications/IntelliJ\ IDEA.app/plugins/

;You SHOULD do this, but it doesn't work:
;cp svnup-0.8.0.jar /Applications/IntelliJ\ IDEA.app/plugins/svn4idea/lib/

;Instead you need to do this:
cp svnup-0.8.0.jar \
   /Applications/IntelliJ\ IDEA.app/lib/
cp /Library/Java/Extensions/svnjavahl.jar \
   /Applications/IntelliJ\ IDEA.app/lib/

;This is less than optimal, but c'est la vie

Subversion should now be an SCM option just like the ones JetBrains distributes. Please note that I just got this up and working (IDEA comes up and shows it without errors) tonight, I haven't actually tried to talk to a server yet. I am worried that it is going to throw fits in the morning when I get to work and try to talk to the server because I shouldn't have had to add the jni stubs to IDEA's path...

Read: HOWTO Install Subversion and the IDEA plugin on OS X

Topic: PhillyJUG: Marc Fleury and Gavin King Previous Topic   Next Topic Topic: The importance of naming

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use