Subversion 사용을 위한 BerkeleyDB4 설정 ?

antz의 이미지

DB3가 깔려있는 시스템에 DB4를
"/usr/local/BerkeleyDB.4.2/"에 설치했습니다.

Quote:
$ svn co file://localhost/home/svn/sample
svn: Unable to open an ra_local session to URL
svn: Unable to open repository 'file://localhost/home/svn/sample'
svn: Bad database version: got 3.3.11, should be at least 4.0.14

DB4를 찾도록 설정을 해야할것 같은데...

어떻게 해줘야 할까요?

pynoos의 이미지

예전 DB를 제거하세요.

그리고, file: 을 쓸거면.. hostname 없이 하고, /// 세개로 해야하는 거 아닐까요?

antz의 이미지

우선, 답변 감사합니다. :-)

pynoos wrote:
예전 DB를 제거하세요.

rpm과 db3가 의존성이 있을까해서 삭제는 못하고 있습니다.
확인이 잘안되네요. 확인하는 방법을 알려주시면 감사하겠습니다.
Quote:
$ rpm --version
RPM 버전 - 4.0.4

Verify options (with -V or --verify):
...
--whatrequires query/verify the package(s) which require a dependency
--whatprovides query/verify the package(s) which provide a dependency
...

binary가 strip이되서 nm으로도 못보겠습니다.
ldd로 하면,

Quote:
$ ldd `which rpm`
not a dynamic executable

rpm과 db3가 의존성이 있는지 판단하기 힘듭니다.

pynoos wrote:

그리고, file: 을 쓸거면.. hostname 없이 하고, /// 세개로 해야하는 거 아닐까요?

그리고, file:에는 두가지 방법이 있습니다.
http://wiki.kldp.org/wiki.php/SubversionBook/BasicConcepts

Quote:
$ svn checkout file:///path/to/repos

$ svn checkout file://localhost/path/to/repos

antz의 이미지

:?: 옳은건지 확신은 없지만,
static link로 해결했습니다.

기존 의 configure 옵션에다 "--enable-all-static"를 추가해서
컴파일 했습니다.

BDB 버전 에러 없이 잘 작동합니다.

Quote:
[dhjang@pug subversion-1.0.2]$ head config.log
This file contains any messages produced by compilers while
running configure, to aid debugging if configure makes a mistake.

It was created by subversion configure 1.0.1, which was
generated by GNU Autoconf 2.57. Invocation command line was

$ ./configure --with-zlib --with-ssl=/usr/local/ssl --with-apr=/usr/local/apache2 --with-apr-util=/usr/local/apache2 --with-apxs=/usr/local/apache2/bin/apxs --enable-maintainer-mode --with-dbm-db4 --with-berkeley-db=/usr/local/BerkeleyDB.4.2 --enable-all-static

## --------- ##
## Platform. ##