#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    55
    Rep Power
    16

    SOLVED! Trying to install Apache2::AuthenNTLM::Cookie


    Running Ubuntu server 8.04 LTS trying to install through cpan, Apache2::AuthenNTLM::Cookie. Has a prerequisite of Apache2::Cookie, which has a prerequisite of libapreq2 as a dependency and getting this error:

    Can't open perl script "INSTALLDIRS=site": No such file or directory
    configure: error: Bad apache2 binary (/usr/sbin/apache2)



    Apache Version Apache/2.2.8 (Ubuntu) PHP/5.2.4-2ubuntu5.6 with Suhosin-Patch mod_perl/2.0.3 Perl/v5.8.8

    Any ideas on how to get around this?

    Thanks,
    Richie
    Last edited by richcoosa19; July 10th, 2009 at 09:01 AM. Reason: SOLVED!
  2. #2
  3. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2003
    Location
    in da kitchen ...
    Posts
    12,871
    Rep Power
    6466
    reinstall apache2?
    --Ax
    without exception, there is no rule ...
    Handmade Irish Jewellery
    Targeted Advertising Cookie Optout (TACO) extension for Firefox
    The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones


    09 F9 11 02
    9D 74 E3 5B
    D8 41 56 C5
    63 56 88 C0
    Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
    -- Jamie Zawinski
    Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ...
    BIT COINS ANYONE
  4. #3
  5. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    55
    Rep Power
    16
    Originally Posted by Axweildr
    reinstall apache2?
    Would that help since I am using the binary from the ubuntu repositories?
  6. #4
  7. Contributing User
    Devshed Supreme Being (6500+ posts)

    Join Date
    Mar 2003
    Location
    in da kitchen ...
    Posts
    12,871
    Rep Power
    6466
    The error message is telling us what it thinks is wrong ...
    Can't open perl script "INSTALLDIRS=site": No such file or directory
    configure: error: Bad apache2 binary (/usr/sbin/apache2)
    What were the last couple of lines before the error ...?
    --Ax
    without exception, there is no rule ...
    Handmade Irish Jewellery
    Targeted Advertising Cookie Optout (TACO) extension for Firefox
    The great thing about Object Oriented code is that it can make small, simple problems look like large, complex ones


    09 F9 11 02
    9D 74 E3 5B
    D8 41 56 C5
    63 56 88 C0
    Some people, when confronted with a problem, think "I know, I'll use regular expressions." Now they have two problems.
    -- Jamie Zawinski
    Detavil - the devil is in the detail, allegedly, and I use the term advisedly, allegedly ... oh, no, wait I did ...
    BIT COINS ANYONE
  8. #5
  9. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    55
    Rep Power
    16
    Originally Posted by Axweildr
    The error message is telling us what it thinks is wrong ...
    What were the last couple of lines before the error ...?
    checking whether ln -s works... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    Can't open perl script "INSTALLDIRS=site": No such file or directory
    configure: error: Bad apache2 binary (/usr/sbin/apache2)
    Running make test
    Make had some problems, maybe interrupted? Won't test
    Running make install
    Make had some problems, maybe interrupted? Won't install
  10. #6
  11. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    55
    Rep Power
    16
    Originally Posted by richcoosa19
    checking whether ln -s works... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    Can't open perl script "INSTALLDIRS=site": No such file or directory
    configure: error: Bad apache2 binary (/usr/sbin/apache2)
    Running make test
    Make had some problems, maybe interrupted? Won't test
    Running make install
    Make had some problems, maybe interrupted? Won't install
    Maybe this will help more:

    ./configure --enable-perl-glue --with-perl-opts="INSTALLDIRS=site" --with-apache2-apxs="/usr/bin/apxs2" --with-perl="/usr/bin/perl"
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether build environment is sane... yes
    checking for gawk... no
    checking for mawk... mawk
    checking whether make sets $(MAKE)... yes
    checking whether make sets $(MAKE)... (cached) yes
    checking for gcc... gcc
    checking for C compiler default output file name... a.out
    checking whether the C compiler works... yes
    checking whether we are cross compiling... no
    checking for suffix of executables...
    checking for suffix of object files... o
    checking whether we are using the GNU C compiler... yes
    checking whether gcc accepts -g... yes
    checking for gcc option to accept ISO C89... none needed
    checking for style of include used by make... GNU
    checking dependency style of gcc... gcc3
    checking build system type... i686-pc-linux-gnu
    checking host system type... i686-pc-linux-gnu
    checking for a sed that does not truncate output... /bin/sed
    checking for grep that handles long lines and -e... /bin/grep
    checking for egrep... /bin/grep -E
    checking for ld used by gcc... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking for /usr/bin/ld option to reload object files... -r
    checking for BSD-compatible nm... /usr/bin/nm -B
    checking whether ln -s works... yes
    checking how to recognise dependent libraries... pass_all
    checking how to run the C preprocessor... gcc -E
    checking for ANSI C header files... yes
    checking for sys/types.h... yes
    checking for sys/stat.h... yes
    checking for stdlib.h... yes
    checking for string.h... yes
    checking for memory.h... yes
    checking for strings.h... yes
    checking for inttypes.h... yes
    checking for stdint.h... yes
    checking for unistd.h... yes
    checking dlfcn.h usability... yes
    checking dlfcn.h presence... yes
    checking for dlfcn.h... yes
    checking for g++... g++
    checking whether we are using the GNU C++ compiler... yes
    checking whether g++ accepts -g... yes
    checking dependency style of g++... gcc3
    checking how to run the C++ preprocessor... g++ -E
    checking for g77... no
    checking for xlf... no
    checking for f77... no
    checking for frt... no
    checking for pgf77... no
    checking for cf77... no
    checking for fort77... no
    checking for fl32... no
    checking for af77... no
    checking for xlf90... no
    checking for f90... no
    checking for pgf90... no
    checking for pghpf... no
    checking for epcf90... no
    checking for gfortran... no
    checking for g95... no
    checking for xlf95... no
    checking for f95... no
    checking for fort... no
    checking for ifort... no
    checking for ifc... no
    checking for efc... no
    checking for pgf95... no
    checking for lf95... no
    checking for ftn... no
    checking whether we are using the GNU Fortran 77 compiler... no
    checking whether accepts -g... no
    checking the maximum length of command line arguments... 32768
    checking command to parse /usr/bin/nm -B output from gcc object... ok
    checking for objdir... .libs
    checking for ar... ar
    checking for ranlib... ranlib
    checking for strip... strip
    checking if gcc supports -fno-rtti -fno-exceptions... no
    checking for gcc option to produce PIC... -fPIC
    checking if gcc PIC flag -fPIC works... yes
    checking if gcc static flag -static works... yes
    checking if gcc supports -c -o file.o... yes
    checking whether the gcc linker (/usr/bin/ld) supports shared libraries... yes
    checking whether -lc should be explicitly linked in... no
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    checking whether stripping libraries is possible... yes
    checking if libtool supports shared libraries... yes
    checking whether to build shared libraries... yes
    checking whether to build static libraries... yes
    configure: creating libtool
    appending configuration tag "CXX" to libtool
    checking for ld used by g++... /usr/bin/ld
    checking if the linker (/usr/bin/ld) is GNU ld... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking for g++ option to produce PIC... -fPIC
    checking if g++ PIC flag -fPIC works... yes
    checking if g++ static flag -static works... yes
    checking if g++ supports -c -o file.o... yes
    checking whether the g++ linker (/usr/bin/ld) supports shared libraries... yes
    checking dynamic linker characteristics... GNU/Linux ld.so
    checking how to hardcode library paths into programs... immediate
    appending configuration tag "F77" to libtool
    checking for ranlib... (cached) ranlib
    checking for a BSD-compatible install... /usr/bin/install -c
    checking whether ln -s works... yes
    checking whether to enable maintainer-specific portions of Makefiles... no
    Can't open perl script "INSTALLDIRS=site": No such file or directory
    configure: error: Bad apache2 binary (/usr/sbin/apache2)
    Running make test
    Make had some problems, maybe interrupted? Won't test
    Running make install
    Make had some problems, maybe interrupted? Won't install
  12. #7
  13. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    55
    Rep Power
    16
    Edited my /etc/perl/CPAN/Config.pm file and changed:

    'makepl_arg' => q[INSTALLDIRS=site],
    to:
    'makepl_arg' => q[],

    now it configures, but chokes on compilation:
    /usr/bin/perl /usr/share/perl/5.8.8/ExtUtils/xsubpp -typemap /usr/share/perl/5.8/ExtUtils/typemap -typemap /usr/lib/perl5/auto/Apache2/typemap -typemap ../../../typemap Apache2.xs > Apache2.xsc && mv Apache2.xsc Apache2.c
    cc -c -I/home/richie/.cpan/build/libapreq2-2.12/glue/perl/xs -I/home/richie/.cpan/build/libapreq2-2.12/include -I/home/richie/.cpan/build/libapreq2-2.12/glue/perl/xsbuilder -I/usr/include/apache2 -I/usr/include/apr-1.0 -I/usr/include/postgresql -D_REENTRANT -D_GNU_SOURCE -DTHREADS_HAVE_PIDS -DDEBIAN -fno-strict-aliasing -pipe -I/usr/local/include -I/usr/lib/perl/5.8/CORE -DMOD_PERL -DMP_USE_GTOP -DMP_COMPAT_1X -g -Wall -O2 -DVERSION=\"2.12\" -DXS_VERSION=\"2.12\" -fPIC "-I/usr/lib/perl/5.8/CORE" Apache2.c
    In file included from Apache2.xs:39:
    /home/richie/.cpan/build/libapreq2-2.12/glue/perl/xsbuilder/apreq_xs_postperl.h:22:34: error: modperl_perl_unembed.h: No such file or directory
    /home/richie/.cpan/build/libapreq2-2.12/glue/perl/xsbuilder/apreq_xs_postperl.h:25:33: error: modperl_common_util.h: No such file or directory
    In file included from Apache2.xs:45:
    /home/richie/.cpan/build/libapreq2-2.12/glue/perl/xsbuilder/APR/Request/Apache2/APR__Request__Apache2.h:1:22: error: mod_perl.h: No such file or directory
    Apache2.c: In function ‚XS_APR__Request__Apache2_handle‚:
    Apache2.c:66: warning: implicit declaration of function ‚modperl_xs_sv2request_rec‚
    Apache2.c:66: warning: initialization makes pointer from integer without a cast
    make[6]: *** [Apache2.o] Error 1
    make[6]: Leaving directory `/home/richie/.cpan/build/libapreq2-2.12/glue/perl/xs/APR/Request/Apache2'
    make[5]: *** [subdirs] Error 2
    make[5]: Leaving directory `/home/richie/.cpan/build/libapreq2-2.12/glue/perl/xs/APR/Request'
    make[4]: *** [subdirs] Error 2
    make[4]: Leaving directory `/home/richie/.cpan/build/libapreq2-2.12/glue/perl/xs/APR'
    make[3]: *** [subdirs] Error 2
    make[3]: Leaving directory `/home/richie/.cpan/build/libapreq2-2.12/glue/perl/xs'
    make[2]: *** [subdirs] Error 2
    make[2]: Leaving directory `/home/richie/.cpan/build/libapreq2-2.12/glue/perl'
    make[1]: *** [perl_glue] Error 2
    make[1]: Leaving directory `/home/richie/.cpan/build/libapreq2-2.12/glue'
    make: *** [all-recursive] Error 1
    /usr/bin/make -- NOT OK
    Running make test
    Can't test without successful make
    Running make install
    make had returned bad status, install seems impossible
  14. #8
  15. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Aug 2003
    Posts
    55
    Rep Power
    16

    Solved


    Using Ubuntu repositories, installed libapache2-mod-apreq2 to get support for Apache2::Cookie. Enabled the apache mod by sudo a2enmod apreq. Edited my configs to use the Cookie extension and force restarted apache.....FIXED!! Not a single 401 in the apache logs, just 200's now!!!

IMN logo majestic logo threadwatch logo seochat tools logo