|
|
用户名:zmg229 笔名:远离尘嚣 地区: 湖南-上海 行业:其他 |
| 日 | 一 | 二 | 三 | 四 | 五 | 六 |
千山我独行 不必相送
Mac OSx Leopard下从源码编译安装Fink 0.81(原创)
mac osx和win下集成Apache2.2.4 & svn 1.4.4
/usr/local/bin: This is where the Subversion executables will be installed.5.初始化svn源码库
/usr/local/lib: This is where Subversion and it's dependency libraries will be installed.
/usr/local/lib/svn-apache: This is where the Subversion Apache modules will be installed.
/usr/local/lib/svn-javahl: This is where the Subversion Java bindings (JavaHL) will be installed.
/usr/local/lib/svn-perl: This is where the Subversion Perl bindings will be installed.
/usr/local/lib/svn-python: This is where the Subversion Python bindings will be installed.
/usr/local/lib/svn-ruby: This is where the Subversion Ruby bindings will be installed.
/usr/share/man: This is where the Subversion and it's dependency man pages will be installed.
2. 用sudo vi /etc/profile命令,将/usr/local/bin目录追加到PATH系统环境变量中去,此时执行:
$ svn --version
svn, version 1.4.4 (r25188)
compiled Jun , 14:23:02
Copyright (C) CollabNet.
Subversion is open source software, see http://subversion.tigris.org/
This product includes software developed by CollabNet (http://www.Collab.Net/).
The following repository access (RA) modules are available:
* ra_dav : Module for accessing a repository via WebDAV (DeltaV) protocol.
- handles 'http' scheme
- handles 'https' scheme
* ra_svn : Module for accessing a repository using the svn network protocol.
- handles 'svn' scheme
* ra_local : Module for accessing a repository on local disk.
- handles 'file' scheme
/usr/local/svn_installer_backup: This is where the Subversion installer will move any files that needed to be "overwritten".
3. copy /usr/local/lib/ svn-apache下的*.so到 /Library/Apache2/modules目录下,
$ cp /usr/lib/svn-apache/*.so /Library/Apache2/modules
4. 修改/Library/Apache2/conf/httpd.conf文件,如下:
LoadModule dav_svn_module modules/mod_dav_svn.soLoadModule authz_svn_module modules/mod_authz_svn.so
DAV svn
SVNParentPath "/Users/minggui/data/svn-repos"
SVNListParentPath on
# 认证信息,即限制访问身份配置
AuthType Basic
AuthName "SVN repository"
AuthUserFile /Users/minggui/data/svn-repos/repos1/conf/svn-auth
Require valid-user
在OSX Tiger下编译Apache 2.2.4源码
<Layout Richard5>
prefix: /Library/Apache2
exec_prefix: ${prefix}
bindir: ${exec_prefix}/bin
sbindir: ${exec_prefix}/bin
libdir: ${exec_prefix}/lib
libexecdir: ${exec_prefix}/modules
mandir: ${prefix}/man
sysconfdir: ${prefix}/conf
datadir: ${prefix}
installbuilddir: ${datadir}/build
errordir: ${datadir}/error
iconsdir: ${datadir}/icons
htdocsdir: ${datadir}/htdocs
manualdir: ${datadir}/manual
cgidir: ${datadir}/cgi-bin
includedir: ${prefix}/include
localstatedir: ${prefix}
runtimedir: ${localstatedir}/logs
logfiledir: ${localstatedir}/logs
proxycachedir: ${localstatedir}/proxy
</Layout>
然后保存,也可以直接下载本文件,替换原文件.
4. 在命令行中执行:
sudo
CFLAGS="-arch ppc -isysroot /Developer/SDKs/MacOSX10.4u.sdk" \
./configure --enable-layout=Richard5 \
--enable-mods-shared=all \
--with-ssl=/usr \
--with-mpm=prefork \
--enable-ssl \
--enable-dav \
--enable-cache \
--enable-proxy \
--enable-shared \
--disable-static \
--disable-unique-id \
--disable-ipv6 \
--enable-logio \
--enable-deflate \
--with-ldap \
--with-ldap-include=/usr/include \
--with-ldap-lib=/usr/lib \
--with-included-apr \
--enable-ldap \
--enable-auth-ldap \
--enable-cgi \
--enable-cgid \
--enable-suexec
5.