Portál AbcLinuxu, 10. května 2025 08:41
--prefix=/home/m1c4a1/www
. Vyplivlo to na mě tuto hlášku ke konci:
Libraries have been installed in: /home/m1c4a1/www/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 `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,--rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf'OK, napsal jsem
export LD_LIBRARY_PATH=/home/m1c4a1/www/lib
a export LD_RUN_PATH=/home/m1c4a1/www/lib
, pustím konfiguraci Apache:
LDFLAGS=/home/m1c4a1/www/lib CFLAGS=-O2 ./configure --prefix=/home/m1c4a1/www --with-apr=/home/m1c4a1/www --with-apr-util=/home/m1c4a1/www
a padne to s hláškou:
checking for APR-util... configure: error: the --with-apr-util parameter is incorrect. It must specify an install prefix, a build directory, or an apu-config file.
Neví někdo, co s tím? Instaluji Apache 2.2.0 a apr mám verze 1.2.2. Na systému už je Apache 1.3.34 z balíčku.
export LD_LIBRARY_PATH=/home/m1c4a1/www/lib
, možná by mělo být export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/home/m1c4a1/www/lib
. Stejně tak s LD_RUN_PATH. Jestli to souvisí s problémem nevím.
--prefix=/home/m1c4a1/www
. :-|
Teď jsem ve zdrojácích Apache našel adresář srclib a v něm adresáře apr
a apr-util
; zkompiloval, nainstaloval s prefixem /home/m1c4a1/www a spustil jsem opět kompilaci Apache.
Tentokrát to padlo na tomto:
checking for C compiler default output file name... configure: error: C compiler cannot create executables
See `config.log' for more details.
V config.log je na konci akorát výmluvná hláška: configure: exit 77
--with-apr=./srclib/apr
Bohužel to pak padlo na make:
... exports.c:2177: error: redefinition of 'ap_hack_apr_gid_name_get' exports.c:1001: error: previous definition of 'ap_hack_apr_gid_name_get' was here exports.c:2178: error: redefinition of 'ap_hack_apr_gid_get' exports.c:1002: error: previous definition of 'ap_hack_apr_gid_get' was here exports.c:2189: error: redefinition of 'ap_hack_apr_version' exports.c:1020: error: previous definition of 'ap_hack_apr_version' was here exports.c:2190: error: redefinition of 'ap_hack_apr_version_string' exports.c:1021: error: previous definition of 'ap_hack_apr_version_string' was hereAle zase jsem o krůček vpřed! :)
Cannot use an external APR with the bundled APR-util
.
Je to boj.
Tiskni
Sdílej:
ISSN 1214-1267, (c) 1999-2007 Stickfish s.r.o.