Subversion


※上記の広告は60日以上更新のないWIKIに表示されています。更新することで広告が下部へ移動します。

Apache projects now use Subversion for version control.
It looks there is no CVS interface, at least from the
web pages like http://jakarta.apache.org/site/cvsindex.html.

To build Tomcat from source, we need many related projects in
binary and source. To obtain a minor Apache/Jakarta project,
it looks we need to create a Subversion.

At least, the developer of Subversion considers it is a successor
of CVS. It is a native program, thus we need to obtain source
and compile it. Subversion itself depends on some apache
projects, like APR...


APR compilation, installation was not so difficult.

download



If APR is available, configure and make looks to work, but it
shows message saying it's better to configure APR with Berkley DB.


OK. Downloaded latest release db-4.4.20.

$ cd build_unix
$ ../dist/configure
$ make
# make install

Tried to rebuild apr-1.2.2.

$ ./configure
$ make
# make install

Then, try to make subversion again.
However, I got the same error.

You don't seem to have Berkeley DB version 4.0.14 or newer
installed and linked to APR-UTIL.  We have created Makefiles which
will build without the Berkeley DB back-end; your repositories will
use FSFS as the default back-end.  You can find the latest version of
Berkeley DB here:
  http://www.sleepycat.com/download/index.shtml

Oh, it's talking about apr-util!!

Configureing apr-util-1.2.2

$ ./configure
checking build system type... hppa2.0w-hp-hpux11.11
checking host system type... hppa2.0w-hp-hpux11.11
checking target system type... hppa2.0w-hp-hpux11.11
checking for a BSD-compatible install... /opt/imake/bin/install -c
checking for working mkdir -p... yes
APR-util Version: 1.2.2
checking for chosen layout... apr-util
Applying apr-util hints file rules for hppa2.0w-hp-hpux11.11
  setting apu_crypt_threadsafe to "1"
checking for APR... no
configure: error: APR could not be located. Please use the --with-apr option.

OK. Need to use --with-apr option

$ ./configure --with-apr
:
checking for APR... configure: error: --with-apr requires a directory or file to be provided

The option needs a parameter.

$ ./configure --with-apr=/usr/local/apr

:
$ make
:
chmod 644 /usr/local/apr/lib/libaprutil-1.a

Libraries have been installed in:
   /usr/local/apr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `SHLIB_PATH' environment variable
     during execution
   - use the `-Wl,+b -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

        /opt/imake/bin/install -c -m 644 aprutil.exp /usr/local/apr/lib
        /opt/imake/bin/install -c -m 755 apu-config.out /usr/local/apr/bin/apu-1-config


Oh, I missed a configure option...

   --with-berkeley-db=PATH
     Find the Berkeley DB header and library in \`PATH/include' and
     \`PATH/lib'.  If PATH is of the form \`HEADER:LIB', then search
     for header files in HEADER, and the library in LIB.  If you omit
     the \`=PATH' part completely, the configure script will search
     for Berkeley DB in a number of standard places.

Trying configure again.

$ ./configure --with-apr=/usr/local/apr --with-berkeley-db=/usr/local/BerkeleyDB.4.4

$ make

Finally...

# make install
...
chmod 555 /usr/local/apr/lib/libaprutil-1.sl.2.2
/opt/imake/bin/install -c -m 755 .libs/libaprutil-1.lai /usr/local/apr/lib/libaprutil-1.la
/opt/imake/bin/install -c -m 755 .libs/libaprutil-1.a /usr/local/apr/lib/libaprutil-1.a
ranlib /usr/local/apr/lib/libaprutil-1.a
chmod 644 /usr/local/apr/lib/libaprutil-1.a

Libraries have been installed in:
   /usr/local/apr/lib

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `SHLIB_PATH' environment variable
     during execution
   - use the `-Wl,+b -Wl,LIBDIR' linker flag

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.

        /opt/imake/bin/install -c -m 644 aprutil.exp /usr/local/apr/lib
        /opt/imake/bin/install -c -m 755 apu-config.out /usr/local/apr/bin/apu-1-config
ツールボックス

下から選んでください:

新しいページを作成する
ヘルプ / FAQ もご覧ください。