Installation problems with Vipul's Razor

apps

#1

Hello,

having problems getting a working install of razor2 on dreamhost. The razor-agents compile fine, but running “razor-admin -register” throws some crazy Perl compile errors:

Can’t load ‘/home/rra3/local/lib/perl/5.6.1/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so’ for module Razor2::Preproc::deHTMLxs: /home/rra3/local/lib/perl/5.6.1/auto/Razor2/Preproc/deHTMLxs/deHTMLxs.so: undefined symbol: PL_markstack_ptr at /usr/lib/perl/5.8/DynaLoader.pm line 225.
at /home/rra3/local/lib/perl/5.6.1/Razor2/Preproc/Manager.pm line 4
Compilation failed in require at /home/rra3/local/lib/perl/5.6.1/Razor2/Preproc/Manager.pm line 4.
BEGIN failed–compilation aborted at /home/rra3/local/lib/perl/5.6.1/Razor2/Preproc/Manager.pm line 4.
Compilation failed in require at /home/rra3/local/lib/perl/5.6.1/Razor2/Client/Agent.pm line 22.
BEGIN failed–compilation aborted at /home/rra3/local/lib/perl/5.6.1/Razor2/Client/Agent.pm line 22.
Compilation failed in require at /home/rra3/bin/razor-admin line 18.
BEGIN failed–compilation aborted at /home/rra3/bin/razor-admin line 18.

There is a companion SDK that can be installed - but i couldn’t get it to install either. Basically it’s just a bunch of perl modules that are already on the system:

Time::HiRes
Digest::SHA1
MIME::Base64
Test::Simple
Test::Harness
Getopt::Long
File::Copy
URI::Escape

I did notice that attempting a local install of Time::HiRes fails – seems like many of the underlying C library functions that the module needs are not available on the system:

(rra3@axl)~/.cpan/build/Time-HiRes-1.87% perl Makefile.PL PREFIX=$HOME
Configuring Time::HiRes…
Have syscall()… looking for syscall.h… found <syscall.h>.
Looking for gettimeofday()… found.
Looking for setitimer()… found.
Looking for getitimer()… found.
You have interval timers (both setitimer and getitimer).
Looking for ualarm()… found.
Looking for usleep()… found.
Looking for nanosleep()… testing… found.
You can mix subsecond sleeps with signals, if you want to.
(It’s still not portable, though.)
Looking for clock_gettime()…
*** The test run of ‘./tmp14289’ failed: status 9728
*** (the status means: errno = 38 or ‘Function not implemented’)
*** DO NOT PANIC: this just means that some functionality will be missing.
NOT found.
Looking for clock_getres()…
*** The test run of ‘./tmp14289’ failed: status 9728
*** (the status means: errno = 38 or ‘Function not implemented’)
*** DO NOT PANIC: this just means that some functionality will be missing.
NOT found.
Looking for clock_nanosleep()… NOT found.
Looking for clock()… found.
Writing Makefile for Time::HiRes
Now you may issue ‘make’. Do not forget also ‘make test’.

make runs fine, but then “make test”:

PERL_DL_NONLAZY=1 /usr/bin/perl “-MExtUtils::Command::MM” “-e” “test_harness(0, ‘blib/lib’, ‘blib/arch’)” t/*.t
t/HiRes…FAILED tests 8, 23
Failed 2/33 tests, 93.94% okay (less 3 skipped tests: 28 okay, 84.85%)
Failed Test Stat Wstat Total Fail Failed List of Failed

t/HiRes.t 33 2 6.06% 8 23
3 subtests skipped.
Failed 1/1 test scripts, 0.00% okay. 2/33 subtests failed, 93.94% okay.
make: *** [test_dynamic] Error 255

…so I think the razor failures may be related to the Time::HiRes problem. Any help or suggestions would be much appreciated.

regards,

bobby