MojoMojo install from GitHub on openSuSE 11.2
Install required deps
As root:
# zypper in libxml2 libpng-devel giflib-devel libjpeg-devel expat libexpat-devel make # zypper in libxslt-devel gdbm-devel docbook5-xsl-stylesheets # zypper in git-arch
Install some stuff for cpan:
As root:
# zypper in sqlite3-devel lynx ncftp patch gcc
Setup cpan how you like it. I do the following with a fresh install:
As root:
# perl -MCPAN -e shell cpan> install CPAN ... cpan> reload cpan ... cpan> install CPAN::SQLite YAML LWP ...
"reload cpan" doesn't initialize the SQLite DB. Exit cpan and restart.
cpan> exit
Still as root:
# perl -MCPAN -e shell cpan> install Bundle::CPAN ... cpan> exit
Upgrade old modules / install site modules to use instead of openSuSE's
Again, as root:
# perl -MCPAN -e 'CPAN::Shell->install(CPAN::Shell->r)' ...
Take care of some troublesome Modules.
Installing Test-WWW-Mechanize-1.24 fails on my system.
Apply the patch found here: https://rt.cpan.org/Public/Bug/Display.html?id=53637#txn-733990
Installing Test-WWW-Mechanize-1.24 fails again on my system.
I don't think it likes opendns redirecting a 500 error.
Details here: https://code.google.com/p/www-mechanize/issues/detail?id=152
Force the install.
As root:
# cpan -fi Test::WWW::Mechanize
I also had to force HTML::FormFu because of this:
t/filters/regex.t .............................................. panic: utf8_mg_pos_cache_update cache 7 real 6 for (?-xism:\A\s+|\s+\z) at /usr/lib/perl5/site_perl/5.10.0/i586-linux-thread-multi/Regexp/Storable.pm line 9. # Looks like your test exited with 255 before it could output anything. t/filters/regex.t .............................................. Dubious, test returned 255 (wstat 65280, 0xff00)
As root:
# cpan -fi HTML::FormFu
Install Catalyst as root:
# cpan Catalyst::Runtime
Install Module::Install as root:
# cpan Module::Install
Install MojoMojo as user:
> git clone git://github.com/marcusramberg/mojomojo.git ... > cd mojomojo > perl Makefile.PL ... > make ... > make test ...
"make test" failed two tests, however I moved forward anyways.
Failed tests:
Test Summary Report ------------------- t/c/email.t (Wstat: 2304 Tests: 4 Failed: 1) Failed test: 4 Non-zero exit status: 9 Parse errors: Bad plan. You planned 14 tests but ran 4. t/schema_DBIC_Tag.t (Wstat: 512 Tests: 3 Failed: 0) Non-zero exit status: 2 Parse errors: Bad plan. You planned 4 tests but ran 3. Files=54, Tests=773, 244 wallclock secs ( 0.67 usr 0.07 sys + 195.70 cusr 10.79 csys = 207.23 CPU) Result: FAIL Failed 2/54 test programs. 1/773 subtests failed. make: *** [test_dynamic] Error 255
As user:
> cp mojomojo.conf mojomojo_local.conf
Edit the config file.
Create the DB file and start the server as user:
> script/mojomojo_spawn_db.pl # creates database > script/mojomojo_server.pl # launch development server
Показ изменений от предыдущей версии Удалено | Добавлено
