在linux下编译svn,编译完重启apache的时候遇到
错误
- starting httpd: httpd: Syntax error on line 206 of /etc/httpd/conf/httpd.conf: Cannot load /usr/lib/httpd/modules/mod_dav_svn.so into server: /usr/local/svn/lib/libsvn_subr-1.so.0: undefined symbol: sqlite3_open_v2
在网上搜了半天,几乎都是千篇一律的采集来的解决不了问题的答案.
后来在了老大的帮助下,终于在INSTLL文档中找到的原因
文档
- 13. SQLite (REQUIRED)
-
- Subversion (starting with version 1.6) requires SQLite version
- 3.4.0 or above, and you can meet this dependency several ways:
- * Use an SQLite amalgamation file.
- * Specify an SQLite installation to use.
- * Let Subversion find an installed SQLite.
-
- To use an SQLite-provided amalgamation, just drop sqlite3.c into
- Subversion's sqlite-amalgamation/ directory, or point to it with the
- --with-sqlite configure option. This file also ships with the Subversion
- dependencies distribution, or you can download it from SQLite:
-
- http://www.sqlite.org/download.html
也就所需要把sqlite安装目录下的sqlite3.c复制到svn的目录下的sqlite-amalgamation/目录下就可以了,也可以直接把sqlite目录复制为sqlite-amalgamation.
命令
- # cp /tmp/sqlite/sqlite-3.6.23/ /tmp/svn/subversion-1.6.9/sqlite-amalgamation/
注意,这样编译的时候就不需要指定sqlite的目录了
命令
- # ./configure --prefix=/usr/local/subversion --with-apxs=/usr/local/apache2/bin/apxs --with-apr=/usr/local/apr/bin/apr-1-config --with-apr-util=/usr/local/apr-util/bin/apu-1-config --with-zlib=/usr/local/zlib/ --with-neon=/usr/local/neon/ --with-ssl --enable-maintainer-mode
- # make clean && make && make install
安装完成,重启apache,错误消失,这个世界清静了.
最后总结两点
1. 编译前先看安装文档
2. 采集害死人
Tags: linux, svn, apache, sqlite3
笔记 | 评论:0
| Trackbacks:0
| 阅读:575