PDA

View Full Version : trouble installing slimserver on freebsd 4



Maditude
2005-04-30, 10:42
I'm not at all sure how to set it up... (freebsd 4.11-stable)

The Installation.txt file was kinda skimpy on details!

Here's what I've done so far:

upgraded freebsd4 (cvsup/buildworld/buildkernel/etc)
installed perl v5.6.2 from ports (and "use.perl port")

created a new normal user account 'slim'.
untarred the SlimServer_v6.0.2.tar.gz file

ran this:
/usr/home/slim/SlimServer_v6.0.2/Bin> ./build-perl-modules.pl
Welcome to the Slim Devices perl module installer.

These packages are needed for SlimServer 6 to function.
You will need a C compiler (gcc), make, and perl installed.

*** Ignore any warnings about AppConfig. ***

Please enter a perl binary to use (defaults to /usr/bin/perl)
This must be the same perl binary that you ran this program with -->
Please enter the path to your SlimServer directory (ex: /usr/local/slimserver) --> /home/slim
Please enter a directory to download files to --> /home/slim/tmp/
Downloads will use lwp to fetch tarballs.

Downloading Compress-Zlib-1.33.tar.gz to: /usr/home/slim/tmp
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Up/Downgrade complete.
Building..
Library for Compress-Zlib-1.33.tar.gz is OK!

Downloading DBI-1.46.tar.gz to: /usr/home/slim/tmp
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL

I see you're using perl 5.006002 on i386-freebsd, okay.
Remember to actually *read* the README file!
Use 'make' to build the software (dmake or nmake on Windows).
Then 'make test' to execute self tests.
Then 'make install' to install the DBI and then delete this working
directory before unpacking and building any DBD::* drivers.

Building..
DBI.xs: In function `dbih_clearcom':
DBI.xs:1129: warning: unused variable `Perl___notused'
DBI.xs: In function `dbih_get_fbav':
DBI.xs:1273: warning: unused variable `Perl___notused'
DBI.xs: In function `dbih_set_attr_k':
DBI.xs:1444: warning: unused variable `Perl___notused'
DBI.xs:1353: warning: unused variable `Perl___notused'
DBI.xs: In function `dbih_get_attr_k':
DBI.xs:1578: warning: unused variable `Perl___notused'
DBI.xs: In function `log_where':
DBI.xs:1982: warning: unused variable `Perl___notused'
DBI.xs: In function `XS_DBI_dispatch':
DBI.xs:2811: warning: unused variable `Perl___notused'
DBI.c: At top level:
dbipport.h:529: warning: `my_sv_2pvbyte' defined but not used
Library for DBI-1.46.tar.gz is OK!

Downloading DBD-SQLite-1.08.tar.gz to: /usr/home/slim/tmp
Uncompressing..
Configuring..
PERL5LIB=/usr/home/slim/tmp/DBI-1.46/blib/lib:/usr/home/slim/tmp/DBI-1.46/blib/arch /usr/bin/perl Makefile.PL
Building..
Library for DBD-SQLite-1.08.tar.gz is OK!

Downloading HTML-Parser-3.45.tar.gz to: /usr/home/slim/tmp
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
Library for HTML-Parser-3.45.tar.gz is OK!

Downloading Template-Toolkit-2.13.tar.gz to: /usr/home/slim/tmp
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL TT_DOCS=n TT_SPLASH=n TT_THEME=n TT_EXAMPLES=n TT_EXAMPLES=n TT_EXTRAS=n TT_QUIET=y TT_ACCEPT=y TT_DBI=n TT_LATEX=n

The Template Toolkit requires that the AppConfig module (version 1.55
or later) first be installed. This is used by
the 'ttree' program for reading command line options and configuration
files. It is available from CPAN:

http://www.cpan.org/authors/Andy_Wardley/

Warning: prerequisite AppConfig 1.55 not found.
Building..
Library for Template-Toolkit-2.13.tar.gz is OK!

Downloading Time-HiRes-1.66.tar.gz to: /usr/home/slim/tmp
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
Library for Time-HiRes-1.66.tar.gz is OK!

Downloading XML-Parser-2.34.tar.gz to: /usr/home/slim/tmp
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
Library for XML-Parser-2.34.tar.gz is OK!

Downloading Digest-MD5-2.33.tar.gz to: /usr/home/slim/tmp
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Warning: prerequisite Digest::base 1.00 not found.
Building..
Library for Digest-MD5-2.33.tar.gz is OK!

Downloading Storable-2.12.tar.gz to: /usr/home/slim/tmp
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
Library for Storable-2.12.tar.gz is OK!
All done!


But, when I then try to run the server...
/usr/home/slim/SlimServer_v6.0.2> ./slimserver.pl
The following modules failed to load: Time::HiRes DBD::SQLite XML::Parser Compress::Zlib Storable

To download and compile them, please run: /usr/home/slim/SlimServer_v6.0.2/Bin/build-perl-modules.pl

Can't locate loadable object for module Time::HiRes in @INC (@INC contains: /usr/home/slim/SlimServer_v6.0.2 /usr/home/slim/SlimServer_v6.0.2/CPAN /usr/home/slim/SlimServer_v6.0.2/CPAN/arch/5.6.2/i386-freebsd /usr/home/slim/SlimServer_v6.0.2/CPAN/arch/5.6.2/i386-freebsd/auto /usr/home/slim/SlimServer_v6.0.2/CPAN/arch/5.6/i386-freebsd /usr/home/slim/SlimServer_v6.0.2/CPAN/arch/5.6/i386-freebsd/auto /usr/home/slim/SlimServer_v6.0.2/CPAN/arch/i386-freebsd /usr/local/lib/perl5/site_perl/5.6.2/mach /usr/local/lib/perl5/site_perl/5.6.2 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.6.2/BSDPAN /usr/local/lib/perl5/5.6.2/mach /usr/local/lib/perl5/5.6.2 .) at ./slimserver.pl line 187
Compilation failed in require at ./slimserver.pl line 187.
BEGIN failed--compilation aborted at ./slimserver.pl line 187.


Unsure of what to do, I did:

cd /home/slim/tmp
noticed the collection of directories there, and that each one had Makefile's, and so I cd into each of those and did a make; make install (noticed I needed root to write them to /usr/local/lib/...) and su'd to root before proceeding.

After finishing those up, I exited back to user 'slim', and tried to restart the slimserver.pl:

/home/slim/SlimServer_v6.0.2> ./slimserver.pl
Can't locate List/Util.pm in @INC (@INC contains: /usr/home/slim/SlimServer_v6.0.2 /usr/home/slim/SlimServer_v6.0.2/CPAN /usr/home/slim/SlimServer_v6.0.2/CPAN/arch/5.6.2/i386-freebsd /usr/home/slim/SlimServer_v6.0.2/CPAN/arch/5.6.2/i386-freebsd/auto /usr/home/slim/SlimServer_v6.0.2/CPAN/arch/5.6/i386-freebsd /usr/home/slim/SlimServer_v6.0.2/CPAN/arch/5.6/i386-freebsd/auto /usr/home/slim/SlimServer_v6.0.2/CPAN/arch/i386-freebsd /usr/local/lib/perl5/site_perl/5.6.2/mach /usr/local/lib/perl5/site_perl/5.6.2 /usr/local/lib/perl5/site_perl/5.005/i386-freebsd /usr/local/lib/perl5/site_perl/5.005 /usr/local/lib/perl5/site_perl /usr/local/lib/perl5/5.6.2/BSDPAN /usr/local/lib/perl5/5.6.2/mach /usr/local/lib/perl5/5.6.2 .) at /usr/home/slim/SlimServer_v6.0.2/CPAN/Class/DBI.pm line 20.
BEGIN failed--compilation aborted at /usr/home/slim/SlimServer_v6.0.2/CPAN/Class/DBI.pm line 20.
Compilation failed in require at (eval 25) line 3.
...propagated at /usr/local/lib/perl5/5.6.2/base.pm line 62.
BEGIN failed--compilation aborted at /usr/home/slim/SlimServer_v6.0.2/Slim/DataStores/DBI/DataModel.pm line 12.
Compilation failed in require at /usr/home/slim/SlimServer_v6.0.2/Slim/DataStores/DBI/DBIStore.pm line 17.
BEGIN failed--compilation aborted at /usr/home/slim/SlimServer_v6.0.2/Slim/DataStores/DBI/DBIStore.pm line 17.
Compilation failed in require at /usr/home/slim/SlimServer_v6.0.2/Slim/Music/Info.pm line 19.
BEGIN failed--compilation aborted at /usr/home/slim/SlimServer_v6.0.2/Slim/Music/Info.pm line 19.
Compilation failed in require at /usr/home/slim/SlimServer_v6.0.2/Slim/Utils/Misc.pm line 15.
BEGIN failed--compilation aborted at /usr/home/slim/SlimServer_v6.0.2/Slim/Utils/Misc.pm line 15.
Compilation failed in require at ./slimserver.pl line 203.
BEGIN failed--compilation aborted at ./slimserver.pl line 203.


Anyways, I'm not sure what I should try next. Perl is not exactly a language I'm comfortable with, and I'm hoping that there's an easier way to do this.

Maditude
2005-04-30, 22:04
Replacing my perl 5.6 with perl 5.8 did the trick -- that build-perl-modules.pl script seemed to work, and running the .slimserver.pl confirms that things seem okay now.

(I'd just gone into /usr/ports/lang/perl5, never even noticed there was also a /usr/ports/lang/perl5.8)

Now I gotta wait a whole week 'til my player arrives... :-P