libperl.so
Started by: ajax26ajax26
On: 1211022010|%e %b %Y, %H:%M %Z|agohover
Number of posts: 24
rss icon RSS: New posts
libperl.so
ajax26ajax26 1211022010|%e %b %Y, %H:%M %Z|agohover

ive the following problem

firmware 2.0.18 ssh and optware

when i will install slimserver all seems okay, but when i start slimserer it fails, and in the slimserver.log i found libperl.so connot found.

how can i install libperl.so

unfold libperl.so by ajax26ajax26, 1211022010|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
martinpmartinp 1212262673|%e %b %Y, %H:%M %Z|agohover

I'm also trying to set up slimserver, and get the same message as you.
Did you get any further with your attempt?
Here are some of the things I tried:

/opt/bin/ipkg install slimserver
Package slimserver (6.5.4-10) installed in /opt/ is up to date.
Nothing to be done
Successfully terminated.

[root@nattynas /]# cd /opt/share/slimserver
[root@nattynas slimserver]# ./slimserver.pl
/opt/bin/perl: can't load library 'libperl.so'
[root@nattynas slimserver]#

A friend suggested that perl might not be correctly installed, so I tried reinstalling it.

[root@nattynas slimserver]# /opt/bin/ipkg install perl
Package perl (5.8.8-17) installed in /opt/ is up to date.
Nothing to be done
Successfully terminated.

I tried the following to verify my perl installation:

[root@nattynas ~]# perl —version

This is perl, v5.8.8 built for armv5tejl-linux

Copyright 1987-2006, Larry Wall

Perl may be copied only under the terms of either the Artistic License or the
GNU General Public License, which may be found in the Perl 5 source kit.

Complete documentation for Perl, including FAQ lists, should be found on
this system using "man perl" or "perldoc perl". If you have access to the
Internet, point your browser at http://www.perl.org/, the Perl Home Page.

I also found the file libperl.so on my system:

[root@nattynas ~]# find / -name libperl.so
/opt/lib/perl5/5.8.8/arm-linux/CORE/libperl.so

I have also tried running another perl script and get the same error:
[root@nattynas ~]# ./testscript.pl
/opt/bin/perl: can't load library 'libperl.so'

Like you I'm at a loss. I'd be grateful for any advice anyone can offer.
Thanks,
Martin

unfold Re: libperl.so by martinpmartinp, 1212262673|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
alephsmithalephsmith 1212274710|%e %b %Y, %H:%M %Z|agohover

perl is already installed on you mbwe you don't need to use an optware package. it is located at /usr/local/bin/perl.

Remove the optware version, then make sure you perl scripts point to the correct path for the interpreter.

unfold Re: libperl.so by alephsmithalephsmith, 1212274710|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
bzhoubzhou 1212334827|%e %b %Y, %H:%M %Z|agohover

To understand why optware perl cannot find libperl.so and potential workaround, see
http://mybookworld.wikidot.com/forum/t-60807#post-170377

last edited on 1212334850|%e %b %Y, %H:%M %Z|agohover by bzhou + show more
unfold Re: libperl.so by bzhoubzhou, 1212334827|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
martinpmartinp 1212849749|%e %b %Y, %H:%M %Z|agohover

Many thanks, that did solve the problem. (I entered "export LD_LIBRARY_PATH=/opt/lib:/opt/lib/perl5/5.8.8/arm-linux/CORE")
Of course I now get a new set of errors! These still seem to be perl related.

I ran
"/opt/bin/slimserver start"
This command gives the error "Starting SlimServerSlimserver failed to run. Return value: 0."

looking in /home/slimserver/slimserver.log, it says (quote marks " are mine):

"Can't locate auto/Compress/Zlib/autosplit.ix in @INC (@INC contains: /opt/share/slimserver/CPAN/arch/5.8/arm-linux /opt/share/slimserver/CPAN/arch/5.8/arm-linux/auto /opt/share/slimserver/CPAN/arch/5.8.8/arm-linux /opt/share/slimserver/CPAN/arch/5.8.8/arm-linux/auto /opt/share/slimserver/CPAN/arch/5.8/arm-linux /opt/share/slimserver/CPAN/arch/5.8/arm-linux/auto /opt/share/slimserver/CPAN/arch/arm-linux /opt/share/slimserver/lib /opt/share/slimserver/CPAN /opt/share/slimserver /opt/share/slimserver /opt/lib/perl5/5.8.8/arm-linux /opt/lib/perl5/5.8.8 /opt/lib/perl5/site_perl/5.8.8/arm-linux /opt/lib/perl5/site_perl/5.8.8 /opt/lib/perl5/site_perl .) at /opt/lib/perl5/5.8.8/AutoLoader.pm line 160.
at /opt/share/slimserver/CPAN/Compress/Zlib.pm line 15
The following modules failed to load: DBD::mysql

To download and compile them, please run: /opt/share/slimserver/Bin/build-perl-modules.pl DBD::mysql

Exiting.."

So I tried running the command as it suggests. Here is what I got:

"[root@nattynas /]# /opt/share/slimserver/Bin/build-perl-modules.pl DBD::mysql
/opt/share/slimserver/Bin/build-perl-modules.pl: line 12: use: command not found
/opt/share/slimserver/Bin/build-perl-modules.pl: line 13: syntax error near unexpected token ‘(’
/opt/share/slimserver/Bin/build-perl-modules.pl: line 13: ‘use lib qw(/usr/local/slimserver/CPAN CPAN);’
"

Lines 12 and 13 in this script are:

12 use strict;
13 use lib qw(/usr/local/slimserver/CPAN CPAN);

I thought "use strict;" was absolutely standard perl. Why would it trip up over this?

Some background info:
I re-imaged the disk according to instructions here: http://mybookworld.wikidot.com/rescue-procedure
log in to web interface and follow the initial setup wizard (set up admin user, password, and confirm time settings)
Change name from default (which is MyBookWorld)
enable SSH access using the instructions on http://martin.hinner.info/mybook/
disable mionet (instructions on same site)
install optware following http://mybookworld.wikidot.com/optware
then
[root@nattynas ~]# /opt/bin/ipkg install slimserver

One slight niggle I have is that before installing slimserver I searched for perl:
"[root@nattynas /]# find / -name perl
/usr/local/bin/perl"

After installing slimserver I get:
[root@nattynas mysql]# find / -name perl
/opt/bin/perl
/usr/local/bin/perl

So it looks as though there are now two versions of perl installed. Could that be the problem?

TIA,
Martin

unfold Re: libperl.so by martinpmartinp, 1212849749|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
martinpmartinp 1212863095|%e %b %Y, %H:%M %Z|agohover

I've now got past this problem. Slimserver requires mysql and I noticed that this wasn't running. I got it running (by adding /opt/lib/mysql to /etc/ld.so.conf and running ldconfig, then starting mysql).
Slimserver now starts but doesn't work, producing an error "Can't locate auto/Compress/Zlib/autosplit.ix in @INC" in the slimserver.log file. I haven't chased this yet and may be better doing so in a slimserver forum. I will update this if I get it working.
Thanks for the hints.
Martin

unfold Re: libperl.so by martinpmartinp, 1212863095|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
fraterfrater 1212866302|%e %b %Y, %H:%M %Z|agohover

That seems to be a perl module missing or not up to date.
I don't own a worldbook (yet). I expect it to arrive on monday.
In the mean time I've hacked the harddisk of a friend of mine and have successfully installed some packages…..

I noticed there's cpan on this linux box….
But I'm not sure it's advisable to use it.
I didn't see any posts about it as of yet

Your problems might be over after updating the perl module Compress::Zlib

I just started cpan and in a 2nd terminal I installed ncftp…..
I'm getting to the console, but I don't want to install/update anything yet.
Maybe someone else who is actively using cpan on this box can comment…

of course you could be brave and see if your problems are over after installing Compress::Zlib

cpan> install Compress::Zlib

unfold Re: libperl.so by fraterfrater, 1212866302|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
martinpmartinp 1214102502|%e %b %Y, %H:%M %Z|agohover

Thanks for the advice, I have now got round to looking at this again. I am not brave but I do have a spare hard disk.
cpan didn't work, but I searched cpan.org for Compress::Zlib and downloaded it to a temporary directory.
I expanded it using
tar -zxvf Compress-Zlib-2.011.tar.gz
then entered the directory using
cd Compress-Raw-Zlib-2.011
and read the readme. This listed several prerequisites which I installed in exactly the same way. For example one of them was IO-Compress-Base-2.011. Here are the commands I used:
wget http://search.cpan.org/CPAN/authors/id/P/PM/PMQS/IO-Compress-Base-2.011.tar.gz
tar -zxvf IO-Compress-Base-2.011.tar.gz
cd IO-Compress-Base-2.011
perl Makefile.PL
make
make test
make install
(I was just following the instructions in the readme.)
I kept on installing prerequisites until I could install Compress::Zlib which I then did.
Then I ran /opt/bin/slimserver start and looked in the slimserver.log file. The autosplit.ix error was no longer reported! So I carried on searching cpan or elsewhere on the web, installing each module that the log file reported as missing, running slimserver after each one. The errors in the log file got shorter in a satisfying way:
------—(start of log file)
The following modules failed to load: DBD::mysql DBI XML::Parser::Expat HTML::Parser Digest::SHA1 YAML::Syck

To download and compile them, please run: /opt/share/slimserver/Bin/build-perl-modules.pl DBD::mysql DBI XML::Parser::Expat HTML::Parser Digest::SHA1 YAML::Syck

Exiting..
The following modules failed to load: XML::Parser::Expat HTML::Parser Digest::SHA1 YAML::Syck

To download and compile them, please run: /opt/share/slimserver/Bin/build-perl-modules.pl XML::Parser::Expat HTML::Parser Digest::SHA1 YAML::Syck

Exiting..
The following modules failed to load: HTML::Parser Digest::SHA1 YAML::Syck

To download and compile them, please run: /opt/share/slimserver/Bin/build-perl-modules.pl HTML::Parser Digest::SHA1 YAML::Syck

Exiting..
The following modules failed to load: Digest::SHA1 YAML::Syck

To download and compile them, please run: /opt/share/slimserver/Bin/build-perl-modules.pl Digest::SHA1 YAML::Syck

Exiting..
The following modules failed to load: YAML::Syck

To download and compile them, please run: /opt/share/slimserver/Bin/build-perl-modules.pl YAML::Syck
-----—(end of log file)
However this last error is not going away even after installing YAML::Syck. This seems to have installed. There were no instructions in the readme, but there was a Makefile.PL file present so I followed the same process as before. Here's what appeared on the screen:

===============(start of screen)

wget http://search.cpan.org/CPAN/authors/id/A/AU/AUDREYT/YAML-Syck-1.05.tar.gz
Connecting to search.cpan.org[84.45.68.23]:80
YAML-Syck-1.05.tar.g 100% |*********| 141 KB 00:00:00 ETA
[root@nattynas temp]# tar -zxvf YAML-Syck-1.05.tar.gz
[root@nattynas temp]# cd YAML-Syck-1.05
[root@nattynas YAML-Syck-1.05]# perl Makefile.PL

* WARNING *

YAML::Syck version >=0.60 breaks compatibility with earlier versions of
YAML::Syck and YAML.pm (<0.60) when serializing blessed references.

See the COMPATIBILITY file for more information.

Checking if your kit is complete…
Looks good
Writing Makefile for YAML::Syck
[root@nattynas YAML-Syck-1.05]# make
cp lib/JSON/Syck.pm blib/lib/JSON/Syck.pm
cp lib/YAML/Loader/Syck.pm blib/lib/YAML/Loader/Syck.pm
cp lib/YAML/Dumper/Syck.pm blib/lib/YAML/Dumper/Syck.pm
cp lib/YAML/Syck.pm blib/lib/YAML/Syck.pm
cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fpic "-I/usr/local/lib/perl5/5.8.8/armv5tejl-linux/CORE" bytecode.c
cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fpic "-I/usr/local/lib/perl5/5.8.8/armv5tejl-linux/CORE" emitter.c
cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fpic "-I/usr/local/lib/perl5/5.8.8/armv5tejl-linux/CORE" gram.c
cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fpic "-I/usr/local/lib/perl5/5.8.8/armv5tejl-linux/CORE" handler.c
cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fpic "-I/usr/local/lib/perl5/5.8.8/armv5tejl-linux/CORE" implicit.c
cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fpic "-I/usr/local/lib/perl5/5.8.8/armv5tejl-linux/CORE" node.c
cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fpic "-I/usr/local/lib/perl5/5.8.8/armv5tejl-linux/CORE" syck_.c
cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fpic "-I/usr/local/lib/perl5/5.8.8/armv5tejl-linux/CORE" syck_st.c
cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fpic "-I/usr/local/lib/perl5/5.8.8/armv5tejl-linux/CORE" token.c
/usr/local/bin/perl "-Iinc" /usr/local/lib/perl5/5.8.8/ExtUtils/xsubpp -typemap /usr/local/lib/perl5/5.8.8/ExtUtils/typemap Syck.xs > Syck.xsc && mv Syck.xsc Syck.c
cc -c -I. -fno-strict-aliasing -pipe -Wdeclaration-after-statement -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -O2 -DVERSION=\"1.05\" -DXS_VERSION=\"1.05\" -fpic "-I/usr/local/lib/perl5/5.8.8/armv5tejl-linux/CORE" Syck.c
Running Mkbootstrap for YAML::Syck ()
chmod 644 Syck.bs
rm -f blib/arch/auto/YAML/Syck/Syck.so
cc -shared bytecode.o emitter.o gram.o handler.o implicit.o node.o syck_.o syck_st.o token.o Syck.o -o blib/arch/auto/YAML/Syck/Syck.so
chmod 755 blib/arch/auto/YAML/Syck/Syck.so
cp Syck.bs blib/arch/auto/YAML/Syck/Syck.bs
chmod 644 blib/arch/auto/YAML/Syck/Syck.bs
[root@nattynas YAML-Syck-1.05]# make test
PERL_DL_NONLAZY=1 /usr/local/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'inc', 'blib/lib', 'blib/arch')" t/*.t
t/1-basic……………….ok
t/11-loadfile……………ok
t/12-dumpfile……………ok
t/2-scalars……………..ok
t/3-objects……………..ok
t/4-perl_tag_scheme………ok
t/json-basic…………….ok
t/json-circular-ref………ok
t/json-crlf……………..ok
t/json-empty…………….ok
t/json-indent……………ok
t/json-minus…………….ok
t/json-newline…………..ok
t/json-null……………..ok
t/json-refs……………..ok
t/json-singlequote……….ok
t/leak………………….ok
11/11 skipped: Devel::Leak not installed
t/yaml-blessed-ref……….ok
t/yaml-implicit-warnings….ok
t/yaml-tie………………ok
All tests successful, 11 subtests skipped.
Files=20, Tests=251, 29 wallclock secs (24.95 cusr + 2.46 csys = 27.41 CPU)
[root@nattynas YAML-Syck-1.05]# make install
Installing /usr/local/lib/perl5/site_perl/5.8.8/armv5tejl-linux/auto/YAML/Syck/Syck.so
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/local/lib/perl5/site_perl/5.8.8/armv5tejl-linux/auto/YAML/Syck/.packlist
Appending installation info to /usr/local/lib/perl5/5.8.8/armv5tejl-linux/perllocal.pod

=============(end of screen)

It seems to have installed, but when I run /opt/bin/slimserver start
the log file still produces the same error.
[root@nattynas YAML-Syck-1.05]# /opt/bin/slimserver start
Starting SlimServerSlimserver failed to run. Return value: 0.
slimserver.log reports:
The following modules failed to load: YAML::Syck

To download and compile them, please run: /opt/share/slimserver/Bin/build-perl-modules.pl YAML::Syck

Exiting..

I have since installed Devel::Leak (mentioned during make test) but the same error is still reported in the log.
Once again I'd be grateful for any pointers to what I'm doing wrong.
Thanks,
Martin

unfold Re: libperl.so by martinpmartinp, 1214102502|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
seedoubleyouseedoubleyou 1216737532|%e %b %Y, %H:%M %Z|agohover

without getting fancy with CPAN, I instead tried this and I got farther:

ipkg update

ipkg install slimserver (to install the latest and greatest build)

ipkg install perl-module-build

ipkg install perl-dbd-mysql

now when I try to do a 'slimserver start'

I get a seg fault and:

Slimserver failed to run. Return value: 139.

This fixed the above error you all were getting, but it now gets me here… ideas? Not enough juice in the MBW to run slimserver?

unfold Re: libperl.so by seedoubleyouseedoubleyou, 1216737532|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
martinpmartinp 1216917542|%e %b %Y, %H:%M %Z|agohover

I'm away from home at the moment so can't try what you suggest. However you should find some clues in the slimserver.log file (I think it's /home/slimserver/slimserver.log).
I did make some progress after my ealier post, by telling it to use the perl that is installed with slimserver (which is /opt/bin/perl), not the perl originally installed with MBW (which is /usr/local/bin/perl, I think). So in my earlier post above, I entered:
perl Makefile.PL
but I had a lot better results with:
/opt/bin/perl Makefile.PL

However although slimserver did start, it later stopped. The slimserver.log file said:
Bad size in /opt/share/slimserver/Graphics/medium.2.font.bmp
Can't use an undefined value as an ARRAY reference at /opt/share/slimserver/Slim/Display/Lib/Fonts.pm line 543.

This seems to be something to do with graphics and text, so I tried installing gdlib but this didn't help. I read that it's possible to run slimserver without gd, but haven't yet figured out how.

unfold Re: libperl.so by martinpmartinp, 1216917542|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
bzhoubzhou 1217268424|%e %b %Y, %H:%M %Z|agohover

It's a problem with cross compiled perl in optware. The byteorder setting in config.sh was wrong. The corrected perl ipkg (when it gets to the feed) will be 5.8.8-18.

unfold Re: libperl.so by bzhoubzhou, 1217268424|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
seedoubleyouseedoubleyou 1217373851|%e %b %Y, %H:%M %Z|agohover

Performed an ipkg update and an ipkg upgrade this evening, which did grab the above updated perl package, and it appears to be working, albeit slowly. Slimserver.log seems to be happy, and netstat -an shows it is listening on 9000. I can connect to the slimserver on the MBWE! Now to just figure out how to make it faster!

last edited on 1217374084|%e %b %Y, %H:%M %Z|agohover by seedoubleyou + show more
unfold Re: libperl.so by seedoubleyouseedoubleyou, 1217373851|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
martinpmartinp 1219001211|%e %b %Y, %H:%M %Z|agohover

I have tried the procedure you mention but haven't got it working. Here's what I did:
ipkg update
ipkg install slimserver (to install the latest and greatest build)
ipkg install perl-module-build
ipkg install perl-dbd-mysql
ipkg update
ipkg upgrade
However when I type /opt/bin/slimserver start, I get this:
Slimserver failed to run. Return value: 139.
Do you know what I'm doing wrong?
Thanks,
Martin

unfold Re: libperl.so by martinpmartinp, 1219001211|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so
seedoubleyouseedoubleyou 1219433020|%e %b %Y, %H:%M %Z|agohover

try running '/opt/etc/init.d/S99Slimserver start' instead of running the exact binary… there are command-line args passed that way that worked to me

the app turned my MBWE into a slow slug though, so don't expect miracles…

unfold Re: libperl.so by seedoubleyouseedoubleyou, 1219433020|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so Update?
canuckskicanuckski 1225425671|%e %b %Y, %H:%M %Z|agohover

All:
I've followed the procedure that was listed by martinp, and to no surprise I get exactly the same error.
Note:
1) I using the perl executable found under /opt/bin
2) libperl.so is found as LD_LIBRARY_PATH is set
3) Ran the S99Slimserver script, which is BTW identical to the /opt/bin/slimserver script.
4) If using the perl version located under /usr/local, exactly the error is produced.

But somewhere the slimserver is seg faulting as the following error is produced:
Segmentation fault
Slimserver failed to run. Return value: 139.

The slimserver.log produces nothing.

Any ideas from anyone on what magic seedoubleyou did in order to get his version working?
I assume the perl "fix" mentioned by bzhou has long since propagated into the repository.

Or is the performance simply so poor that everyone gave up on using this little box as a slimserver?

Thanks from Canada

unfold Re: libperl.so Update? by canuckskicanuckski, 1225425671|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so Update?
martinpmartinp 1225694690|%e %b %Y, %H:%M %Z|agohover

Thanks for getting in touch. I haven't done much with this lately but I did make a bit more progress, but not enough to get it working I'm afraid. I got slimserver running and the web page displaying, but it wouldn't index the music (or play it).
I have the history of my efforts which I paste below, sorry it's a mess. I remember there was a problem with permissions but can't remember the details. I will have a look at the problem again and also the links I collected. However I have broken all the electronics at home and only fixed a few of them so it may be a week or two.
Martin

Here are my notes and history:
from http://forums.slimdevices.com/showthread.php?t=39671&page=3
Mysqld should be in /opt/share/ss65/Bin
so: cp /opt/share/slimserver/Bin /opt/share/ss65/Bin/ -r

This allows slimserver to start and the web interface is visible

workstation history:

1 vi /etc/inittab
2 wget http://mybookworld.wikidot.com/local--files/optware/setup-optware.sh
3 sh setup-optware.sh
4 less /etc/ld.so.conf
5 echo "/opt/lib" »/etc/ld.so.conf
6 ldconfig
7 ldconfig -v
8 /opt/bin/ipkg update
9 ipkg upgrade
10 /opt/bin/ipkg upgrade
11 /opt/bin/ipkg install slimserver
12 /opt/bin/ipkg install perl-module-build
13 /opt/bin/ipkg install perl-dbd-mysql
14 /opt/bin/ipkg update
15 /opt/bin/ipkg upgrade
16 /opt/bin/slimserver start
17 export LD_LIBRARY_PATH=/opt/lib:/opt/lib/perl5/5.8.8/arm-linux/CORE
18 /opt/bin/slimserver start
19 perl —version
20 /opt/bin/ipkg install perl
21 /opt/bin/ipkg install perl
22 netstat -nl
23 vi /etc/init.d/post_network_start.sh
24 netstat -an
25 /opt/bin/ipkg install perl
26 find / -name perl*
27 echo $PATH
28 vi .bash_profile
29 ls
30 pwd
31 cd
32 pwd
33 ls
34 /opt/bin/slimserver start
35 find /usr/local -name perl*
36 echo $PATH
37 PATH=$(echo $PATH | sed -e 's;:\?/usr/local/bin;;' -e 's;/usr/local/bin:\?;;')
38 echo $PATH
39 /opt/bin/slimserver start
40 pwd
41 echo $PATH
42 find / -name perl*
43 /opt/bin/slimserver start
44 mysqld
45 find / -name mysqld*
46 /opt/share/slimserver/Bin/mysqld
47 /opt/bin/slimserver status
48 /opt/bin/slimserver status
49 /opt/bin/slimserver status
50 /opt/bin/slimserver status
51 /opt/bin/slimserver status
52 /opt/bin/slimserver status
53 /opt/bin/ipkg install init
54 vi /etc/inittab
55 wget http://mybookworld.wikidot.com/local--files/optware/setup-optware.sh
56 sh setup-optware.sh
57 less /etc/ld.so.conf
58 echo "/opt/lib" »/etc/ld.so.conf
59 ldconfig
60 ldconfig -v
61 /opt/bin/ipkg update
62 ipkg upgrade
63 /opt/bin/ipkg upgrade
64 /opt/bin/ipkg install slimserver
65 /opt/bin/ipkg install perl-module-build
66 /opt/bin/ipkg install perl-dbd-mysql
67 /opt/bin/ipkg update
68 /opt/bin/ipkg upgrade
69 /opt/bin/slimserver start
70 export LD_LIBRARY_PATH=/opt/lib:/opt/lib/perl5/5.8.8/arm-linux/CORE
71 /opt/bin/slimserver start
72 perl —version
73 /opt/bin/ipkg install perl
74 /opt/bin/ipkg install perl
75 netstat -nl
76 vi /etc/init.d/post_network_start.sh
77 netstat -an
78 /opt/bin/ipkg install perl
79 find / -name perl*
80 echo $PATH
81 vi .bash_profile
82 ls
83 pwd
84 cd
85 pwd
86 ls
87 /opt/bin/slimserver start
88 find /usr/local -name perl*
89 echo $PATH
90 PATH=$(echo $PATH | sed -e 's;:\?/usr/local/bin;;' -e 's;/usr/local/bin:\?;;')
91 echo $PATH
92 /opt/bin/slimserver start
93 pwd
94 echo $PATH
95 find / -name perl*
96 /opt/bin/slimserver start
97 mysqld
98 find / -name mysqld*
99 /opt/share/slimserver/Bin/mysqld
100 /opt/bin/slimserver status
101 /opt/bin/slimserver status
102 /opt/bin/slimserver status
103 /opt/bin/slimserver status
104 /opt/bin/slimserver status
105 /opt/bin/slimserver status
106 /opt/bin/ipkg install init
107 /opt/bin/slimserver start
108 historyt
109 history
110 vi /etc/ld.so.conf
111 ldconfig
112 /opt/bin/slimserver start
113 export LD_LIBRARY_PATH=/opt/lib:/opt/lib/perl5/5.8.8/arm-linux/CORE
114 /opt/bin/slimserver start
115 netstat -an
116 netstat -an | grep 9000
117 /opt/bin/slimserver start
118 netstat -an | grep 9000
119 /opt/bin/slimserver status
120 netstat -an | grep 9000
121 /opt/bin/slimserver status
122 rm /home/slimserver/slimserver.log
123 rm /home/slimserver/slimserver.log
124 /opt/bin/slimserver start
125 /opt/bin/slimserver status
126 netstat -an | grep 9000
127 /opt/bin/slimserver start
128 export LD_LIBRARY_PATH=/opt/lib:/opt/lib/perl5/5.8.8/arm-linux/CORE
129 /opt/bin/slimserver start
130 /opt/bin/slimserver start
131 netstat -nl
132 /opt/bin/slimserver status
133 /opt/bin/slimserver start
134 netstat -nl
135 netstat -na
136 rm /home/slimserver/slimserver.log
137 /opt/bin/slimserver status
138 /opt/bin/slimserver start
139 /opt/bin/slimserver status
140 /opt/bin/slimserver status
141 md /opt/share/ss65
142 ls /opt/share/ss65
143 mkdir /opt/share/ss65
144 mkdir /opt/share/ss65/server
145 mkdir /opt/share/ss65/server/Bin
146 find / -name mysqld
147 cp /opt/share/slimserver/Bin/mysqld
148 cp /opt/share/slimserver/Bin/mysqld /opt/share/ss65/server/Bin
149 /opt/bin/slimserver start
150 rm /home/slimserver/slimserver.log
151 rm -r /opt/share/ss65/server
152 mkdir /opt/share/ss65/Bin
153 cp /opt/share/slimserver/Bin/mysqld /opt/share/ss65/Bin/
154 /opt/bin/slimserver start
155 netstat -nl
156 /opt/bin/slimserver status
157 /opt/bin/slimserver start
158 netstat -nl
159 netstat -na
160 find / -name mysqld
161 ls /opt/share/slimserver/Bin/mysqld
162 ls /opt/share/slimserver/Bin
163 cp /opt/share/slimserver/Bin /opt/share/ss65/Bin/
164 cp /opt/share/slimserver/Bin /opt/share/ss65/Bin/ -r
165 cp /opt/share/slimserver/Bin /opt/share/ss65/Bin
166 ls /opt/share/ss65/Bin
167 cd /opt/share/ss65/Bin
168 ls
169 cd Bin/
170 ls
171 mv * ../
172 ls
173 cd ..
174 ls
175 rm Bin/
176 ls
177 rmdir Bin/
178*
179 rm /home/slimserver/slimserver.log
180 /opt/bin/slimserver start
181 /opt/bin/slimserver start
182 /opt/bin/slimserver status
183 /opt/bin/slimserver start
184 netstat -nl
185 netstat -na
186 chmod 777 /opt/share/ss65/Bin/
187 /opt/bin/slimserver start
188 /opt/bin/slimserver status
189 /opt/bin/slimserver start
190 /opt/bin/slimserver start
191 /opt/bin/slimserver status
192 rm /home/slimserver/slimserver.log
193 ls -l /opt/share/ss65/Bin/
194 rm /opt/share/ss65/Bin/
195 rm /opt/share/ss65/Bin/mysqld
196 cp /opt/libexec/mysqld /opt/share/ss65/Bin/
197 ls -l /opt/share/ss65/Bin/
198 chmod 777 /opt/share/ss65/Bin/*
199 ls -l /opt/share/ss65/Bin/
200 /opt/bin/slimserver start
201 /opt/bin/slimserver status
202 netstat -nl
203 netstat -na
204 /opt/bin/slimserver status
205 chmod a=rwx -R /opt/var
206 ls -l /opt/bar
207 ls -l /opt/var
208 /opt/bin/slimserver start
209 /opt/bin/slimserver status
210 netstat -nl
211 netstat -na
212 chmod 777 /home/slimserver/cache/my.conf
213 chmod 777 /home/slimserver/cache/my.cnf
214 rm /home/slimserver/slimserver.log
215 /opt/bin/slimserver status
216 /opt/bin/slimserver start
217 cd /opt/share/ss65/
218 ls
219 find / -name slimserver.pl
220 cd ..
221 ls
222 cd ss65/
223 ls
224 cd Bin/
225 ls
226 rm /home/slimserver/slimserver.log
227 cp /opt/share/slimserver/slimserver.pl /opt/share/ss65/
228 cd ..
229 ./slimserver.pl —user slimserver —prefsfile /home/slimserver/slimserver.pref —cachedir /home/slimserver —d_server —d_scan —d_startup —d_mysql
230 find / -name slimserver.pl
231 cd /opt/share/slimserver/
232 ls
233 ./slimserver.pl —user slimserver —prefsfile /home/slimserver/slimserver.pref —cachedir /home/slimserver —d_server —d_scan —d_startup —d_mysql

back to original disk
/opt/bin/slimserver start - 139 error
./slimserver.pl —user slimserver —prefsfile /home/slimserver/slimserver.pref —cachedir /home/slimserver —d_server —d_scan —d_startup —d_mysql - didn't work, segmentation fault.
cd to /opt/share/slimserver - didn't work
export LD_LIBRARY_PATH=/opt/lib:/opt/lib/perl5/5.8.8/arm-linux/CORE - same problem
echo "/opt/lib/mysql" »/etc/ld.so.conf followed by ldconfig - this helped

Slimserver now loads, and web interface is visible on port 9000. However when the rescan button is pressed this appears on the console:
2008-03-21 21:43:27.8634 Setup::rescan - initiating scan of type: [rescan]
/opt/bin/perl: can't load library 'libperl.so'
2008-03-21 21:43:30.6583 commit ineffective with AutoCommit enabled at /opt/share/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 706.
2008-03-21 21:43:30.6877 Commmit ineffective while AutoCommit is on at /opt/share/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 706.
2008-03-21 21:43:30.7366 ERROR: DBD::mysql::db commit failed: Commmit ineffective while AutoCommit is on at /opt/share/slimserver/CPAN/DBIx/Class/Storage/DBI.pm line 706.

2008-03-21 21:43:30.7792 ERROR: Backtrace follows:

2008-03-21 21:43:30.9423 Backtrace:

frame 0: Slim::Schema::throw_exception (/opt/share/slimserver/CPAN/DBIx/Class/Schema.pm line 606)
frame 1: DBIx::Class::Schema::txn_do (/opt/share/slimserver/Slim/Music/Import.pm line 241)
frame 2: (eval) (/opt/share/slimserver/Slim/Music/Import.pm line 233)
frame 3: Slim::Music::Import::setIsScanning (/opt/share/slimserver/Slim/Music/Import.pm line 152)
frame 4: Slim::Music::Import::launchScan (/opt/share/slimserver/Slim/Control/Commands.pm line 1725)
frame 5: Slim::Control::Commands::rescanCommand (/opt/share/slimserver/Slim/Control/Request.pm line 1483)
frame 6: (eval) (/opt/share/slimserver/Slim/Control/Request.pm line 1483)
frame 7: Slim::Control::Request::execute (/opt/share/slimserver/Slim/Control/Request.pm line 772)
frame 8: Slim::Control::Request::executeRequest (/opt/share/slimserver/Slim/Web/Setup.pm line 1446)
frame 9: Slim::Web::Setup::ANON (/opt/share/slimserver/Slim/Web/Setup.pm line 2928)
frame 10: Slim::Web::Setup::processChanges (/opt/share/slimserver/Slim/Web/Setup.pm line 2682)
frame 11: Slim::Web::Setup::setup_HTTP (/opt/share/slimserver/Slim/Web/HTTP.pm line 843)
frame 12: Slim::Web::HTTP::generateHTTPResponse (/opt/share/slimserver/Slim/Web/HTTP.pm line 709)
frame 13: Slim::Web::HTTP::processURL (/opt/share/slimserver/Slim/Web/HTTP.pm line 555)
frame 14: Slim::Web::HTTP::processHTTP (/opt/share/slimserver/Slim/Networking/Select.pm line 238)
frame 15: (eval) (/opt/share/slimserver/Slim/Networking/Select.pm line 238)
frame 16: Slim::Networking::Select::select (./slimserver.pl line 499)
frame 17: main::idle (./slimserver.pl line 452)
frame 18: main::main (./slimserver.pl line 1076)

I read something that suggested loading slimserver without plugins. You can do this from the web interface.

unfold Re: libperl.so Update? by martinpmartinp, 1225694690|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so Update?
canuckskicanuckski 1226453057|%e %b %Y, %H:%M %Z|agohover

This seems to be a perl/mysql library version incompatibility problem. When running with the following flags for debugging:
slimserver.pl -user slimserver —prefsfile /home/slimserver/slimserver.pref —cachedir /home/slimserver —d_server —d_scan

The resulting output is:
Module [DBD::mysql] failed to load: [DBD::mysql object version 4.006 does not match bootstrap parameter 3.0002 at /opt/lib/perl5/5.8.8/arm-linux/DynaLoader.pm line 253.

The error very similar (I'd say it is the same) to the error one finds in the slimserver.log file when a "rescan" of files in initiated:

Module [DBD::mysql] failed to load: [Can't load '/opt/share/slimserver/CPAN/arch/5.8.8/arm-linux/auto/DBD/mysql/mysql.so' for module DBD::mysql: Unknown error - dlerror() not implemented at /opt/lib/perl5/5.8.8/arm-linux/DynaLoader.pm line 230.

Note:
/opt/share/slimserver/CPAN/arch/5.8.8/arm-linux/auto/DBD/mysql/mysql.so is supplied by the slimserver.
But the same library is also supplied by perl installed using ipkg,
/opt/lib/perl5/site_perl/5.8.8/arm-linux/auto/DBD/mysql/mysql.so

So I logically linked the slimserver mysql lib to the library defined under perl, but I still get the same error.

Additionally, there is also incompatibilities with the perl XML parser:

/opt/share/slimserver/CPAN/arch/5.8.8/arm-linux/auto/XML/Parser/Expat/Expat.so

(This files looks to identical to the supplied with perl, /opt/lib/perl5/site_perl/5.8.8/arm-linux/auto/XML/Parser/Expat/Expat.so ).

Otherwise the slimserver seems to do everything correctly. The database is created and the proper tables are also created.
Note: The slimserver supplies its own mysqld, thus the ipkg is not required. It runs on a non-standard port and can
be accessed using:

mysql -h 127.0.0.1 -P 9092

Anyone have any other thoughts about what seems to be "shipped" incompatibilities with perl?

Thanks.

unfold Re: libperl.so Update? by canuckskicanuckski, 1226453057|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so Update?
canuckskicanuckski 1226455785|%e %b %Y, %H:%M %Z|agohover

A little more progress. ——> SUCCESS, SEE BELOW
According to this post on the slimdevices site:

http://forums.slimdevices.com/showthread.php?t=27735

The LD_LIBRARY_PATH is not passed to a child thread under Perl. The finding of music
uses the scanner.pl script, which is spawned as child of slimserver.pl.
Thus, the LD_LIBRARY_PATH is not available to it.
This can be solved by putting the required paths into ld.so.conf:
/opt/lib
/opt/lib/perl5/5.8.8/arm-linux/CORE
/opt/lib/mysql

followed by ldconfig -v

-- SUCCESS!!!!!! --——
Althought DBD::mysql fails to load on the first try, with the PATHS set under ld.so.conf
it successfully loads on the second try.
Try one gives the DBD::mysql object version 4.006 does not match error, BUT
the second attempt is successful.

I try scanning a small directory (a single album) and it worked!!!
Now it is time to try it on my full mp3 library.

I hope this helps others who want to use the MyBook NAS as a Slimserver.

Regards from Canada

unfold Re: libperl.so Update? by canuckskicanuckski, 1226455785|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so Update?
nielshanielsha 1243258949|%e %b %Y, %H:%M %Z|agohover

Did this work?

Is it possile, that you could make a step-by-spet guide on how to make MBWE run the slimserver and thereby use it together with Squeezebox Duet?

unfold Re: libperl.so Update? by nielshanielsha, 1243258949|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so Update?
martinpmartinp 1243930706|%e %b %Y, %H:%M %Z|agohover

Hi - Yes I did get it working. It can be a little slow browsing the music, but when playing it's fine. The Squeezebox Classic works with Slimserver, at least the ones that I have do. The main drawback is that when I bought a Squeezebox Boom it won't work with Slimserver, it requires Squeezecenter. I'm not sure whether this is also true for the Duet, as I don't have one.
I haven't got Squeezecenter going on the MyBook, I did try and it didn't work but I haven't investigated.

Here's how I got Slimserver working (thanks to everyone who gave or published advice):

Remove the hard drive from the MyBook (http://martin.hinner.info/mybook/)

I re-imaged my hard drive (http://mybookworld.wikidot.com/rescue-procedure)
I think this gets you back to the MyBook's "new" state, more or less.

Go through initial setup of MyBook

enable ssh (I also disabled mionet): http://martin.hinner.info/mybook/

enable optware: http://mybookworld.wikidot.com/optware

(including the step to add export LD_LIBRARY_PATH=/opt/lib to /root/.bashrc)

Then run these commands:

/opt/bin/ipkg update
/opt/bin/ipkg install slimserver
/opt/bin/ipkg install perl-module-build
/opt/bin/ipkg install perl-dbd-mysql
/opt/bin/ipkg update
/opt/bin/ipkg upgrade (it says there is nothing to be done)
echo "/opt/lib/mysql" »/etc/ld.so.conf
echo "/opt/lib/perl5/5.8.8/arm-linux/CORE" »/etc/ld.so.conf
ldconfig -v

then run /opt/bin/slimserver start
Although this reported starting, it didn't listen on port 9000 and wasn't in fact running properly.
/home/slimserver/slimserver.log contained the following:
warning: World-writable config file /home/slimserver/cache/my.cnf is ignored

In other words it is complaining that my.cnf is world-writable and refuses to start because of that. So:

chmod 664 /home/slimserver/cache/my.cnf

You may also need to delete the file /home/slimserver/slimserver.pid

/opt/bin/slimserver start
This time it is working (you can see it listening on port 9000 if you type netstat -na)
In a web browser, go to http://mybookaddress:9000, click on "Server settings", enter the location of your music and rescan.

unfold Re: libperl.so Update? by martinpmartinp, 1243930706|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so Update?
trouty00trouty00 1244464504|%e %b %Y, %H:%M %Z|agohover

I've been trying to follow this guide above but continue to get errors I am unable to start from a clean disk but cant imagine thats causing problems if i'm following al the steps. I have tried it a few times and have just noticed that when installing slimserver it does go off and install versions of perl and mysql, with this is mind is it still required to install the sql and perl packages as you detail?

I was getting error 16 untill i ran the follwing mentioned above (I entered "export LD_LIBRARY_PATH=/opt/lib:/opt/lib/perl5/5.8.8/arm-linux/CORE

but now i get error 139 segmentation fault and nothing in the log.

I attempted to try this line 'cp /opt/share/slimserver/Bin /opt/share/ss65/Bin/ -r' but it tells me that the ss65 folder does not exist?

any ideas??

[root@MyBookWorld bin]# /opt/bin/ipkg install slimserver
Installing slimserver (6.5.4-13) to /opt/…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/slimserver_6.5.4-13_arm.ipk
Installing perl (5.8.8-20) to /opt/…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/perl_5.8.8-20_arm.ipk
Installing mysql (4.1.22-3) to /opt/…
Downloading http://ipkg.nslu2-linux.org/feeds/optware/gumstix1151/cross/unstable/mysql_4.1.22-3_arm.ipk
Configuring mysql
Starting MySQL. SUCCESS!
Configuring perl
Configuring slimserver
Enter SLIMSERVER_HOME location [/home/slimserver]: /home/slimserver
Successfully terminated.

unfold Re: libperl.so Update? by trouty00trouty00, 1244464504|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so Update?
martinpmartinp 1244755872|%e %b %Y, %H:%M %Z|agohover

For me, the thing that got me past the 139 error was adding /opt/lib/mysql to the file ld.so.conf:

echo "/opt/lib/mysql" »/etc/ld.so.conf
followed by ldconfig

Martin

unfold Re: libperl.so Update? by martinpmartinp, 1244755872|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so Update?
trouty00trouty00 1244822789|%e %b %Y, %H:%M %Z|agohover

hmm, ok so I tried another install and ran those options but noting, I opened up the /etc/ld.so.conf file and checked if the /opt/lib/mysql was in there, (I think thats what the echo is supposed to be doing) but it wasnt in there so I have just manually gone in and put it and and shebang - Starting SlimServerSlimserver daemon started OK. PID is 12153.

ok this wasnt the end of the story, I checked the logs and there was loads of info in there regards updates etc and i checked the interface but nothing was there.

I stopped it and ran chmod 664 /home/slimserver/cache/my.cnf and then started up again

checked netstat and nothing and then the log which just said

this binary does not contain INNODB storage engine

I knew it should be saying the log that the web interface should be ready so checked the log again and it appears it was still loading, loads more info in the log and he line where is said the web interface had started.

so i tried again and there is was. right now i'm off to have a play!!

unfold Re: libperl.so Update? by trouty00trouty00, 1244822789|%e %b %Y, %H:%M %Z|agohover
Re: libperl.so Update?
bzhoubzhou 1244845751|%e %b %Y, %H:%M %Z|agohover

See also http://forums.slimdevices.com/showthread.php?t=62842
In the case of squeezecenter, people used certain sed scripts to work around the lack of INNODB transaction storage engine.

unfold Re: libperl.so Update? by bzhoubzhou, 1244845751|%e %b %Y, %H:%M %Z|agohover
New post
Unless otherwise stated, the content of this page is licensed under Creative Commons Attribution-ShareAlike 3.0 License