'2010/10'에 해당되는 글 2건

  1. 2010/10/06 머큐리얼 설치후 couldn't find mercurial libraries 에러 뜰때
  2. 2010/10/05 Trac + SVN 팁

머큐리얼 설치후 couldn't find mercurial libraries 에러 뜰때

개발일지 2010/10/06 15:37
머큐리얼 설치후 hg를 실행했을 때 couldn't find mercurial libraries 라는 에러가 뜨면 PYTHONPATH 경로를 잡아줘야 한다.

경로를 잡아주거나
export PYTHONPATH=/usr/local/lib64/python2.4/site-packages
아래와 같이 수정한다
mv /usr/local/bin/hg /usr/local/bin/hg.py
cat > /usr/local/bin/hg <<\EOF
PYTHONPATH=/usr/local/lib64/python2.4/site-packages:${PYTHONPATH}
export PYTHONPATH
exec /usr/local/bin/hg.py "$@"
EOF

그래도 동일한 에러가 계속 뜨면 경로를 확인해보기
find / -name 'mercurial' -print

출처 : http://mercurial.selenic.com/wiki/UnixInstall

tags : Mercurial
Trackback 0 : Comment 0

Trac + SVN 팁

개발일지 2010/10/05 11:07
1. Trac 설치후 trac-admin으로 새 프로젝트를 설정을 할때 0.12부터는 소스코드 리파지토리(source code repository)를 묻지 않는다.

# trac-admin /path/to/myproject initenv

프로젝트 설정후 소스코드 리파지토리를 따로 설정해준다.  

# Trac [/path/to/myproject] > repository <repos> <dir> [type]


2. 관리자 등록하기

# Trac [/path/to/myproject] > permission add 아이디 TRAC_ADMIN

3. yum이 아닌 소스로 설치시 SQLite 버전이 달라서 아파치에서 아래와 같이 에러가 뜰때

[Fri Oct 01 17:44:59 2010] [error] [client x.x.x.x] (20014)Internal error: SQLite compiled for 3.6.20, but running with 3.3.7
[Fri Oct 01 17:44:59 2010] [error] [client x.x.x.x] Could not fetch resource information.  [500, #0]
[Fri Oct 01 17:44:59 2010] [error] [client x.x.x.x] Could not open the requested SVN filesystem  [500, #200030]
[Fri Oct 01 17:44:59 2010] [error] [client x.x.x.x] Could not open the requested SVN filesystem  [500, #200030]

출처 : http://www.snowbotic.com/archives/61


4. libsvn_subr-1.so.0: undefined symbol: sqlite3_open_v2 에러가 날때

subversion 컴파일을 새로 해야 한다.
subversion 소스 디렉토리에 sqlite-amalgamation 디렉토리를 만들고
sqlite3 소스 디렉토리에 있는 sqlite3.c을 sqlite-amalgamation/sqlite3.c로 복사하고  subversion 재 컴파일

mkdir subversion-1.6.6/sqlite-amalgamation
cp sqlite-3.6.20/sqlite3.c subversion-1.6.6/sqlite-amalgamation/sqlite3.c
cd subversion-1.6.6
./configure –with-apxs=/usr/local/apache/bin/apxs –with-apr=/usr/local/apache/bin/apr-config –with-apr-util=/home/xxx/src/httpd-2.2.9/srclib/apr-util   
make    
make install

출처 : http://www.webxpert.ro/andrei/2010/03/12/install-subversion-for-vps-cpanel-under-centos/


참고할만한 사이트

트랙리뷰 http://digitz.tistory.com/314

협업을 위한 Trac 사용 가이드 http://royalvip.pe.kr/15

trac, Ticket system과 workflow의 이해 http://blog.imcdream.net/297

Subversion의 commit과 Trac 연동하기 http://ktd2004.tistory.com/16

필수 플러그인 http://kimbeast.blog.me/60043933989

Trac 무료호스팅 http://www.assembla.com/ (단, 무료버전은 public -_-)

tags : Subversion, Trac
Trackback 0 : Comment 0