1. APR - Apache Portable Runtime ¼³Ä¡
¼³Ä¡µÉ µð·ºÅ丮ÀÎ prefix ¸¦ ÁöÁ¤ÇÏÁö ¾ÊÀ¸¸é /usr/local µð·ºÅ丮°¡ ±âº»°ªÀ̹ǷÎ, ±ÇÇÑ ¿¡·¯°¡ ³¯ °ÍÀÌ´Ù.
ÇöÀç »ç¿ëÀÚ¸¸ ¾µ ¼ö ÀÖ°Ô, HOME µð·ºÅ丮 ¹Ø¿¡ ¼³Ä¡ÇÑ´Ù.
ÀÌÈÄ, subversion configure ½Ã apr, apr-util ¼³Ä¡ µð·ºÅ丮¸¦ ÁöÁ¤ÇØÁÖ°Ô µÈ´Ù.
-------------------------------------------------
¡Ü apr-1.6.2.tar.gz (¾ÐÃà ÇØÁ¦µÈ µð·ºÅ丮 ³»¿¡¼)
-------------------------------------------------
./configure --prefix=$HOME/usr/local
make
make install
-------------------------------------------------
¡Ü apr-util-1.6.0.tar.gz (¾ÐÃà ÇØÁ¦µÈ µð·ºÅ丮 ³»¿¡¼)
-------------------------------------------------
./configure --prefix=$HOME/usr/local --with-apr=$HOME/usr/local
make
make install
2. apxs ¸¦ À§ÇØ apache-httpd ¼³Ä¡
-------------------------------------------------
¡Ü httpd-2.4.xx.tar.gz
-------------------------------------------------
httpd ¼³Ä¡¹æ¹ý Âü°í...
http://home.zany.kr:9003/board/bView.asp?bCode=11&aCode=14102
3. subversion ¼³Ä¡
-------------------------------------------------
¡Ü subversion-1.9.7.tar.gz (¾ÐÃà ÇØÁ¦µÈ µð·ºÅ丮 ³»¿¡¼)
-------------------------------------------------
--prefix subversion ÀÌ ¼³Ä¡µÉ °æ·Î
--with-apr (À§¿¡¼ ¼³Ä¡µÊ) apr ÀÌ ¼³Ä¡µÈ °æ·Î
--with-apr-util (À§¿¡¼ ¼³Ä¡µÊ) apr-util ÀÌ ¼³Ä¡µÈ °æ·Î
--with-apxs (À§¿¡¼ ¼³Ä¡µÊ) apxs (apache extension tool) °¡ ¼³Ä¡µÈ °æ·Î
./configure \
--prefix=$HOME/usr/module/subversion \
--with-apr=$HOME/usr/local \
--with-apr-util=$HOME/usr/local \
--with-apxs=$HOME/usr/module/apache-httpd/bin/apxs
make
make install
-------------------------------------------------
¡Ü subversion configure Áß sqlite ¿À·ù·Î Á¾·áµÇ´Â °æ¿ì
-------------------------------------------------
An appropriate version of sqlite could not be found. We recommmend
3.7.15.1, but require at least 3.7.12.
Please either install a newer sqlite on this system
or
get the sqlite 3.7.15.1 amalgamation from:
http://www.sqlite.org/sqlite-amalgamation-3071501.zip
unpack the archive using unzip and rename the resulting
directory to:
/home/zany/tmp/subversion-1.9.7/sqlite-amalgamation
configure: error: Subversion requires SQLite
-------------------------------------------------
¡Ü sqlite °¡ 1.9.7 ºÎÅÍ REQUIRED ÀÇÁ¸¼ºÀ¸·Î º¯°æµÇ¾ú´Ù.
https://svn.apache.org/repos/asf/subversion/trunk/INSTALL
-------------------------------------------------
1. https://www.sqlite.org »çÀÌÆ®¿¡¼ sqlite ¼Ò½º ÄÚµå ´Ù¿î·ÎµåÇؼ
2. tar.gz ÆÄÀÏ ´Ù¿î·Îµå ¹Þ¾Æ¼ ¾ÐÃà ÇØÁ¦ÇÑ ÈÄ,
3. subversion configure ½Ã ¹ß»ýÇÑ °æ°í ¸Þ½ÃÁöó·³
/home/zany/tmp/subversion-1.9.7/sqlite-amalgamation °æ·Î¸íÀÌ µÇµµ·Ï À§Ä¡½ÃÅ°±â¸¸ ÇÏ¸é µÈ´Ù.
[zany@8393da1e9671 tmp]$ wget https://www.sqlite.org/2017/sqlite-autoconf-3200000.tar.gz
[zany@8393da1e9671 tmp]$ tar zxvf sqlite-autoconf-3200000.tar.gz
[zany@8393da1e9671 tmp]$ mv sqlite-autoconf-3200000 ./subversion-1.9.7
[zany@8393da1e9671 tmp]$ cd subversion-1.9.7
[zany@8393da1e9671 subversion-1.9.7]$ mv sqlite-autoconf-3200000 sqlite-amalgamation
[zany@8393da1e9671 subversion-1.9.7]$ ls
BUGS LICENSE aclocal.m4 build.conf configure.ac get-deps.sh win-tests.py
CHANGES Makefile.in autogen.sh config.log doc sqlite-amalgamation
COMMITTERS NOTICE build config.nice gen-make.opts subversion
INSTALL README build-outputs.mk configure gen-make.py tools
ÀÌ·¸°Ô ÇÑ ÈÄ, ´Ù½Ã subversion configure ¸¦ ½ÃµµÇغ¸ÀÚ.
¡Ü ¼³Ä¡ ÈÄ, subversion ½ÇÇà.
cd $SVN_HOME/bin
./svnserve -d --root=$HOME/var/subversion --listen-port=13690
¡Ü ¼³Ä¡ ÈÄ, ·¹Æ÷ÁöÅ丮 »ý¼º ¹× È®ÀÎ.
svnadmin create --fs-type fsfs $HOME/var/subversion/repos
svn list svn://localhost:13690/repos
¡Ü ±âŸ ÆÁ....
----------------------------------
¡Û ½ÃÀÛ ½ºÅ©¸³Æ®
----------------------------------
[king@nabi bin]$ tee start.sh <<-EOF
¾Æ·¡ ½ºÅ©¸³Æ® ÀÔ·Â
EOF
[king@nabi bin]$ chmod 700 start.sh
----------------------------------
¡Û subversion process Á¤º¸ ȹµæ
----------------------------------
[king@nabi bin]$ tee ps.sh <<-EOF
¾Æ·¡ ½ºÅ©¸³Æ® ÀÔ·Â...
EOF
[king@nabi bin]$ chmod 700 ps.sh
----------------------------------
¡Û subversion PID Á¤º¸ ȹµæ
----------------------------------
[king@nabi bin]$ tee pid.sh <<-EOF
¾Æ·¡ ½ºÅ©¸³Æ® ÀÔ·Â...
EOF
[king@nabi bin]$ chmod 700 pid.sh
----------------------------------
¡Û Á¾·á ½ºÅ©¸³Æ®
----------------------------------
[king@nabi bin]$ tee stop.sh <<-EOF
¾Æ·¡ ½ºÅ©¸³Æ® ÀÔ·Â...
EOF
[king@nabi bin]$ chmod 700 stop.sh
|