Install subversion + apache on linux source code

Source: Internet
Author: User
Install subversion + apache on the linux source code-Linux Enterprise Application-Linux server application information. For details, refer to the following section. John is a linux cainiao. After reading N documents, he finally installed subversion + apache on two linux machines.

Record the installation steps as follows:

1. Download svn source code
Http://subversion.tigris.org/servlets/NewsItemView? NewsItemID = 1807
Downloaded
Http://subversion.tigris.org/downloads/subversion-1.4.3.zip
Http://subversion.tigris.org/downloads/subversion-deps-1.4.3.tar.gz

2. Follow the svn INSTALL documentation to perform the following steps:
$ Tar xzvf subversion-1.x.x.tar.gz
$ Tar xzvf subversion-deps-1.x.x.tar.gz
$ Subversion-1.x.x cd

$./Configure
$ Make & make install

One of the two machines is a 64-bit CPU, and an error is prompted during make:
A local symbol 'can not be used when making a shared object; recompile
-FPI

So let's try again:
Make clean
./Configure CFLAGS =-fPIC
Make & make install

3. install apache with the source code,
Svn co http://svn.apache.org/repos/asf/httpd/httpd/branches/2.0.x httpd-2.0
$ D httpd-2.0/srclib
$ Svn co http://svn.apache.org/repos/asf/apr/apr/branches/0.9.x apr
$ Svn co http://svn.apache.org/repos/asf/apr/apr-util/branches/0.9.x apr-util
$ Cd ..
$./Buildconf (if you are prompted that libtool is not installed... congratulations... You have to install libtool first and download RPM online)
$./Configure -- enable-dav -- enable-so
$ Make & make install

4
After apache completes the operation, recompile A svn file and copy the related. so file to the apache directory.
In the subversion-1.x.x directory just now
$./Configure -- with-apxs =/usr/local/apache2/bin/apxs
$ Rm/usr/local/lib/libsvn *
$ Make clean & make install

5. Create the svn repository root directory and configure apache

Create a folder/var/svn/repos
Configure apache:

DAV svn
SVNParentPath/var/svn/repos


Restart apache


6. An important step:
NOTE:
Make sure that the user 'nobody' (or whatever UID
Httpd process runs as) has permission to read and write
Berkeley DB files! This is a very common problem.

Chown-R nobody: nobody/var/svn/repos

7. Create a svn Repository
Cd/var/svn/repos
Svnadmin create TEST

Then run cd to a directory and create several files:
Cd/home/xxxx/
Mkdir test
Cd test
Mkdir trunk
Mkdir branches
Svm import http: // localhost/svn/TEST-m "Initial repository"

Done!

Try check out:

Svn co http: // localhost/svn/TEST
Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.