PDA

View Full Version : [SOLVED] ./build mod_perl on Debian Lenny 64-bit



Yikes2000
11-13-2010, 12:17 PM
OS: Debian Lenny 64-bit

I encountered these two problems while "./build mod_perl":


************* WARNING *************
Your Perl is configured to link against libgdbm,
but libgdbm.so was not found.
You could just symlink it to /usr/lib/libgdbm.so.3.0.0
************* WARNING *************


/usr/bin/ld: cannot find -lperl
collect2: ld returned 1 exit status
make[1]: *** [mod_perl.so] Error 1
make: *** [modperl_lib] Error 2

And here is the solution:


# aptitude install libgdbm3

# cd /usr/local/lib
# ln -s /usr/lib/libgdbm.so.3 libgdbm.so
# ln -s /usr/lib/libperl.so.5.10 libperl.so

# cd /usr/local/directadmin/custombuild
# ./build mod_perl

Follow the installation direction, append to /etc/httpd/conf/extra/httpd-includes.conf:


LoadModule perl_module modules/mod_perl.so

Restart Apache.

Helpful reference:

Overview of mod_perl 2.0 (http://perl.apache.org/docs/2.0/user/intro/overview.html)
mod_perl 2.0 Server Configuration (http://perl.apache.org/docs/2.0/user/config/config.html)
Complete mod_perl 2.0 User's Guide (http://perl.apache.org/docs/2.0/user/index.html)