목적: Solaris 9 x86에 소프트웨어 형상 관리(SCM)를 위한 Subversion 1.4.x 설치 및 구동
참고 자료
INSTALLING SUBVERSION A Quick Guide
Installation Steps for Subversion 1.4.x
Apache HTTP Server Version 2.2 configure – 소스 트리를 구성한다
Subversion 설치 및 운용
Subversion 사용 HOWTO
Dependency 프로그램 및 라이브러리 설치
Subversion은 다른 dependency 프로그램과 라이브러리를 필요로 합니다. 서버의 환경에서 아래 목록에 없는 프로그램과 라이브러리가 있다면 설치해야만 합니다. Source code로 설치할 경우에는 dependency 파일에 apr, apr-util, neon, zlib이 포함되어 있으므로 이를 제외한 파일을 설치하시면 됩니다.
apache-2.0.59 (for subversion 1.4.3) and apache-2.2.4 (for subversion-1.4.4): Apache 2 - the popular web server neon-0.25.5: Neon is an HTTP and WebDAV client library swig-1.3.29: SWIG is a software development tool that connects programs written in C and C++ with a variety of high-level programming languages. openssl-0.9.8c: openssl is an open source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a full-strength general purpose cryptography library db-4.2.52.NC: db is the Berkeley open source embedded database system expat-1.95.5: Expat is a fast, non-validating, stream-oriented XML parsing library gdbm-1.8.3: GNU dbm is a set of database routines that use extendible hashing and works similar to the standard UNIX dbm routines libiconv-1.9: GNU libiconv provides an iconv() implementation for use on systems which do not have one libxml2-2.6.26: Libxml2 is the XML C library developed for the Gnome project zlib-1.2.3: zlib compression libraries - installs in /usr/local. This package has both libz.a and libz.so libraries. apr: Apr is the Apache Portable Runtime libraries system apr util: Apr-util is part of the Apache Portable Runtime libraries system
Apache 2.2.6 재설치
1. configure
BATO-PC@root:/export/home/received_files/httpd-2.2.6>./configure --prefix=/usr/local/apache2 \ --enable-so \ # mod_so가 제공하는 DSO 기능을 사용한다. --enable-mods-shared 옵션을 사용하면 자동으로 이 모듈을 포함한다. --enable-ssl \ # mod_ssl이 제공하는 SSL/TLS 기능을 사용한다 --with-ssl=/usr/local/ssl # mod_ssl을 사용하는 경우 configure는 설치된 OpenSSL을 찾는다. 대신 이 옵션을 사용하여 SSL/TLS 도구의 디렉토리경로를 알려줄 수 있다.
2. make
BATO-PC@root:/export/home/received_files/httpd-2.2.6> make
3. make install
BATO-PC@root:/export/home/received_files/httpd-2.2.6> make install
4. 완료
Subversion 1.4.4 설치(Binary 경우)
1. Subversion 1.4.4 다운로드
subversion: Subversion Packages
2. Subversion 1.4.4 압축해제
BATO-PC:/export/home/received_files/subversion/> gzip -d subversion-1.4.4-sol9-x86-local.gz
2. Subversion 1.4.4 설치
BATO-PC:/export/home/received_files/subversion/> pkgadd -d subversion-1.4.4-sol9-x86-local
3. 완료
Subversion 1.4.5 설치(Source code 경우)
1. Subversion 1.4.5 다운로드
Source code로 설치할 경우에는 subversion-1.4.5.tar.gz과 dependency 파일 모음인 subversion-deps-1.4.5.tar.gz 파일을 다운로드 합니다. 참고로 Dependency 파일에는 Subversion-deps-1.4.5.tar.gz에는 apr, apr-util, neon, zlib이 포함 되어 있습니다.
subversion: 프로젝트 문서: Source code
2. Subversion 1.4.5 압축해제
BATO-PC:/export/home/received_files/subversion/subversion-1.4.5> gzip -d subversion-1.4.5.tar.gz | tar xvf - BATO-PC:/export/home/received_files/subversion/subversion-1.4.5> gzip -d Subversion-deps-1.4.5.tar.gz | tar xvf -
3. configure
BATO-PC:/export/home/received_files/subversion/subversion-1.4.5> ./configure --with-zlib \ --with-ssl=/usr/local/ssl \ #ssl path --with-apxs=/usr/local/apache2/bin/apxs \ # apxs path --without-berkeley-db # berkeley DB 사용 안함
4. make
BATO-PC:/export/home/received_files/subversion/subversion-1.4.5> make
5. make install
BATO-PC:/export/home/received_files/subversion/subversion-1.4.5> make install
6. 완료
Apache 2.2.6 설정
1. httpd.conf 수정
Subversion 1.4.x 설치로 생성된 mod_dav_svn.so, mod_authz_svn.so를 httpd.conf에 추가해줍니다.
BATO-PC@root:/usr/local/apache2/conf> vi httpd.conf # Modify 2007/11/23 subversion LoadModule dav_svn_module modules/mod_dav_svn.so LoadModule authz_svn_module modules/mod_authz_svn.so
2. httpd -l
이전에 설치한 WebLogic의 mod_so.c 확인
BATO-PC@root:/usr/local/apache2/bin> httpd -l Compiled in modules: core.c mod_authn_file.c mod_authn_default.c mod_authz_host.c mod_authz_groupfile.c mod_authz_user.c mod_authz_default.c mod_auth_basic.c mod_include.c mod_filter.c mod_log_config.c mod_env.c mod_setenvif.c mod_ssl.c prefork.c http_core.c mod_mime.c mod_status.c mod_autoindex.c mod_asis.c mod_cgi.c mod_negotiation.c mod_dir.c mod_actions.c mod_userdir.c mod_alias.c mod_so.c
3. httpd -t
BATO-PC@root:/usr/local/apache2/bin> httpd -t Syntax OK
4. 완료
Apache 2.2.6 기동 및 종료
1. Apache 2.2.6 기동
BATO-PC@root:/usr/local/apache2/bin> apachectl start BATO-PC@root:/usr/local/apache2/bin> ps -ef|grep httpd daemon 21708 21704 0 15:39:18 ? 0:00 /usr/local/apache2/bin/httpd -k start daemon 21709 21704 0 15:39:18 ? 0:00 /usr/local/apache2/bin/httpd -k start daemon 21707 21704 0 15:39:18 ? 0:00 /usr/local/apache2/bin/httpd -k start daemon 21706 21704 0 15:39:18 ? 0:00 /usr/local/apache2/bin/httpd -k start daemon 21705 21704 0 15:39:18 ? 0:00 /usr/local/apache2/bin/httpd -k start root 21704 1 4 15:39:17 ? 0:01 /usr/local/apache2/bin/httpd -k start root 21711 403 0 15:39:26 pts/2 0:00 grep httpd\
2. Apache 2.2.6 종료
BATO-PC@root:/usr/local/apache2/bin> apachectl stop BATO-PC@root:/usr/local/apache2/bin> ps -ef|grep httpd root 21716 403 0 15:40:17 pts/2 0:00 grep httpd