Resources for “A Database-Driven Web Application in 18 Lines of Code”

Resources for the print article.

The Maypole Home Page: maypole.perl.org

The CPAN Search Site: search.cpan.org

The MySQL Home Page: www.mysql.com

______________________

Comments

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.

Problems installing 'libapreq2-2.04_03-dev

RH Sekaly's picture

I am trying to install & configure using Mandrake Linux 10.1
I have installed the following apps:
Apache 2.0.50 (Mandrake Linux/7.2.101mdk)
mod_perl 1.99_16
Perl v5.8.5
mod_ssl 2.0.50
OpenSSL 0.9.7d
PHP 4.3.8

When I run the command "perl Makefile.PL", everything works well until the end. The last few lines of the out are as follows:

Checking whether to enable maintainer-specific portions of Makefiles... no
./configure: line 1: apsx command not found
./configure: line 1: apsx command not found
./configure: line 1: apsx command not found
./configure: line 1: apsx command not found
./configure: line 1: apsx command not found
build/version_check.pl failed: no version_string found in ''.
configure: error: Bad apache2 version

Can anyone help??

Ragi

contact

jill's picture

ragi
do you think you can contact me
thanks

Code from the article

Mike Hjorleifsson's picture

I followed the directions in the article but i get a 500 error from apache when executing the http://webserver/Club/

below is the dump from /var/log/httpd/error_log
I googled this error and cant figure out whats wrong.

failed to resolve handler `ClubDB': Can't locate Apache/Request.pm in @INC (@INC contains: /usr/lib/perl5/5.8.5/i386-linux-thread-multi /usr/lib/perl5/5.8.5 /usr/lib/perl5/site_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.5/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.4/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.3/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.2/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.1/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.0/i386-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.5 /usr/lib/perl5/vendor_perl/5.8.4 /usr/lib/perl5/vendor_perl/5.8.3 /usr/lib/perl5/vendor_perl/5.8.2 /usr/lib/perl5/vendor_perl/5.8.1 /usr/lib/perl5/vendor_perl/5.8.0 /usr/lib/perl5/vendor_perl . /etc/httpd/ /etc/httpd/lib/perl) at /usr/lib/perl5/site_perl/5.8.5/Apache/MVC.pm line 22.\nCompilation failed in require at (eval 5) line 3.\n\t...propagated at /usr/lib/perl5/5.8.5/base.pm line 85.\nBEGIN failed--compilation aborted at /usr/lib/perl5/5.8.5/ClubDB.pm line 5.\nCompilation failed in require at (eval 4) line 3.\n

Article improvements:

Steven Boger's picture

1. do:

install Bundle::Maypole

2. The article totally glosses over setting up mod_perl lib directories. It oddly states to drop the ClubDB.pm into /etc/httpd/lib/perl directory, even though it never talks about how to set it up. So, (assuming redhat, here), make sure your /etc/httpd/conf.d/perl.conf reads something like:

PerlSetEnv Perl5LIB /etc/httpd/lib/perl

...Agree, Author has not p

Admir Trakic's picture

...Agree,

Author has not provided any significant information about server side settings, also I find it article "agressivly redhat friendly".

Small shell for include testing:
$ cat testinc.pl
print "Content-type: text/plain\n\n";
print join "\n", @INC

If debian user try installing "libapache-mod-perl-doc" for more info about CGI/mod_perl stuff portings.

Hope it helps...

/Admir

RedHat/Fedora Friendly

barryp's picture

An editorial decision was made to target one specific distribution (see my reply to another comment at the bottom of the actual article for the reasons behind this). As I have only so much time, I went with what I knew which was Fedora/RedHat. I have installed Maypole on RedHat 9 and Fedora 3 - granted, it takes a while to get everything set-up but, once it is, it works well. The Soccer Club example system will work on Maypole if Maypole is installed correctly. If Maypole has trouble installing, it's really just a matter of keeping at it until it does. There's a load of help on the Maypole mailing-list archive.

As there appears to be no link to the actual source code, here it is (from my own web-site) which should save some people some time.

Hope this helps.

--
Paul Barry

Paul Barry

White Paper
Linux Management with Red Hat Satellite: Measuring Business Impact and ROI

Linux has become a key foundation for supporting today's rapidly growing IT environments. Linux is being used to deploy business applications and databases, trading on its reputation as a low-cost operating environment. For many IT organizations, Linux is a mainstay for deploying Web servers and has evolved from handling basic file, print, and utility workloads to running mission-critical applications and databases, physically, virtually, and in the cloud. As Linux grows in importance in terms of value to the business, managing Linux environments to high standards of service quality — availability, security, and performance — becomes an essential requirement for business success.

Learn More

Sponsored by Red Hat

White Paper
Private PaaS for the Agile Enterprise

If you already use virtualized infrastructure, you are well on your way to leveraging the power of the cloud. Virtualization offers the promise of limitless resources, but how do you manage that scalability when your DevOps team doesn’t scale? In today’s hypercompetitive markets, fast results can make a difference between leading the pack vs. obsolescence. Organizations need more benefits from cloud computing than just raw resources. They need agility, flexibility, convenience, ROI, and control.

Stackato private Platform-as-a-Service technology from ActiveState extends your private cloud infrastructure by creating a private PaaS to provide on-demand availability, flexibility, control, and ultimately, faster time-to-market for your enterprise.

Learn More

Sponsored by ActiveState