[英]updating to svn 1.9.4 via command line in mac
我正在違背我的意願使用SVN。 我正在與之合作的當前團隊將其用於版本控制,但他們並不總是可以為我提供幫助。 我只是想從SVN版本1.8.13升級到最新的1.9.4
我已經下載了它,並且我也運行了此命令
curl -o subversion-latest.tar.gz http://apache.mirrors.tds.net/subversion/subversion-1.9.4.tar.gz
tar -xvf subversion-latest.tar.gz
我沒有運氣就將這兩個不同的教程結合在一起。
我對configure
部分很感興趣。
mymac ~/Downloads/subversion-1.9.4/serf
$ ./configure
-bash: ./configure: No such file or directory
mymac ~/Downloads/subversion-1.9.4/serf
更新
我退出了農奴之路
`mymac ~/Downloads/subversion-1.9.4` file path i ran the `./configure` My command line ran a bunch of "checks"
configure: Configuring Subversion 1.9.4
configure: creating config.nice checking for gcc...
gcc checking whether the C compiler works...
是的,但最終在最后出錯了...
configure: error: failed to recognize APR_INT64_T_FMT on this platform
mymac ~/Downloads/subversion-1.9.4
UPDATE2再次嘗試霓虹燈
mymac ~/Downloads/subversion-1.9.4
$ sh get-deps.sh neon
Local directory 'serf' already exists; the downloaded copy won't be used
Local directory 'apr' already exists; the downloaded copy won't be used
Local directory 'apr-util' already exists; the downloaded copy won't be used
get-deps.sh: line 151: get_neon: command not found
Usage: get-deps.sh
Usage: get-deps.sh [ apr | serf | zlib | sqlite | gmock ] ...
mymac ~/Downloads/subversion-1.9.4
$ cd neon
-bash: cd: neon: No such file or directory
更新3
首先運行此命令..
mymac ~/Downloads/subversion-1.9.4
$ ./configure --prefix=/usr/local --with-serf=/usr/local/serf
configure: Configuring Subversion 1.9.4
configure: creating config.nice
checking for gcc... gcc
checking whether the C compiler works... yes
我想我應該安裝農奴的新版本?
checking was serf enabled... no
An appropriate version of serf could not be found, so libsvn_ra_serf
will not be built. If you want to build libsvn_ra_serf, please
install serf 1.3.4 or newer.
configure: error: Serf was explicitly enabled but an appropriate version was not found.
我不知道從這里去哪里以及如何解決它。 我已經發現霓虹燈不再受支持,我正在使用serf
。有人可以提供其他方法來解決此問題嗎? 請? 謝謝!
如果可能,請考慮使用Brew或MacPorts。 然后,它可以很簡單:
brew install svn
如果您確實必須從源代碼安裝,它可能不會像您到目前為止描述的步驟那樣復雜。 試試這些簡單得多步驟完全相同 :
cd /tmp
curl -o subversion-latest.tar.gz http://apache.mirrors.tds.net/subversion/subversion-1.9.4.tar.gz
tar -xvf subversion-latest.tar.gz
cd subversion-1.9.4
./configure --prefix=/tmp/local
make
make install
這將(希望地)構建Subversion並將其安裝到/tmp/local
。 使用以下命令進行測試:
/tmp/local/bin/svn --version
如果輸出看起來不錯,則從頭開始重復,但要根據您的環境,對--prefix
使用不同的值。
(我嘗試過,這對我來說很好,順便說一句。)
也許不是那么簡單。 在這種情況下,請使用卡住的輸出來更新您的問題。
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.