updated on 3 Jan 2014 : fix wrong path.
There's no Subversion package build for OSX 10.9 from the Wandisco website, and also else where.
I accidentally found this information, able to use 10.8's pkg to successfully install on 10.9.
1. Download vanilla Subversion from their website here.
2. Choose this link "Download Subversion 1.7.13 for OSX 10.8.x Client Only"
3. We will get a file, named look like this: Subversion-Client-1.7.13_10.8.x.pkg
4. Copy to home folder. Using Terminal
$cd
$cp Subversion-Client-1.7.13_10.8.x.pkg ~/
(assume that we place the downloaded file in the home folder)
5. create a script on home folder
$cd ~/
use vi command or any familiar text editor
$vi svninstall.sh
insert this code
#!/bin/sh -x
PKG_NAME=Subversion-Client-1.7.13_10.8.x.pkg
pkgutil --expand ${PKG_NAME} /tmp/${PKG_NAME}
/tmp/${PKG_NAME}/subversion.pkg/Scripts/preinstall
pushd /tmp/${PKG_NAME}/subversion.pkg
tar xf Payload
sudo mv opt/subversion /opt
popd
/tmp/${PKG_NAME}/subversion.pkg/Scripts/postinstall
rm -rf /tmp/${PKG_NAME}
use :wq save and quit the vi
6. make it executable
$chmod +x svninstall.sh
7. execute the script to install the subversion
$./svninstall.sh
The output look like this
$./svninstall.sh
+ PKG_NAME=Subversion-Client-1.7.13_10.8.x.pkg
+ pkgutil --expand Subversion-Client-1.7.13_10.8.x.pkg /tmp/Subversion-Client-1.7.13_10.8.x.pkg
+ /tmp/Subversion-Client-1.7.13_10.8.x.pkg/subversion.pkg/Scripts/preinstall
+ pushd /tmp/Subversion-Client-1.7.13_10.8.x.pkg/subversion.pkg
/tmp/Subversion-Client-1.7.13_10.8.x.pkg/subversion.pkg ~/Temp
+ tar xf Payload
+ sudo mv opt/subversion /opt
+ popd
~/Temp
+ /tmp/Subversion-Client-1.7.13_10.8.x.pkg/subversion.pkg/Scripts/postinstall
+ rm -rf /tmp/Subversion-Client-1.7.13_10.8.x.pkg
$
8. check if we it's successfully installed
$ svn --version
svn, version 1.7.10 (r1485443)
compiled Aug 13 2013, 15:31:22
...
ไม่มีความคิดเห็น :
แสดงความคิดเห็น