source: trunk/INSTALL @ 777

Revision 777, 5.2 KB checked in by vzholudev, 6 months ago (diff)

New instr

Line 
1=== NEW INSTRUCTIONS HOW TO DEAL WITH NEW LIBTOOL ===
21) New libtool (2.2) is not supported. You have to install libtool 1.5.24 from sources and install it. Add the installation bin folder to the path. Remove just in case the newer version of libtool
32) Run autoreconf --force --install --symlink so that configure script will generate the right libtool script (also a related post: http://stackoverflow.com/questions/8135119/how-libtool-custom-script-is-generated-by-configure)
4
53) Checkout new versions of APR and APR-UTIL somewhere (I tried 1.5 lately). Build APR and install. Configure apr-util with flags --with-apr= and --with-berkeley-db=..., make and make install
64) Rebuild apache providing --with-apr(-util) options to buildconf and configure. No need to specify location of Berkeley DB anymore.
7e.g. ./configure --with-apr=/usr/local/apr --with-apr-util=/usr/local/apr --enable-dav --enable-so --enable-maintainer-mode --enable-ssl --with-dbm=db4
8
95) configure SVN without --with-berkeley-db flag, but with --wth-apr(-util)
10
11
12
13*** Install under Linux and MacOS ***
14[Berkeley DB]
151) Build Berkeley DB XML with flags --enable-java and if you build xSVN with debug configuration, use flag --enable-debug as well. --prefix for installing files into the right directory right away.
16Example: ./buildall.sh --enable-debug --enable-java --prefix=/usr/local/BerkeleyDB-4.8
17 
18Note: do ./buildall.sh --clean (--distclean) if you want to rebuild DB XML. (Otherwise segmentation fault might appear)
19
20[Apache httpd server]
21Preparation:
221) Download sources of Apache HTTPD server. Note modules for 2.2 are not compatible to 2.0's ones. Better to choose 2.2
232) Go to the srclib folder and delete apr and apr-util and checkout the newest ones. For example use urls: http://svn.apache.org/repos/asf/apr/apr/branches/1.3.x and http://svn.apache.org/repos/asf/apr/apr-util/branches/1.3.x respectively 
24
25Buiding:
26
271)./buildconf
282)./configure --enable-dav --enable-so --enable-maintainer-mode --enable-ssl --with-dbm=db4  --with-berkeley-db=/usr/local/BerkeleyDB-4.8
29
30Note:
31Pay attention that Apache and BDB were found. If BDB was not found, make sure that apr-util/build/dbm.m4 script is new enough to find a new version.  Also the cause might be that LD_RUN_PATH is not set up to /usr/local/BerkeleyDB-4.8/lib/. Also it might be usefull to set up:
32LD_LIBRARY_PATH="/usr/local/BerkeleyDB-4.8/lib/"
33LIBRARY_PATH="/usr/local/BerkeleyDB-4.8/lib/"
34
35If you changed e.g. /etc/profile for variables, reload it by 'source /etc/profile'
36
37NOTE: Use --enable-maintainer-mode if you build xSVN in debug configuration
383)make && make install - it will build and install apache into /usr/local/apache2 directory
39
40See Subversion INSTALL notes for more information
41
42[xSVN]
43Note for Mac users:
44There might be some problems with building xSVN with MacOS's libtool. It's of version 2.2, but 1.5 is needed. The common problem is there are some errors during autogen.sh.
45The way to fix it:
461) Install fink's one libtool of version 1.5 (package libtool14). Then put the /sw/bin path to the $PATH before /usr/bin.
472) Then install libtool from source and substitute with that the libtool in src-trunk. Then everything should be fine
483) Note: autogen.sh searches for glibtool first. glibtool should be provided by libtool from fink source. During build 'libtool' script is used. Should be the libtool built from sources.
49
500) Checkout or export apr or apr-util as in case with Apache. Actually Apache's apr and apr-util could be provided to ./configure script
511)sh ./autogen.sh
522)./configure --with-ssl --with-berkeley-db=/usr/local/BerkeleyDB-4.8 --enable-maintainer-mode --with-apxs=/usr/local/apache2/bin/apxs
53
54The latter parameter is needed if you have different versions of Apache and want to choose the right one (for module mod_dav_svn)
55
56Again, Use --enable-maintainer-mode if you want to build xSVN in debug configuration.
57Pay attention that Apache and BDB were found. If BDB was not found check whether apr-util/build/dbm.m4 script is new enough to find a new version of BDB. 
58
59Don't forget to export them in order to make them visible to child configuration process
60
613)Remove old SVN libs if there are any: rm /usr/local/lib/libxsvn*.
62
634)make clean && make && make install
64
65
66
67***Install under Windows***
68Due to high maintenance efforts, Windows version of TNTBas is no longer supported. Although, it was built successfully under Windows as well. If you are willing to build TNTBase for Windows nonetheless, contact Vyacheslav Zholudev (v.zholudev@jacobs-university.de)
69Notes:
701) When running gen-make.py, it should include BDB lib into Apache server project. Be sure that BDB libraries in e.g. apr-util project are included on the link tab
712) One should convert Apache DSW project to the project of the newest version of VS (like 2005).
723) Copy mod_dav.h and os.h to apache's include folder
734) don't forget to build Apache --- it's needed for mod_dav_svn
745) If zlib does not want to compile, than it is probaby because ASM of a new VS doesn't understnd the format of inffas32.asm.
75You should change this file in the following way:
76movd mm5,dword ptr [esp+4](649)
77movd mm7,dword ptr [esi](663)
78movd mm7,dword ptr [esi](720)
79For more information see http://www.deanlee.cn/windows/inffas32asm-error-a2070-invalid-instruction-operands/
80
81
Note: See TracBrowser for help on using the repository browser.