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!"
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!"