Hello all, 


this is my first posting here and I am not such a pro as you all around here
... 

I want to install a local mysql-server and I am new to mysql. I installed
everything as asked in my first mysql-book (MySQL & Perl, Developer's Guide,
Paul DuBois). Only over mod_perl and Bundle::DBD my cpan is refusing to
proceed to installation. So I tried it manually.

To achieve this I installed a fresh Perl ( v5.8.8 running on MacOS 10.3.9)
and then I installed also an updated Apache. But I suppose there is
something wrong with my permissions. The installation was like follows:

I download and untar Apache and mod_perl into /usr/local/src

The Apache-Server is installed without any options to the default folders
like follows, but *with* sudo:

    %  ./config #without anything behind
    %   make && make test
    %   sudo make && make test
    %   sudo apachectl start

It seems to work. But impossible to compile mod_perl ...

Permission issue? Already

    %   perl Makefile.PL MP_APXS=/usr/local/apache2/bin/apxs

issuing: 

Reading Makefile.PL args from @ARGV
   MP_APXS = /usr/local/apache2/bin/apxs
no conflicting prior mod_perl version found - good.
Configuring Apache/2.2.0*/ mod_perl2/2.0.2 Perl/v5.8.8
open /usr/local/src/mod_perl-2.0.2/lib/Apache2/BuildConfig.pm: Permission
denied at lib/Apache2/Build.pm line 939.

so I do it with sudo ...

issuing after many " Writing Makefile for ... "

[warning] mod_perl dso library will be built as mod_perl.so
[warning] You'll need to add the following to httpd.conf:
[warning] 
[warning]   LoadModule perl_module modules/mod_perl.so
[warning] 
[warning] depending on your build, mod_perl might not live in
[warning] the modules/ directory.

[warning] Check the results of
[warning] 
[warning]   $ /usr/local/apache2/bin/apxs -q LIBEXECDIR
[warning] 
[warning] and adjust the LoadModule directive accordingly.

So I change /usr/local/apache2/conf/httpd.conf and put at the end of the
file: 

/usr/local/apache2/conf/httpd.conf

is this right? 

then I do:

    [markslap:/usr/local/src/mod_perl-2.0.2] mareklap% make && make test
cd "src/modules/perl" && make
cc -I/usr/local/src/mod_perl-2.0.2/src/modules/perl
-I/usr/local/src/mod_perl-2.0.2/xs -I/usr/local/apache2/include
-I/usr/local/apache2/include  -I/usr/local/apache2/include -fno-common
-DPERL_DARWIN -no-cpp-precomp -fno-strict-aliasing -pipe
-I/usr/local/include -I/usr/local/lib/perl5/5.8.8/darwin-2level/CORE
-DMOD_PERL -DMP_COMPAT_1X -DDARWIN -DSIGPROCMASK_SETS_THREAD_MASK
-no-cpp-precomp -Os  \
-c mod_perl.c && mv mod_perl.o mod_perl.lo
{standard input}:unknown:FATAL:can't create output file: mod_perl.o
make[1]: *** [mod_perl.lo] Error 1
make: *** [modperl_lib] Error 2

I do the same with sudo :

    %   sudo !!

which seems to work but after some hard and impressing work - there are
people out there, which not only understand these lines, but also have
written all this stuff in their code!!! - appears some errors:

using Apache/2.2.0 (prefork MPM)

waiting 120 seconds for server to start: .[Wed Apr 05 14:22:27 2006] [info]
6 Apache2:: modules loaded
[Wed Apr 05 14:22:27 2006] [info] 0 APR:: modules loaded
[Wed Apr 05 14:22:27 2006] [info] base server + 27 vhosts ready to run tests
.[  error] Failed to find a config file to save the custom configuration in
.       (in cleanup) Can't open
/usr/local/src/mod_perl-2.0.2/t/conf/perlsection.conf: Permission denied at
/usr/local/src/mod_perl-2.0.2/t/conf/extra.last.conf line 56.
Syntax error on line 54 of
/usr/local/src/mod_perl-2.0.2/t/conf/extra.last.conf:
\t(in cleanup) Can't open
/usr/local/src/mod_perl-2.0.2/t/conf/perlsection.conf: Permission denied at
/usr/local/src/mod_perl-2.0.2/t/conf/extra.last.conf line 56.\n

............................................................................
...........................................
waiting 120 seconds for server to start: not ok
[  error] giving up after 121 secs. If you think that your system
is slow or overloaded try again with a longer timeout value.
by setting the environment variable APACHE_TEST_STARTUP_TIMEOUT
to a high value (e.g. 420) and repeat the last command.

[  error] server failed to start! (t/logs/error_log wasn't created, start
the server in the debug mode)
+--------------------------------------------------------+
| Please file a bug report: http://perl.apache.org/bugs/ |
+--------------------------------------------------------+
make: *** [run_tests] Error 1


And with running Apache it is the same! But I can start Apache only as root:

    % apachectl start
Processing config directory: /private/etc/httpd/users/*.conf
fopen: Permission denied
httpd: could not open error log file /private/var/log/httpd/error_log.
/usr/sbin/apachectl start: httpd could not be started

Sorry for this long posting.


greetings to all from Munich (winter is back)


marek



-- 
___________________________________________

        the embassy for talented young musicians
    Podium International | Marek Stepanek | [EMAIL PROTECTED]
        http://www.PodiumInternational.org
            ___________________________________________




                
___________________________________________________________ 
To help you stay safe and secure online, we've developed the all new Yahoo! 
Security Centre. http://uk.security.yahoo.com

Reply via email to