티스토리 뷰

PHPStorm 으로 개발 중 다음의 알림 때문에 Subversion 1.8 필요하게 됨:

Screen Shot 2014-10-09 at 11.19.14

다음의 오류가 나타남:

Screen Shot 2014-10-09 at 11.19.31

svn: E155021: This client is too old to work with the working copy at ‘/Users/andrea/dev/wp/vvv/www/wordpress-develop’ (format 31). You need to get a newer Subversion client. For more details, see http://subversion.apache.org/faq.html#working-copy-format-change.

현재 svn 버젼 체크:

$ svn --version
svn, version 1.7.17 (r1591372)
   compiled Aug  7 2014, 17:03:25
...

brew 사용하여 새 svn 설치.

$ brew update
Updated Homebrew from 80f2d299 to 93e17517.
...

$ brew info subversion
subversion: stable 1.8.10 (bottled)
https://subversion.apache.org/
Not installed
...

$ brew install subversion
==> Installing dependencies for subversion: readline, sqlite, openssl
==> Installing subversion dependency: readline
...
==> Installing subversion
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/subversion-1.8.10_1.mavericks.bottle.3.tar.gz
######################################################################## 100,0%
==> Pouring subversion-1.8.10_1.mavericks.bottle.3.tar.gz
==> Caveats
svntools have been installed to:
  /usr/local/opt/subversion/libexec

Bash completion has been installed to:
  /usr/local/etc/bash_completion.d
==> Summary
🍺  /usr/local/Cellar/subversion/1.8.10_1: 116 files, 9,4M

설치 후 버젼 체크:

$ svn --version
svn, version 1.7.17 (r1591372)
   compiled Aug  7 2014, 17:03:25
...

어? 예전 버젼 그대로? 어디에 설치된거야?

$ which -a svn
/usr/bin/svn
/usr/local/bin/svn

자신의 ~/.bash_profile 파일 수정:

export PATH="/usr/local/bin:$PATH"

소프트링크 걸기:

sudo rm /usr/bin/svn & ln -s /usr/local/bin/svn /usr/bin/svn

환경 업데이트 하고 다시 체킹:

$ source ~/.bash_profile

$ svn --version
svn, version 1.8.10 (r1615264)
   compiled Aug 25 2014, 10:57:58 on x86_64-apple-darwin13.3.0
...

PHPStorm preferences 에서 “svn” 설정에서 /usr/local/bin/svn 설정:

Screen Shot 2014-10-09 at 11.13.39

오류따위 사라짐:

Screen Shot 2014-10-09 at 11.20.18


출처: http://andowebsit.es/blog/noteslog.com/post/how-to-upgrade-subversion-on-osx/

댓글