WebFaction
Community site: login faq

Hi,

I am trying to install munin on webfaction, but at first, I need to install a tons of perl modules. I followed the instructions to set up cpan. It worked, and I installed a lot of perl modules.

But every time I try to install Module::Build, cpan reported OK. then I cd to munin directory to make, it said:

cd master && /usr/bin/perl Build.PL
Base class package "Module::Build" is empty.
    (Perhaps you need to 'use' the module which defines that package first.)
 at MasterBuilder.pm line 5
BEGIN failed--compilation aborted at MasterBuilder.pm line 5.
Compilation failed in require at Build.PL line 1.
BEGIN failed--compilation aborted at Build.PL line 1.
make: *** [master/Build] Error 2

And strangely, I can install Module::Build again and again, everytime cpan reports OK, but Base class package "Module::Build" is always empty.

I have no idea about that, How can I "truly" install Module::Build? Thanks.

asked 26 Jul '11, 01:59

bear330
145
accept rate: 0%

Can you try using the command

export PERL5LIB=${PERL5LIB}:~/lib/perl5:~/lib/perl5/lib:~/lib/perl5/lib/i386-linux-thread-multi/'

before trying the install?

(26 Jul '11, 03:10) neeravk

I followed the "http://docs.webfaction.com/software/perl.html", so this line has been added into .bashrc, and I pretty sure that my environment variables have PERL5LIB. But it still not work. :(

(26 Jul '11, 04:42) bear330

Can you submit a support ticket with us so we can investigate this problem further and try to reproduce it ourselves?

(26 Jul '11, 04:54) neeravk

ok! Thank you. :)

(26 Jul '11, 05:11) bear330

CGI doesn't load lib path, so use these in perl script

use lib '/home/[username]/lib/perl5';
use lib '/home/[username]/lib/perl5/lib64/perl5';
use lib '/home/[username]/lib/perl5/lib';
use lib '/home/[username]/lib/perl5/lib/i386-linux-thread-multi/';
use lib '/home/[username]/lib/perl5/share/perl5';

when I add 2nd and 5th line to my code, my perl modules run perfectly.

permanent link

answered 29 Jan '15, 04:56

Atul Gupta
113
accept rate: 0%

edited 29 Jan '15, 05:05

Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:

×6
×1

question asked: 26 Jul '11, 01:59

question was seen: 5,161 times

last updated: 29 Jan '15, 05:05

                              
WEBFACTION
REACH US
SUPPORT
LEGAL
© COPYRIGHT 2003-2020 SWARMA LIMITED - WEBFACTION IS A SERVICE OF SWARMA LIMITED
REGISTERED IN ENGLAND AND WALES 5729350 - VAT REGISTRATION NUMBER 877397162
5TH FLOOR, THE OLD VINYL FACTORY, HAYES, UB3 1HA, UNITED KINGDOM