From: Ling Su <ls...@ne...> - 2001-10-15 02:33:41
|
Dear All, Hello, I am trying to install slash site on my Netwinder machine (www.netwinder.org), which is a RedHat6.2 based StrongARM machine. Due to the architecture issue, I have to install some of the package from source, following is my package information, <1>. MySQL 3.22.32 <2>. Apache 1.3.19 <3>. Perl 5.6.1 The machine has 64MB memory, I have trouble to build the MySQL by myslef since it runs out of memory in later compile stage, so I installed the RPM packege available from www.netwinder.org. It works fine in my test. I built apache 1.3.19 and perl_mod strictly follow the INSTALL of slashcode 2.0.0, actaully I built lots of times, I made sure the "make test" is passed 100%. When I installed Bundle::Slash, there is a test error in DBD::mysql, all other modules are installed without any problem. You can find my log in below. ------------------ PERL_DL_NONLAZY=1 /usr/local/bin/perl -I../blib/arch -I../blib/lib -I/usr/local lib/perl5/5.6.1/armv4l-linux -I/usr/local/lib/perl5/5.6.1 -e 'use Test::Harness qw(&runtests $verbose); $verbose=0; runtests @ARGV;' t/*.t t/00base............ok <br> t/10dsnlist.........ok <br> t/20createdrop......ok <br> t/30insertfetch.....ok <br> t/40bindparam.......ok <br> t/40blobs...........ok <br> t/40listfields......ok <br> t/40nulls...........ok <br> t/40numrows.........ok <br> t/50chopblanks......ok <br> t/50commit..........ok, 14/30 skipped: No transactions <br> t/60leaks...........skipped test on this platform t/ak-dbd............ok <br> t/akmisc............FAILED test 44 <br> Failed 1/351 tests, 99.72% okay t/dbdadmin..........ok <br> t/mysql.............FAILED test 23 <br> Failed 1/68 tests, 98.53% okay t/mysql2............ok <br> Failed Test Status Wstat Total Fail Failed List of Failed<br> ------------------------------------------------------------------------ -------< t/akmisc.t 351 1 0.28% 44 t/mysql.t 68 1 1.47% 23< 1 test and 14 subtests skipped. Failed 2/17 test scripts, 88.24% okay. 2/746 subtests failed, 99.73% okay.<br> make[1]: *** [test_dynamic] Error 29<br> make[1]: Leaving directory `/root/.cpan/build/Msql-Mysql-modules-1.2216/mysql'<br> make: *** [test] Error 2 /usr/bin/make test -- NOT OK Running make install make test had returned bad status, won't install without force<br> ----------------------------------------------- So, I have to install MySQL module by myself using "perl Makefile.PL && make && make test && make install". Of course, I ingore the several failure in testing. Then I tried to install a local slashsite(192.168.1.10) and begin testing, I didn't use virtual host. I cat the /usr/local/slash/conf/slash.con into my httpd.conf, and point my DocumentRoot to the htdocs of new create slash site. I stop and start apache and fire up /etc/rc.d/init.d/slash. When I visit 192.168.1.10/admin.pl, an internal error as following, "HTTP/1.1 200 OK Date: Sun, 14 Oct 2001 20:17:59 GMT Server: Apache/1.3.19 (Unix) mod_perl/1.26 Connection: close Transfer-Encoding: chunked Content-Type: text/html; charset=iso-8859-1 " I went to check the error_log of apache, the error is shown in below, ------------------------- "[Sun Oct 14 13:17:59 2001] [error] Can't call method "getTemplateByName" on an undefined value at /usr/local/lib/perl5/site_perl/5.6.1/armv4l-linux/Slash/Display.pm line 198. [Sun Oct 14 13:17:59 2001] [error] Can't call method "getBlock" on an undefined value at /usr/local/lib/perl5/site_perl/5.6.1/armv4l-linux/Slash.pm line 379." -------------------------- The only thing I didn't follow of the INSTALL is the time region setup for MySQL since I think I can make it up after a site running. I go check the errors on the specified line of both Slash.pm and Disply.pm, I found it complain the variable $slashdb is undefined. Is this due to database connection problem? I want to debug it, but don't quite know where to begin. I post it here hopefully anyone met the same problem have any clue and shed me some light. I have been struggling with this problem for long long time, I do carefully following any step of the documentation. I successfully installed slashsite on my PC but I don't know why the netwinder can't. Thanks for any kindly help, hint of debugging, etc. !!! -Ling |