솔직히 Ubuntu 환경에서 Subversion을 설치하는 방법은 너무 쉽다.
$ sudo apt-get install subversion
딱 한 줄의 명령어면 해결이 된다.
하지만, 개인적인 취향으로...
그리고 서버로 운영을 할 것이라면 공부 좀 하면서 SourceCode로 설치하는 것이 좋다고 생각한다.
그러면 해보자 !!!
우선 필요한 것은 빌드에 필요한 밑밥깔기~
$ sudo apt-get build-dep subversion
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
다음 새 패키지를 설치할 것입니다:
apache2-threaded-dev apache2-utils apache2.2-bin apache2.2-common autoconf automoc
autotools-dev build-essential ca-certificates-java comerr-dev debhelper default-jdk
default-jre default-jre-headless dh-apparmor diffstat docbook-xml docbook-xsl doxygen
dpkg-dev g++ g++-4.6 gettext html2text intltool-debian java-common junit kdelibs-bin
kdelibs5-dev kdoctools krb5-multidev libapr1 libapr1-dev libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-dev libaprutil1-ldap libatk-wrapper-java
libatk-wrapper-java-jni libattica0.3 libclucene0ldbl libdb4.8 libdb4.8-dev
libdbus-1-dev libdlrestrictions1 libdpkg-perl libexpat1-dev libgcrypt11-dev
libgettextpo0 libgif4 libglib2.0-dev libgnome-keyring-dev libgnutls-dev
libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev libgssrpc4 libkadm5clnt-mit8
libkadm5srv-mit8 libkcmutils4 libkdb5-6 libkde3support4 libkdeclarative5 libkdecore5
libkdesu5 libkdeui5 libkdewebkit5 libkdnssd4 libkemoticons4 libkfile4 libkhtml5
libkidletime4 libkimproxy4 libkio5 libkjsapi4 libkjsembed4 libkmediaplayer4
libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkparts4
libkprintutils4 libkpty4 libkrb5-dev libkrosscore4 libkrossui4 libktexteditor4
libkunitconversion4 libkutils4 libldap2-dev libmysqlclient-dev libmysqlclient18
libneon27-gnutls-dev libnepomuk4 libnepomukquery4a libnepomukutils4 libnss3-1d
libp11-kit-dev libpcre3-dev libpcrecpp0 libperl-dev libphonon-dev libphonon4
libplasma3 libpq-dev libpq5 libqca2 libqt4-designer libqt4-dev libqt4-help
libqt4-qt3support libqt4-scripttools libqt4-test libqtwebkit4 libreadline5 libruby1.8
libsasl2-dev libserf-dev libserf1 libsolid4 libsoprano-dev libsoprano4 libsqlite3-dev
libssl-dev libstdc++6-4.6-dev libstreamanalyzer0 libstreams0 libtasn1-3-dev
libthreadweaver4 libtimedate-perl libtool libunistring0 libvirtodbc0 libxml2-dev
libxml2-utils libxss1 m4 mysql-common odbcinst odbcinst1debian2 openjdk-6-jdk
openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib phonon-backend-null po-debconf
python-all python-all-dbg python-all-dev python-dbg python-dev python2.7-dbg
python2.7-dev qt4-linguist-tools qt4-qmake quilt ruby1.8 ruby1.8-dev sgml-data
soprano-daemon swig swig2.0 tzdata-java uuid-dev virtuoso-opensource-6.1-common
zlib1g-dev
0개 업그레이드, 167개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.
154 M바이트 아카이브를 받아야 합니다.
이 작업 후 486 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까 [Y/n]?
패키지 목록을 읽는 중입니다... 완료
의존성 트리를 만드는 중입니다
상태 정보를 읽는 중입니다... 완료
다음 새 패키지를 설치할 것입니다:
apache2-threaded-dev apache2-utils apache2.2-bin apache2.2-common autoconf automoc
autotools-dev build-essential ca-certificates-java comerr-dev debhelper default-jdk
default-jre default-jre-headless dh-apparmor diffstat docbook-xml docbook-xsl doxygen
dpkg-dev g++ g++-4.6 gettext html2text intltool-debian java-common junit kdelibs-bin
kdelibs5-dev kdoctools krb5-multidev libapr1 libapr1-dev libaprutil1
libaprutil1-dbd-sqlite3 libaprutil1-dev libaprutil1-ldap libatk-wrapper-java
libatk-wrapper-java-jni libattica0.3 libclucene0ldbl libdb4.8 libdb4.8-dev
libdbus-1-dev libdlrestrictions1 libdpkg-perl libexpat1-dev libgcrypt11-dev
libgettextpo0 libgif4 libglib2.0-dev libgnome-keyring-dev libgnutls-dev
libgnutls-openssl27 libgnutlsxx27 libgpg-error-dev libgssrpc4 libkadm5clnt-mit8
libkadm5srv-mit8 libkcmutils4 libkdb5-6 libkde3support4 libkdeclarative5 libkdecore5
libkdesu5 libkdeui5 libkdewebkit5 libkdnssd4 libkemoticons4 libkfile4 libkhtml5
libkidletime4 libkimproxy4 libkio5 libkjsapi4 libkjsembed4 libkmediaplayer4
libknewstuff2-4 libknewstuff3-4 libknotifyconfig4 libkntlm4 libkparts4
libkprintutils4 libkpty4 libkrb5-dev libkrosscore4 libkrossui4 libktexteditor4
libkunitconversion4 libkutils4 libldap2-dev libmysqlclient-dev libmysqlclient18
libneon27-gnutls-dev libnepomuk4 libnepomukquery4a libnepomukutils4 libnss3-1d
libp11-kit-dev libpcre3-dev libpcrecpp0 libperl-dev libphonon-dev libphonon4
libplasma3 libpq-dev libpq5 libqca2 libqt4-designer libqt4-dev libqt4-help
libqt4-qt3support libqt4-scripttools libqt4-test libqtwebkit4 libreadline5 libruby1.8
libsasl2-dev libserf-dev libserf1 libsolid4 libsoprano-dev libsoprano4 libsqlite3-dev
libssl-dev libstdc++6-4.6-dev libstreamanalyzer0 libstreams0 libtasn1-3-dev
libthreadweaver4 libtimedate-perl libtool libunistring0 libvirtodbc0 libxml2-dev
libxml2-utils libxss1 m4 mysql-common odbcinst odbcinst1debian2 openjdk-6-jdk
openjdk-6-jre openjdk-6-jre-headless openjdk-6-jre-lib phonon-backend-null po-debconf
python-all python-all-dbg python-all-dev python-dbg python-dev python2.7-dbg
python2.7-dev qt4-linguist-tools qt4-qmake quilt ruby1.8 ruby1.8-dev sgml-data
soprano-daemon swig swig2.0 tzdata-java uuid-dev virtuoso-opensource-6.1-common
zlib1g-dev
0개 업그레이드, 167개 새로 설치, 0개 제거 및 0개 업그레이드 안 함.
154 M바이트 아카이브를 받아야 합니다.
이 작업 후 486 M바이트의 디스크 공간을 더 사용하게 됩니다.
계속 하시겠습니까 [Y/n]?
뭔가 정말 많이도 설치한다.
무려 167개...!? (물론 각자 상황에 따라 틀릴 것이다)
소스코드를 다운로드 받아서 진행을 해보자.
$ cd /srv/install/subversion
$ wget http://apache.mirror.cdnetworks.com/subversion/subversion-1.8.3.tar.gz
$ wget http://apache.mirror.cdnetworks.com/subversion/subversion-1.8.3.tar.gz
2013.09.04 현재 가장 최신 버전은 1.8.3 이다.
$ tar zxvf subversion-1.8.3.tar.gz
$ cd subversion-1.8.3/
$ cd subversion-1.8.3/
압축 풀고... 이제 본격적으로 진행하면 된다.
$ ./get-deps.sh
Local directory 'zlib' already exists; the downloaded copy won't be used
Local directory 'serf' already exists; the downloaded copy won't be used
Local directory 'sqlite-amalgamation' 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
If you require mod_dav_svn, the recommended version of httpd is:
http://archive.apache.org/dist/httpd/httpd-2.4.6.tar.bz2
If you require apr-iconv, its recommended version is:
http://archive.apache.org/dist/apr/apr-iconv-1.2.1.tar.bz2
Local directory 'zlib' already exists; the downloaded copy won't be used
Local directory 'serf' already exists; the downloaded copy won't be used
Local directory 'sqlite-amalgamation' 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
If you require mod_dav_svn, the recommended version of httpd is:
http://archive.apache.org/dist/httpd/httpd-2.4.6.tar.bz2
If you require apr-iconv, its recommended version is:
http://archive.apache.org/dist/apr/apr-iconv-1.2.1.tar.bz2
Subversion과 같이 빌드가 될 다양한 dependency 관계에 있는 모듈들을 미리 점검하는 과정이다.
위의 메시지처럼 같이 빌드할 수 있는 모듈 중 현재 없는 것을 알려주는 경우,
필요하면 설치를 해주고 필요없다면 그냥 무시해도 Subversion 빌드는 진행할 수 있다.
$ cd apr/
$ ./buildconf
$ cd ..
$ cd apr-util/
$ ./buildconf
$ cd ..
$ cd apr-util/xml/expat/
$ ./buildconf.sh
$ cd ../../..
$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install
$ ./buildconf
$ cd ..
$ cd apr-util/
$ ./buildconf
$ cd ..
$ cd apr-util/xml/expat/
$ ./buildconf.sh
$ cd ../../..
$ ./autogen.sh
$ ./configure
$ make
$ make check
$ sudo make install
설치는 이렇게만 하면 끝이다 !!!
반응형
'SCM > Subversion' 카테고리의 다른 글
Subversion 설치 (Windows, Binary : VisualSVN) (0) | 2013.09.14 |
---|---|
Subversion 설치 (Windows, BitNami) (0) | 2013.09.09 |
Subversion 프로토콜 - 1. SVN (Ubuntu) (0) | 2013.09.09 |