Hi All

This may be off topic but since it's Friday I thought I'd have a quick play and
install Apache::MP3.

I've built the module and followed the Apache config instructions on the web
site, but every time I try to access the /music location I get a 500 error and
the following line in error_log :

[Fri Jan  3 13:24:49 2003] [error] Can't locate object method "new" via package
"Apache" (perhaps you forgot to load "Apache"?) at
/opt/perl/lib/site_perl/5.6.1/Apache/MP3.pm line 80.

Any ideas why it's not working. I'm using other modules without issue.

Perl 5.6.1
Mod Perl 1.27
HPUX 11i

startup.pl

#!/usr/local/bin/perl -w
# to load this file when the server starts, add this to httpd.conf:
# PerlRequire /path/to/startup.pl

BEGIN{
        use Apache ();
        use lib Apache->server_root_relative('lib/site_perl/5.6.1');
}

# make sure we are in a sane environment.
$ENV{GATEWAY_INTERFACE} =~ /^CGI-Perl/ or die "GATEWAY_INTERFACE not Perl!";

use Apache::Registry ();
use Apache::Constants();
use DBI ();
use DBD::mysql ();
use CGI qw(-compile :all);
use CGI::Application;
use GD;
use MP3::Info;
use Apache::MP3;

1;

Cheers

Paul



*******************************************************************************
Important.
Confidentiality: This communication is intended for the above-named person and
may be confidential and/or legally privileged. Any opinions expressed in this
communication are not necessarily those of the company. If it has come to you
in error you must take no action based on it, nor must you copy or show it to
anyone; please delete/destroy and inform the sender immediately.

Monitoring/Viruses
Orange may monitor all incoming and outgoing emails in line with current
legislation.  Although we have taken steps to ensure that this email and
attachments are free from any virus, we advise that in keeping with good
computing practice the recipient should ensure they are actually virus free.

Orange PCS Limited is a subsidiary of Orange SA and is registered in England No
2178917, with its address at St James Court, Great Park Road, Almondsbury Park,
Bradley Stoke, Bristol BS32 4QJ.
*******************************************************************************

Reply via email to