PDA

View Full Version : Can't Rescan - missing function



Michael Haan
2006-08-23, 18:57
I get this message when trying to rescan:

Undefined subroutine &Slim::Utils::OSDetect::isDebian called at /usr/local/slimserver/Slim/bootstrap.pm line 86.BEGIN failed--compilation aborted at ./scanner.pl line 25.Undefined subroutine &main::cleanup called at /usr/local/slimserver/Slim/bootstrap.pm line 260.END failed--call queue aborted at ./scanner.pl line 25.

It does appear to be missing, any ideas why?

kdf
2006-08-23, 19:55
On 23-Aug-06, at 6:57 PM, Michael Haan wrote:
>
> Undefined subroutine &Slim::Utils::OSDetect::isDebian called at
> /usr/local/slimserver/Slim/bootstrap.pm line 86.
>
> It does appear to be missing, any ideas why?
>
it isn't missing in the version on svn, so I'd expect you have got a
corrupt file, bad download or something went wrong during install
-k

Michael Haan
2006-08-23, 20:05
Hmmm, ok. I got the perlscripts. ZIP. I'll try it again.> Date: Wed, 23 Aug 2006 19:55:42 -0700> From: slim-mail (AT) deane-freeman (DOT) com> Subject: Re: [slim] Can't Rescan - missing function> To: discuss (AT) lists (DOT) slimdevices.com> > > On 23-Aug-06, at 6:57 PM, Michael Haan wrote:> > > > Undefined subroutine &Slim::Utils::OSDetect::isDebian called at > > /usr/local/slimserver/Slim/bootstrap.pm line 86.> >> > It does appear to be missing, any ideas why?> >> it isn't missing in the version on svn, so I'd expect you have got a > corrupt file, bad download or something went wrong during install> -k

kdf
2006-08-23, 20:46
On 23-Aug-06, at 8:05 PM, Michael Haan wrote:

> Hmmm, ok. I got the perlscripts. ZIP. I'll try it again.
>
>
you should find "sub isDebian {" at line 160 of Slim/Utils/OSDetect.pm

the other possible cause would be if bootstrap.pm was somehow calling
isDebian
before having loaded OSDetect
-kdf

Michael Haan
2006-08-23, 21:05
I just downloaded and installed SlimServer_v2006-08-23.noarch.rpm and now it won't even start, but line 160 does contain isDebian. Here's the error:

2006-08-23 23:59:40.3879 Use of uninitialized value in pattern match (m//) at /usr/local/slimserver/Slim/Utils/Prefs.pm line 1077.2006-08-23 23:59:40.3891 Use of inherited AUTOLOAD for non-method YAML::Syck::Dump() is deprecated at /usr/local/slimserver/Slim/Utils/Prefs.pm line 975.Can't locate auto/YAML/Syck/Dump.al in @INC (@INC contains: /usr/local/slimserver /usr/local/slimserver/CPAN/arch/5.8.8/x86_64-linux-thread-multi /usr/local/slimserver/CPAN/arch/5.8.8/x86_64-linux-thread-multi/auto /usr/local/slimserver/CPAN/arch/5.8/x86_64-linux-thread-multi /usr/local/slimserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto /usr/local/slimserver/CPAN/arch/x86_64-linux-thread-multi /usr/local/slimserver/lib /usr/local/slimserver/CPAN /usr/local/slimserver /usr/local/slimserver /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl/5..8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /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 /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5.8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /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 /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/slimserver/Slim/Utils/Prefs.pm line 9752006-08-23 23:59:40.3899 Use of inherited AUTOLOAD for non-method YAML::Syck::Dump() is deprecated at /usr/local/slimserver/Slim/Utils/Prefs.pm line 975.Can't locate auto/YAML/Syck/Dump.al in @INC (@INC contains: /usr/local/slimserver /usr/local/slimserver/CPAN/arch/5.8.8/x86_64-linux-thread-multi /usr/local/slimserver/CPAN/arch/5.8.8/x86_64-linux-thread-multi/auto /usr/local/slimserver/CPAN/arch/5.8/x86_64-linux-thread-multi /usr/local/slimserver/CPAN/arch/5.8/x86_64-linux-thread-multi/auto /usr/local/slimserver/CPAN/arch/x86_64-linux-thread-multi /usr/local/slimserver/lib /usr/local/slimserver/CPAN /usr/local/slimserver /usr/local/slimserver /usr/lib64/perl5/site_perl/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.8 /usr/lib64/perl5/site_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/site_perl/5.8.3/x86_64-linux-thread-multi /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.6 /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 /usr/lib64/perl5/vendor_perl/5.8.8/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.7/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.6/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.5/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.4/x86_64-linux-thread-multi /usr/lib64/perl5/vendor_perl/5.8.3/x86_64-linux-thread-multi /usr/lib/perl5/vendor_perl/5..8.8 /usr/lib/perl5/vendor_perl/5.8.7 /usr/lib/perl5/vendor_perl/5.8.6 /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 /usr/lib64/perl5/5.8.8/x86_64-linux-thread-multi /usr/lib/perl5/5.8.8 .) at /usr/local/slimserver/Slim/Utils/Prefs.pm line 975END failed--call queue aborted.



> Date: Wed, 23 Aug 2006 20:46:59 -0700> From: slim-mail (AT) deane-freeman (DOT) com> Subject: Re: [slim] Can't Rescan - missing function> To: discuss (AT) lists (DOT) slimdevices.com> > > On 23-Aug-06, at 8:05 PM, Michael Haan wrote:> > > Hmmm, ok. I got the perlscripts. ZIP. I'll try it again.> >> >> you should find "sub isDebian {" at line 160 of Slim/Utils/OSDetect.pm> > the other possible cause would be if bootstrap.pm was somehow calling > isDebian> before having loaded OSDetect> -kdf

kdf
2006-08-23, 21:18
On 23-Aug-06, at 9:05 PM, Michael Haan wrote:

> I just downloaded and installed SlimServer_v2006-08-23.noarch.rpm and
> now it won't even start, but line 160 does contain isDebian. Here's
> the error:
>

try:
cd /usr/local/slimserver
Bin/build-perl-modules.pl
-k

Michael Haan
2006-08-23, 21:28
Thank-you, you're being very helpful. One more error:

2006-08-24 00:27:23.9469 ERROR: MySQLHelper: startServer() Couldn't find a executable for 'mysqld'! This is a fatal error. Exiting.



> Date: Wed, 23 Aug 2006 21:18:20 -0700> From: slim-mail (AT) deane-freeman (DOT) com> Subject: Re: [slim] Can't Rescan - missing function> To: discuss (AT) lists (DOT) slimdevices.com> > > On 23-Aug-06, at 9:05 PM, Michael Haan wrote:> > > I just downloaded and installed SlimServer_v2006-08-23.noarch.rpm and > > now it won't even start, but line 160 does contain isDebian. Here's > > the error:> > > > try:> cd /usr/local/slimserver> Bin/build-perl-modules.pl> -k

kdf
2006-08-23, 21:36
On 23-Aug-06, at 9:28 PM, Michael Haan wrote:

> Thank-you, you're being very helpful. One more error:
>
> 2006-08-24 00:27:23.9469 ERROR: MySQLHelper: startServer() Couldn't
> find a executable for 'mysqld'! This is a fatal error. Exiting.
>
6.5 does require mysql. I would have expected the rpm to have the
dependancies to call for this.

Unfortunately, I'm not an rpm user. I'll have to leave that one for
someone else to answer, unless you already know how to find and install
a required rpm for yourself. You'll need Mysql 5.0.2 or higher I
believe.
-kdf

Michael Haan
2006-08-23, 21:39
Hmmm, ok. But mysql is installed and running:

ps -ef | grep mysqldroot 2351 1 0 Aug23 ? 00:00:00 /bin/sh /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf --pid-file=/var/run/mysqld/mysqld.pid --log-error=/var/log/mysqld.logmysql 2387 2351 0 Aug23 ? 00:00:00 /usr/libexec/mysqld --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking --socket=/var/lib/mysql/mysql.sock



> Date: Wed, 23 Aug 2006 21:36:15 -0700> From: slim-mail (AT) deane-freeman (DOT) com> Subject: Re: [slim] Can't Rescan - missing function> To: discuss (AT) lists (DOT) slimdevices.com> > > On 23-Aug-06, at 9:28 PM, Michael Haan wrote:> > > Thank-you, you're being very helpful. One more error:> > > > 2006-08-24 00:27:23.9469 ERROR: MySQLHelper: startServer() Couldn't > > find a executable for 'mysqld'! This is a fatal error. Exiting.> >> 6.5 does require mysql. I would have expected the rpm to have the > dependancies to call for this.> > Unfortunately, I'm not an rpm user. I'll have to leave that one for > someone else to answer, unless you already know how to find and install > a required rpm for yourself. You'll need Mysql 5.0.2 or higher I > believe.> -kdf

kdf
2006-08-23, 22:00
You may want to bring this up on the beta forum. There are people who
can help you there who no longer take part in the general discussion
forum
-k
On 23-Aug-06, at 9:39 PM, Michael Haan wrote:

> Hmmm, ok. But mysql is installed and running:
>
> ps -ef | grep mysqld
> root 2351 1 0 Aug23 ? 00:00:00 /bin/sh
> /usr/bin/mysqld_safe --defaults-file=/etc/my.cnf
> --pid-file=/var/run/mysqld/mysqld.pid --log-error=/var/log/mysqld.log
> mysql 2387 2351 0 Aug23 ? 00:00:00 /usr/libexec/mysqld
> --defaults-file=/etc/my.cnf --basedir=/usr --datadir=/var/lib/mysql
> --user=mysql --pid-file=/var/run/mysqld/mysqld.pid --skip-locking
> --socket=/var/lib/mysql/mysql.sock

Michael Haan
2006-08-24, 13:49
If you don't run from rpm, what do you run from an what steps do you take?

> Date: Wed, 23 Aug 2006 21:36:15 -0700> From: slim-mail (AT) deane-freeman (DOT) com> Subject: Re: [slim] Can't Rescan - missing function> To: discuss (AT) lists (DOT) slimdevices.com> > > On 23-Aug-06, at 9:28 PM, Michael Haan wrote:> > > Thank-you, you're being very helpful. One more error:> > > > 2006-08-24 00:27:23.9469 ERROR: MySQLHelper: startServer() Couldn't > > find a executable for 'mysqld'! This is a fatal error. Exiting.> >> 6.5 does require mysql. I would have expected the rpm to have the > dependancies to call for this.> > Unfortunately, I'm not an rpm user. I'll have to leave that one for > someone else to answer, unless you already know how to find and install > a required rpm for yourself. You'll need Mysql 5.0.2 or higher I > believe.> -kdf

kdf
2006-08-24, 13:59
Quoting Michael Haan <michael_haan (AT) hotmail (DOT) com>:

> If you don't run from rpm, what do you run from an what steps do you take?

I use subversion and I'm running Knoppmyth (variant of debian)
for me, it's simply:

cd /usr/local/slimserver/trunk
svn up
su -c "/etc/init.d/slimserver restart"

occasionally I have to run Bin/build-perl-modules.pl in order to
update various required support modules, and I've also had to do an
apt-get install mysql to get the latest mysql (knoppmyth is stuck back
at mysql 4.x)

-kdf