PDA

View Full Version : Slimserver 6.1 and Mandriva 2005LE install problem



Rockin
2005-08-04, 19:29
I've tried installing 6.0 previously and things never seem to work either, so I went back to 5.4. Now I got a SB2, I tried installing 6.1 again. I try:
/etc/rc.d/init.d/slimserver start
/etc/rc.d/init.d/slimserver status
my results are:
slimserver.pl is stopped

I then tried:
/usr/local/slimserver/slimserver.pl
my results are:The following modules failed to load: DBD::SQLite

To download and compile them, please run: /usr/local/slimserver/Bin/build-perl-modules.pl

Can't locate auto/DBI/connect.al in @INC (@INC contains: /usr/local/slimserver/Plugins /usr/local/slimserver /usr/local/slimserver/CPAN /usr/local/slimserver/CPAN/arch/5.8.6/i386-linux /usr/local/slimserver/CPAN/arch/5.8.6/i386-linux/auto /usr/local/slimserver/CPAN/arch/5.8/i386-linux /usr/local/slimserver/CPAN/arch/5.8/i386-linux/auto /usr/local/slimserver/CPAN/arch/i386-linux /usr/lib/perl5/5.8.6/i386-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i386-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux /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.2 /usr/lib/perl5/vendor_perl .) at /usr/local/slimserver/Slim/DataStores/DBI/DataModel.pm line 113

I tried the suggested:
/usr/local/slimserver/Bin/build-perl-modules.pl
my result: looked like things ok and try starting slimserver again and see the same message.

I have been unable to locate any logfile and when I use --logfile and a filename, I don't see the filename after the start.

Any ideas?

stinkingpig
2005-09-10, 21:25
your logfile is in /tmp/slimserver.log.

more to the point, assuming this is a perl issue:

su - slimserver
./slimserver.pl

If it's a missing Perl library, it will crash. post the output here.

MrC
2005-09-10, 22:34
Rockin, i'm taking a shot at narrowing the problem for you, but this is a stab based on thinking about what could go wrong with installing software on unix/linux systems and your error:

The following modules failed to load: DBD::SQLite

I've not seen the slim RPM, nor have any idea what it contains, so I may be way off here. But at least it will eliminate one cause if I'm wrong.

It is possible that the RPM package does not include the correct file/directory permissions for the perl modules (if it installs them - again, i don't know). Furthermore, if your root's umask is restrictive (eg. 077), the perl modules would be installed such that only root could read and execute them. Your web server would not be able to, nor would slimserver.pl (unless it was run as root). Other's having a less restrictive umask would explain why they run fine, but you don't. How you do an "su" or login in as root affects this, as root's .profile may or may not be read, and hence umask set differently.

Copy, paste and run the following command:

find / -name SQLite -ls

on your Mandrake system and be sure the files are 644 permissions and the directories are 755 (if you don't know what this is, paste the results to a post).

stinkingpig
2005-09-11, 08:30
MrC wrote:

>Rockin, i'm taking a shot at narrowing the problem for you, but this is
>a stab based on thinking about what could go wrong with installing
>software on unix/linux systems and your error:
>
>The following modules failed to load: DBD::SQLite
>
>I've not seen the slim RPM, nor have any idea what it contains, so I
>may be way off here. But at least it will eliminate one cause if I'm
>wrong.
>
>It is possible that the RPM package does not include the correct
>file/directory permissions for the perl modules (if it installs them -
>again, i don't know). Furthermore, if your root's umask is restrictive
>(eg. 077), the perl modules would be installed such that only root could
>read and execute them. Your web server would not be able to, nor would
>slim.exe (unless it was run as root). Other's having a less
>restrictive umask would explain why they run fine, but you don't. How
>you do an "su" or login in as root affects this, as root's .profile may
>or may not be read, and hence umask set differently.
>
>Copy, paste and run the following command:
>
>find / -name SQLite -ls
>
>on your Mandrake system and be sure the files are 644 permissions and
>the directories are 755 (if you don't know what this is, paste the
>results to a post).
>
>
>
>
my system shows SQLite installations via Slimserver
(/usr/local/slimserver/CPAN) and via my own CPAN. So another way to
quickly get success would be to install it via CPAN:

perl -MCPAN -e shell
install DBD::SQLite

--
Jack at Monkeynoodle dot Org : It's a Scientific Venture!
"I spent all me tin with the ladies drinking gin,
so across the Western ocean I must wander." -- All for Me Grog, traditional

MrC
2005-09-11, 13:18
my system shows SQLite installations via Slimserver
(/usr/local/slimserver/CPAN) and via my own CPAN. So another way to
quickly get success would be to install it via CPAN:

perl -MCPAN -e shell
install DBD::SQLite

FYI. CPAN installations will have exactly the same access problems if your umask is too restrictive. It is critical that your umask is set properly before you run CPAN installs. Some people use the root log in all the time, so don't see this problem. But webservers and other services running as non-root that require acess to the perl modules will.

stinkingpig
2005-09-11, 18:35
MrC wrote:

>stinkingpig Wrote:
>
>
>>my system shows SQLite installations via Slimserver
>>(/usr/local/slimserver/CPAN) and via my own CPAN. So another way to
>>quickly get success would be to install it via CPAN:
>>
>>perl -MCPAN -e shell
>>install DBD::SQLite
>>
>>
>>
>FYI. CPAN installations will have exactly the same access problems if
>your umask is too restrictive. It is critical that your umask is set
>properly before you run CPAN installs. Some people use the root log in
>all the time, so don't see this problem. But webservers and other
>services running as non-root that require acess to the perl modules
>will.
>
>

I haven't modified umask, though it's possible that the OP has activated
one of Mandrake's higher-security modes. OP, when you did your install
did you leave security level at the default or did you increase it?

--
Jack at Monkeynoodle dot Org : It's a Scientific Venture!
"I spent all me tin with the ladies drinking gin,
so across the Western ocean I must wander." -- All for Me Grog, traditional

Rockin
2005-09-11, 19:19
>>>> su - slimserver
>>>> ./slimserver.pl
The following modules failed to load: DBD::SQLite XML::Parser

To download and compile them, please run: /usr/local/slimserver/Bin/build-perl-modules.pl

Can't locate auto/DBI/connect.al in @INC (@INC contains: /usr/local/slimserver/Plugins /usr/local/slimserver /usr/local/slimserver/CPAN /usr/local/slimserver/CPAN/arch/5.8.6/i386-linux /usr/local/slimserver/CPAN/arch/5.8.6/i386-linux/auto /usr/local/slimserver/CPAN/arch/5.8/i386-linux /usr/local/slimserver/CPAN/arch/5.8/i386-linux/auto /usr/local/slimserver/CPAN/arch/i386-linux /usr/lib/perl5/5.8.6/i386-linux /usr/lib/perl5/5.8.6 /usr/lib/perl5/site_perl/5.8.6/i386-linux /usr/lib/perl5/site_perl/5.8.6 /usr/lib/perl5/site_perl /usr/lib/perl5/vendor_perl/5.8.6/i386-linux /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.2 /usr/lib/perl5/vendor_perl .) at /usr/local/slimserver/Slim/DataStores/DBI/DataModel.pm line 113


>>>> /usr/local/slimserver/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 --> /usr/bin/perl
Please enter a directory to download files to --> /usr/local/slimserver/downloads
Downloads will use lwp to fetch tarballs.

Downloading Compress-Zlib-1.33.tar.gz to: /usr/local/slimserver/downloads
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/local/slimserver/downloads
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL

I see you're using perl 5.008006 on i386-linux, 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..
Library for DBI-1.46.tar.gz is OK!

Downloading DBD-SQLite-1.08.tar.gz to: /usr/local/slimserver/downloads
Uncompressing..
Configuring..
PERL5LIB=/usr/local/slimserver/downloads/DBI-1.46/blib/lib:/usr/local/slimserver/downloads/DBI-1.46/blib/arch /usr/bin/perl Makefile.PL
Multiple copies of Driver.xst found in: /usr/local/slimserver/downloads/DBI-1.46/blib/arch/auto/DBI/ /usr/lib/perl5/vendor_perl/5.8.6/i386-linux/auto/DBI/ at Makefile.PL line 58
Building..
Library for DBD-SQLite-1.08.tar.gz is OK!

Downloading HTML-Parser-3.45.tar.gz to: /usr/local/slimserver/downloads
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/local/slimserver/downloads
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/local/slimserver/downloads
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/local/slimserver/downloads
Uncompressing..
Configuring..
/usr/bin/perl Makefile.PL
Building..
Library for XML-Parser-2.34.tar.gz is OK!
All done!


>>>> cat /tmp/slimserver.log
cat: /tmp/slimserver.log: No such file or directory

>>>> ./slimserver.pl
2005-09-11 21:11:50.8354 Your data source needs to be configured. Please open your web browser,
2005-09-11 21:11:50.8358 go to the following URL, and click on the "Server Settings" link.

2005-09-11 21:11:50.8360 The URL to access SlimServer is now:
http://Dallas.BloomCo.Comics:9000/



I checked it out in the browser and things worked this time. The only difference from what I did 20 times before was I never did "su - slimserver" when I did it and the results from the second "./slimserver.pl" looked exactly like the first.


Thanks for the help!

stinkingpig
2005-09-11, 20:30
....

>>>>>cat /tmp/slimserver.log
>>>>>
>>>>>
>cat: /tmp/slimserver.log: No such file or directory
>
>
>
because it hadn't been run yet, the file will be there now.

>>>>>./slimserver.pl
>>>>>
>>>>>
>2005-09-11 21:11:50.8354 Your data source needs to be configured.
>Please open your web browser,
>2005-09-11 21:11:50.8358 go to the following URL, and click on the
>"Server Settings" link.
>
>2005-09-11 21:11:50.8360 The URL to access SlimServer is now:
>http://Dallas.BloomCo.Comics:9000/
>
>
>
>I checked it out in the browser and things worked this time. The only
>difference from what I did 20 times before was I never did "su -
>slimserver" when I did it and the results from the second
>"./slimserver.pl" looked exactly like the first.
>
>
>Thanks for the help!
>
>
>

My read on this is that you had first run it as root, which then made
the database and prefs files owned by root and unwritable by slimserver.

--
Jack at Monkeynoodle dot Org : It's a Scientific Venture!
"I spent all me tin with the ladies drinking gin,
so across the Western ocean I must wander." -- All for Me Grog, traditional