| 1 | === NEW INSTRUCTIONS HOW TO DEAL WITH NEW LIBTOOL === |
|---|
| 2 | 1) 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 |
|---|
| 3 | 2) 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 | |
|---|
| 5 | 3) 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 |
|---|
| 6 | 4) Rebuild apache providing --with-apr(-util) options to buildconf and configure. No need to specify location of Berkeley DB anymore. |
|---|
| 7 | e.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 | |
|---|
| 9 | 5) configure SVN without --with-berkeley-db flag, but with --wth-apr(-util) |
|---|
| 10 | |
|---|
| 11 | |
|---|
| 12 | |
|---|
| 13 | *** Install under Linux and MacOS *** |
|---|
| 14 | [Berkeley DB] |
|---|
| 15 | 1) 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. |
|---|
| 16 | Example: ./buildall.sh --enable-debug --enable-java --prefix=/usr/local/BerkeleyDB-4.8 |
|---|
| 17 | |
|---|
| 18 | Note: do ./buildall.sh --clean (--distclean) if you want to rebuild DB XML. (Otherwise segmentation fault might appear) |
|---|
| 19 | |
|---|
| 20 | [Apache httpd server] |
|---|
| 21 | Preparation: |
|---|
| 22 | 1) Download sources of Apache HTTPD server. Note modules for 2.2 are not compatible to 2.0's ones. Better to choose 2.2 |
|---|
| 23 | 2) 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 | |
|---|
| 25 | Buiding: |
|---|
| 26 | |
|---|
| 27 | 1)./buildconf |
|---|
| 28 | 2)./configure --enable-dav --enable-so --enable-maintainer-mode --enable-ssl --with-dbm=db4 --with-berkeley-db=/usr/local/BerkeleyDB-4.8 |
|---|
| 29 | |
|---|
| 30 | Note: |
|---|
| 31 | Pay 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: |
|---|
| 32 | LD_LIBRARY_PATH="/usr/local/BerkeleyDB-4.8/lib/" |
|---|
| 33 | LIBRARY_PATH="/usr/local/BerkeleyDB-4.8/lib/" |
|---|
| 34 | |
|---|
| 35 | If you changed e.g. /etc/profile for variables, reload it by 'source /etc/profile' |
|---|
| 36 | |
|---|
| 37 | NOTE: Use --enable-maintainer-mode if you build xSVN in debug configuration |
|---|
| 38 | 3)make && make install - it will build and install apache into /usr/local/apache2 directory |
|---|
| 39 | |
|---|
| 40 | See Subversion INSTALL notes for more information |
|---|
| 41 | |
|---|
| 42 | [xSVN] |
|---|
| 43 | Note for Mac users: |
|---|
| 44 | There 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. |
|---|
| 45 | The way to fix it: |
|---|
| 46 | 1) Install fink's one libtool of version 1.5 (package libtool14). Then put the /sw/bin path to the $PATH before /usr/bin. |
|---|
| 47 | 2) Then install libtool from source and substitute with that the libtool in src-trunk. Then everything should be fine |
|---|
| 48 | 3) 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 | |
|---|
| 50 | 0) 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 |
|---|
| 51 | 1)sh ./autogen.sh |
|---|
| 52 | 2)./configure --with-ssl --with-berkeley-db=/usr/local/BerkeleyDB-4.8 --enable-maintainer-mode --with-apxs=/usr/local/apache2/bin/apxs |
|---|
| 53 | |
|---|
| 54 | The latter parameter is needed if you have different versions of Apache and want to choose the right one (for module mod_dav_svn) |
|---|
| 55 | |
|---|
| 56 | Again, Use --enable-maintainer-mode if you want to build xSVN in debug configuration. |
|---|
| 57 | Pay 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 | |
|---|
| 59 | Don't forget to export them in order to make them visible to child configuration process |
|---|
| 60 | |
|---|
| 61 | 3)Remove old SVN libs if there are any: rm /usr/local/lib/libxsvn*. |
|---|
| 62 | |
|---|
| 63 | 4)make clean && make && make install |
|---|
| 64 | |
|---|
| 65 | |
|---|
| 66 | |
|---|
| 67 | ***Install under Windows*** |
|---|
| 68 | Due 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) |
|---|
| 69 | Notes: |
|---|
| 70 | 1) 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 |
|---|
| 71 | 2) One should convert Apache DSW project to the project of the newest version of VS (like 2005). |
|---|
| 72 | 3) Copy mod_dav.h and os.h to apache's include folder |
|---|
| 73 | 4) don't forget to build Apache --- it's needed for mod_dav_svn |
|---|
| 74 | 5) 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. |
|---|
| 75 | You should change this file in the following way: |
|---|
| 76 | movd mm5,dword ptr [esp+4](649) |
|---|
| 77 | movd mm7,dword ptr [esi](663) |
|---|
| 78 | movd mm7,dword ptr [esi](720) |
|---|
| 79 | For more information see http://www.deanlee.cn/windows/inffas32asm-error-a2070-invalid-instruction-operands/ |
|---|
| 80 | |
|---|
| 81 | |
|---|