Forum OpenACS Q&A: Response to MP3 Jukebox Perl Dependancy

Collapse
Posted by Peter Vessenes on
Hi David,

I wrote that segment of the original MP3 Jukebox for ACS, although I haven't looked at the openACS module, so caveat reador.. Your problem is that you need to specify @INC to include a local directory (any one that you have write / read access to will do) which contains a directory named MPEG, and then MP3Info.pm in that directory.

The original MP3 jukebox uses the -I flag when calling perl to allow a user to specify a local directory in which modules are kept. This flag is set in the tcl file packages/mp3jukebox/www/scanner.tcl: it's the following line in the original module:

set file_info [exec "perl" -I[acs_root_dir]/packages/mp3jukebox/bin [acs_root_dir]/packages/mp3jukebox/bin/mp3_file_scan $target_filename]
You can either place the new module in the packages/mp3jukebox/bin directory, or change the location that you'd like perl to look for your module; either should work.