Ahmad Awais



Installing SVN Subversion on Yosemite after removing the old version

Ahmad AwaisAhmad Awais

It’s hard to admit but there were days when I used to be scared of those hardcore terminal commands. It was only when I tried and fell in love with the process simplicity attached minimal effort to get a good deal of work done through it. Well, long story short, as you know I am a WordPress Developer, so having to upload WordPress plugins at WordPress.org repository is part of routine. When I updated from Mavericks to Yosemite OS in my Macbook Pro, I started getting strange errors. It was like some connectivity issue with older version of SVN and Yosemite. I had SVN 1.6.5 and it kept giving me the following error.

Segmentation Fault : 11

It happened when I tried to checkout any of my WordPress plugins repository to my local machine. Spending quite a good deal of time, or should I say a day and half, after installing several version I found a way to debug it. Today I intend to share it with you.

What you need?#

Here is the stuff you need

Step #1: Check the path of your previously installed SVN#

Open the terminal app in your mac and write the following command and press enter

which svn

Step #2: Uninstall the SVN#

The step #1 response I got was /usr/local/bin/svn which is the path where my present version of SVN was installed. All I needed to do was remove it. You should do it through this command

sudo rm /usr/bin/svn

Step #3: Install Homebrew#

If you have Homebrew installed then leave this step otherwise just follow the description at Homebrew (http://brew.sh/ ) to install it.

Step #4: Install new version of SVN#

Then all you have to do is install the latest version of SVN through Homebrew

brew install svn

Due to some old references I had to link SVN again. You can do it through the following piece of code.

brew link --overwrite subversion

Volla! You’ve got the latest version of SVN installed which works perfectly with Yosemite.

Screen Shot 2015-05-24 at 5.03.19 pm

Founder & CEO at Langbase.com β€” Ship hyper-personalized Al apps in seconds Β· Ex VP DevRel Eng. Rapid Β· Google Developers Advisory Board (gDAB) founding member. πŸ§‘β€πŸ’» AI/ML/DevTools Angel Investor ❯ AI/ML Advisory Board member San Francisco, DevNetwork

🎩 Award-winning Open Source Engineer & Dev Advocate 🦊 Google Developers Expert Web DevRel πŸš€ NASA Mars Ingenuity Helicopter mission code contributor πŸ† 8th GitHub Stars Award recipient with 5x GitHub Stars Award (Listed as GitHub's #1 JavaScript trending developer).

🌳 Node.js foundation Community Committee Outreach Lead, Member Linux Foundation, OpenAPI Business Governing Board, and DigitalOcean Navigator. πŸ“Ÿ Teaching thousands of developers Node.js CLI Automation (100 videos Β· 22 Projects) & VSCode.pro course. Over 142 million views, 24 yrs Blogging, 108K developers learning, 200+ FOSS.

✌️ Author of various open-source dev-tools and software libraries utilized by millions of developers worldwide ⓦ WordPress Core Developer πŸ“£ TEDx Speaker with 100+ international talks.

✨ As quoted by: Satya Nadella Β· CEO of Microsoft β€” Awais is an awesome example for developers.
πŸ™Œ Leading developers and publishing technical content for over a decade πŸ’œ Loves his wife (Maedah) ❯ Read more about Ahmad Awais.

πŸ‘‹β€¦ Awais is mostly active on 𝕏 @MrAhmadAwais


Developers Takeaway

Stay ahead in the web dev community with Ahmad's expert insights on open-source, developer relations, dev-tools, and side-hustles. Insider-email-only-content. Don't miss out - subscirbe for a dose of professional advice and a dash of humor. No spam, pinky-promise!

✨ 172,438 Developers Already Subscribed
Comments 14
  • Joshua Wieczorek
    Posted on

    Joshua Wieczorek Joshua Wieczorek

    Reply Author

    Thank you so much for this tutorial. I was having the same problem with svn, but with this tutorial it is fixed.

    Thanks again.

  • Libin
    Posted on

    Libin Libin

    Reply Author

    Thanks Much buddy. I was stuck in the same situation. Just followed your tutorial and everything works like magic!!!

  • Justin
    Posted on

    Justin Justin

    Reply Author

    Thanks so much for this tutorial & also for the work on WordPress – we use it a lot here!

  • Naresh
    Posted on

    Naresh Naresh

    Reply Author

    I installed a fresh Yosemite and then followed exact steps mentioned here. All steps went fine except the last one.
    When I do $svn –version, it gives me an error: No such file or directory.
    Can you help me to identify the issue?
    Thank you, Naresh

    • AhmadAwais
      Posted on

      AhmadAwais AhmadAwais

      Reply Author

      You need to have the older version installed to follow this tutorial. May be you installed the new one and delete it. Just install the latest version.

  • NoteCode
    Posted on

    NoteCode NoteCode

    Reply Author

    Great! Helped me much. I attempt to install the wandisco package, but all failed. brew saved me. I guess some dependencies were lost, such as openssl, and brew installed them for me.


  • Mark
    Posted on

    Mark Mark

    Reply Author

    Thank you for this!

  • D Jones
    Posted on

    D Jones D Jones

    Reply Author

    Thank you, other tutorials were giving me a headache – this worked like a charm!

  • Imee
    Posted on

    Imee Imee

    Reply Author

    Would this work still at this time?

  • GermΓ‘n
    Posted on

    GermΓ‘n GermΓ‘n

    Reply Author

    2021 and still works!! Thanks Ahmad!!