PDA

View Full Version : NSLU2 + Unslung 6.8 Beta + SlimServer 6.5.0



besen
2006-10-02, 08:27
Just a Checkup procedure to install the last stable version of SlimServer on the last Unslung:

Follow all steps described in http://www.nslu2-linux.org/wiki/Applications/SlimServer

List of compiling potential error:

1. When you untar the archive of SlimServer sources, you don't find a file with extention ".ix": "Can't locate auto/Compress/Zlib/autosplit.ix". It's because you don't have the good path. In the /usr/local, create a symbolic link called "slimserver" to your untared slimserver archive or rename the folder that contains the untared slimserver archive.
#> ln -s /usr/local/SlimServer-v6.5.0 /usr/local/slimserver
OR
#> mv /usr/local/SlimServer-v6.5.0 /usr/local/slimserver

2. there is an error to uncompress "Compress-Zlib-1.41.tar.gz". You have to edit the file "slimserver/Bin/build-perl-modules.pl" to find "LWP", the default downloader and replace it by "wget".
vi build-perl-modules.pl ...............
else {
#$downloadUsing = 'lwp';
$downloadUsing = 'wget';
}
........................................

3. An error occured due to a problem with a dynamic library:
"Couldn't find a valid dynamic library for Compress-Zlib-1.41.tar.gz". You have to add some path in the PATH variable:
#> PATH=$PATH:/opt/bin:/opt/sbin:/opt/bin:/opt/bin:/opt/armeb/bin:/opt/libexec:/opt/sbin
#> export PATH
Retry to recompile...

4. You have an error like that:
............
Downloading DBD-mysql-3.0002.tar.gz to: /etc/slim-data
Uncompressing..
Configuring..
PERL5LIB=/etc/slim-data/DBI-1.50/blib/lib:/etc/slim-data/DBI-1.50/blib/arch /usr/bin/perl Makefile.PL
Can't exec "mysql_config": No such file or directory at Makefile.PL line 76.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Can't exec "mysql_config": No such file or directory at Makefile.PL line 454.
Failed to determine directory of mysql.h. Use

perl Makefile.PL --cflags=-I<dir>

to set this directory. For details see the INSTALL.html file,
section "C Compiler flags" or type

perl Makefile.PL --help
There was a problem creating Makefile - exiting!
............
Then You have to install Mysql:
#> ipkg update
#> ipkg install mysql

Then a this time if you recompile, you have at the end (several minutes) the end line: "ALL DONE!"

besen
2006-10-04, 02:18
Ok now the comilation is good... But on Unslung, the MySQL Package don't support the necessary "InnoDB"... Then we cannot install the last version of SlimServer on Unslung.

Therefore I install (very simple) the SlimServer 6.3.1... A good post here:
http://forums.slimdevices.com/showthread.php?t=28038&page=2#post141141

bpa
2006-10-04, 03:55
The DS-101 and the Freecom FSG3 which are very similar to NSLU2/Unslung but include a version MySql with InnoDB support.

For 6.5.0 on DS-101 - use the SSODS solution.

I have built 6.5.0 as per above instruction, installed unlsung's Mysql but when I discovered no InnoDB support, I then copied Freecom FSG-3's mysqld into Slimserver's Bin directory and it seems to work OK.