自拍偷在线精品自拍偷,亚洲欧美中文日韩v在线观看不卡

術(shù)語匯編:剖析Subversion編譯相關(guān)問題

開發(fā) 項目管理
本文說一下Subversion編譯問題,希望對正在學(xué)習(xí)Subversion的讀者有所幫助。

大家都知道Subversion(svn)是很好的版本管理工具,它有三個最常用的模塊,但如果進(jìn)行手動Subversion編譯安裝,實在是一件困難的事情。下面首先來看看最常用的模塊。

Subversion有三個最常用的模塊:
*ra_svn:使用svn網(wǎng)絡(luò)協(xié)議訪問檔案庫的模塊。
-handles’svn’scheme
◆ra_local:訪問本地磁盤的檔案庫模塊。
◆ra_dav:訪問http://檔案庫模塊。
前面兩個,是Subversion編譯的默認(rèn)模塊,ra_dav是大多數(shù)人遇到的問題。如果ra_dav沒有編譯到系統(tǒng)中,當(dāng)你從http://這樣的路徑checkout時,會出現(xiàn)這樣的錯誤提示:svn:UnrecognizedURLscheme
那么,如何編譯ra_dav呢?你至少需要越過以下幾道關(guān)卡:
1、ra_dav是由一個叫neon的軟件完成的,你需要安裝neon。
neon的官方網(wǎng)站:http://www.webdav.org/neon/
2、重新configureSubversion
這一步非常重要,稍不小心,就可能會找不到neon,即使你已經(jīng)安裝neon,即使你已經(jīng)將neon的源代碼加壓到Subversion的目錄下,即使你已經(jīng)把neon-0.28.4改名為neon目錄。configureSubversion有一個很不爽的地方就是,當(dāng)你configure配置了neon,但configure失敗的時候,它不會把這個結(jié)果在執(zhí)行完單獨列出來,而是在configure的輸出過程中顯示,讓人誤以為configureok,其實,neon并沒有被configure進(jìn)去。

在我編譯Subversion1.6.1版本中,neon失敗的輸出為:
configure:checkingneonlibrary
Anappropriateversionofneoncouldnotbefound,solibsvn_ra_neon
willnotbebuilt.Ifyouwanttobuildlibsvn_ra_neon,pleaseeither
installneon0.28.4onthissystem or
getneon0.28.4from:
http://www.webdav.org/neon/neon-0.28.4.tar.gz
unpackthearchiveusingtar/gunzipandrenametheresulting
directoryfrom./neon-0.28.4/to./neon/

我之前嘗試了多種configure的方法,例如:./configure–prefix=/usr/–with-apr=/usr/bin/apr-1-config–with-apr-util=/usr/bin/apu-1-cfig–with-neon=/usr/bin/neon-config–with-zlib=/lib–with-apache-libexecdir–with-apxs=/usr/sbin/apxs或者把neon解壓到當(dāng)前目錄,并改名為neon,configure如下:./configure–prefix=/usr/–with-apr=/usr/bin/apr-1-config–with-apr-util=/usr/bin/apu-1-cfig–with-neon=./neon–with-zlib=/lib–with-apache-libexecdir–with-apxs=/usr/sbin/apxs
這兩種configure方式都會導(dǎo)致neon無法作為Subversion的編譯選項,正確的configure方法是–with-neon后不加參數(shù),這個Subversion的configure也真是夠賤的!./configure–prefix=/usr/–with-apr=/usr/bin/apr-1-config–with-apr-util=/usr/bin/apu-1-cfig–with-neon=–with-zlib=/lib–with-apache-libexecdir–with-apxs=/usr/sbin/apxs
這一步完成后,make&&makeinstall就沒有問題了。

Subversion編譯安裝完成后,使用svn–admin來驗證:
#svn–version
svn,version1.6.1(r37116)
compiledApr292009,10:56:22
Copyright(C)2000-2009CollabNet.
Subversionisopensourcesoftware,seehttp://Subversion.tigris.org/
ThisproductincludessoftwaredevelopedbyCollabNet(http://www.Collab.Net/).
Thefollowingrepositoryaccess(RA)modulesareavailable:
◆ra_neon:ModuleforaccessingarepositoryviaWebDAVprotocolusingNeon.
-handles‘http’scheme
◆ra_svn:Moduleforaccessingarepositoryusingthesvnnetworkprotocol.
-handles’svn’scheme
◆ra_local:Moduleforaccessingarepositoryonlocaldisk.
-handles‘file’scheme

以上內(nèi)容引自http://www.9say.com/2009/04/Subversion-compile-with-ra-dav/
另外在按上面方法進(jìn)行解決的時候發(fā)現(xiàn)問題:當(dāng)把neon解壓到當(dāng)前目錄,并改名為neon后,configure如下:
./configure–prefix=/usr/–with-apr=/usr/bin/apr-1-config–with-apr-util=/usr/bin/apu-1-cfig–with-zlib=/lib–with-apache-libexecdir–with-apxs=/usr/sbin/apxs就可以了,無需指定neon。大家在configure的時候看有沒有找到neon如果找到,就肯定沒有問題了。
另外關(guān)于make時遇到fPCI的問題,請把neon/src/下的Makefile里的CFLAGS=-g-02改為CFLAGS=-fPIC-g-02.,好了Subversion編譯問題到這里已經(jīng)介紹完了,如果你想學(xué)習(xí)其他有關(guān)Subversion方面的知識,請單擊www.scjtxx.cn查找相關(guān)內(nèi)容。
.

【編輯推薦】

  1. Subversion SVN協(xié)議解析遠(yuǎn)程整數(shù)溢出漏洞
  2. CentOS系統(tǒng)中安裝subversion并使用svn+ssh訪問
  3. SubVersion Windows安裝指南
  4. 七步搞定Subversion服務(wù)器在Ubuntu下的配置
  5. 如何結(jié)合使用Subversion和Eclipse
責(zé)任編輯:佚名
相關(guān)推薦

2010-05-13 15:38:19

Subversion

2010-05-18 16:17:24

Visual Subv

2010-09-15 15:27:06

CSS hack

2010-08-05 14:51:36

AdobeFlex

2010-06-07 13:02:46

Hadoop簡介

2010-09-17 09:19:08

Java API

2010-07-13 10:21:19

2010-07-19 16:56:56

Perl線程

2010-07-27 08:59:19

FlexBuilder

2010-07-26 16:54:15

Perl引用

2010-08-10 10:32:02

Flex語言

2010-06-10 18:27:00

UML語言

2010-07-20 16:25:50

Perl正則表達(dá)式

2010-07-30 10:23:46

Flex數(shù)據(jù)綁定

2010-09-26 17:04:48

JVMJava虛擬機(jī)

2010-06-11 09:33:47

UML順序圖

2010-06-11 18:27:39

UML對象圖

2010-07-08 09:50:11

UML構(gòu)件圖

2010-07-13 09:02:16

Perl

2010-06-29 15:06:14

UML建模
點贊
收藏

51CTO技術(shù)棧公眾號