I'm compiling mod_perl from source, when I run:
I get the following error:
I've found the following solution:
My OS:
5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6
My perl:
Tried both 5.8.6 & 5.8.7
My Makefile.PL:
perl Makefile.PL MP_DEBUG=1 MP_APXS=/home/me/apache2/bin/apxs
I have the latest Apache (downloaded today). I will reveal any other relevant information if needed. Sorry for a long post!
Thanks in advance to any responses (unless in Ruby),
X
Code:
make test
Code:
waiting 120 seconds for server to start: .Syntax error on line 12 of /home/me/mod_perl-2.0.1/t/conf/httpd.conf:
Cannot load /home/me/mod_perl-2.0.1/src/modules/perl/mod_perl.so into server: /home/me/mod_perl-2.0.1/src/modules/perl/mod_perl.so: Undefined symbol "apr_os_thread_current"
Being a newb to linux (or FreeBSD), I really don't understand to apply this fix. If someone would care to explain this in greater detail, It would be greatly appreciated!The apr is not threaded. The apr-1-config and apu-1-config binaries are in my path (/usr/local/bin). This causes the HTTPD build to link against the WRONG apr/apr util libraries. Later when mod_perl2 calls apxs to get the path for things, its given the wrong ones causing the error.
The easiest solution is to temporarily move them out of the PATH during compilation or rename them temporarily.
My OS:
5.4-RELEASE-p6 FreeBSD 5.4-RELEASE-p6
My perl:
Tried both 5.8.6 & 5.8.7
My Makefile.PL:
perl Makefile.PL MP_DEBUG=1 MP_APXS=/home/me/apache2/bin/apxs
I have the latest Apache (downloaded today). I will reveal any other relevant information if needed. Sorry for a long post!
Thanks in advance to any responses (unless in Ruby),
X