I've been running v5.4.0 with my SB2.  I just downloaded the tarball
for v6.5.0 and it complains about not finding modules upon startup.

My v5.4.0 slimserver.pl file adds CPAN into @INC:

use lib (
        $Bin, 
        catdir($Bin,'CPAN'), 
        catdir($Bin,'CPAN','arch',(join ".", map {ord} split //, $^V), 
$Config::Config{archname}), 
        catdir($Bin,'CPAN','arch',(join ".", map {ord} (split //, $^V)[0,1]), 
$Config::Config{archname}), 
        catdir($Bin,'CPAN','arch',$Config::Config{archname})
        );

But the v6.5.0 script doesn't seem to do this:

[EMAIL PROTECTED]:~/SlimServer_v6.5.0$ ./slimserver.pl --daemon
Can't locate Text/Unidecode.pm in @INC (@INC contains: 
/usr/share/slimserver/lib /home/moseley/SlimServer_v6.5.0 /etc/perl 
/usr/local/lib/perl/5.8.8 /usr/local/share/perl/5.8.8 /usr/lib/perl5 
/usr/share/perl5 /usr/lib/perl/5.8 /usr/share/perl/5.8 /usr/local/lib/site_perl 
/usr/local/lib/perl/5.8.7 /usr/local/share/perl/5.8.7 /usr/local/lib/perl/5.8.4 
/usr/local/share/perl/5.8.4 /usr/local/lib/perl/5.8.2 
/usr/local/share/perl/5.8.2 /usr/local/lib/perl/5.8.1 
/usr/local/share/perl/5.8.1 /usr/local/lib/perl/5.8.0 
/usr/local/share/perl/5.8.0 .) at 
/home/moseley/SlimServer_v6.5.0/Slim/Utils/Unicode.pm line 36.

How's v6.5.0 suppose to find the modules in the CPAN directory?

I tried adding the above additions to slimserver.pl and then I get:

$ ./slimserver.pl --daemon
The following modules failed to load: DBD::mysql DBI HTML::Parser 
Compress::Zlib YAML::Syck

To download and compile them, please run: 
/home/moseley/SlimServer_v6.5.0/Bin/build-perl-modules.pl DBD::mysql DBI 
HTML::Parser Compress::Zlib YAML::Syck

Maybe I'm not setting @INC correctly for this version of SlimServer.
I have all the modules:

[EMAIL PROTECTED]:~/SlimServer_v6.5.0$ perl -MDBD::mysql -MDBI -MHTML::Parser 
-MCompress::Zlib -MYAML::Syck -le 'print "Yes!"'
Yes!


But, without setting @INC correctly I'll get version mis-matches:

[EMAIL PROTECTED]:~/SlimServer_v6.5.0$ PERL5LIB=$(pwd)/CPAN perl -MDBD::mysql 
-MDBI -MHTML::Parser -MCompress::Zlib -MYAML::Syck -le 'print "Yes!"'
DBI object version 1.53 does not match $DBI::VERSION 1.50 at 
/usr/lib/perl/5.8/DynaLoader.pm line 245.
BEGIN failed--compilation aborted at 
/home/moseley/SlimServer_v6.5.0/CPAN/DBI.pm line 255.
Compilation failed in require at 
/home/moseley/SlimServer_v6.5.0/CPAN/DBD/mysql.pm line 7.
BEGIN failed--compilation aborted at 
/home/moseley/SlimServer_v6.5.0/CPAN/DBD/mysql.pm line 7.
Compilation failed in require.
BEGIN failed--compilation aborted.



BTW -- I'm running Debian Sid, which has 6.3.0 but I wanted to use the
newest version (trying to get SoftSqueeze working).  I assume it's
worth using the newer 6.5 version.


-- 
Bill Moseley
[EMAIL PROTECTED]

_______________________________________________
discuss mailing list
[email protected]
http://lists.slimdevices.com/lists/listinfo/discuss

Reply via email to