1. This site uses cookies. By continuing to use this site, you are agreeing to our use of cookies. Learn More.

Perl problem with Shadowmaker.

Discussion in 'PHP & Perl' started by yato, Dec 11, 2008.

  1. yato

    yato Newbie Premium Member

    Joined:
    Sep 18, 2007
    Messages:
    49
    Likes Received:
    10
    Hi all,

    Ive run into this problem with Shadowmaker and was hoping someone could help.
    The program runs fine up untill the create site part.
    After clicking on create site the following error occurs.

    Can't locate SMSetup.pm in @INC (@INC contains: /usr/lib/perl5/5.8.7/i686-linux /usr/lib/perl5/5.8.7 /usr/lib/perl5/site_perl/5.8.7/i686-linux /usr/lib/perl5/site_perl/5.8.7 /usr/lib/perl5/site_perl/5.8.5 /usr/lib/perl5/site_perl/5.8.4 /usr/lib/perl5/site_perl/5.8.3 /usr/lib/perl5/site_perl/5.8.2 /usr/lib/perl5/site_perl/5.8.1 /usr/lib/perl5/site_perl/5.8.0 /usr/lib/perl5/site_perl/5.6.2 /usr/lib/perl5/site_perl) at createsite.cgi line 31.
    BEGIN failed--compilation aborted at createsite.cgi line 31.

    Now a google search turns up a ton of results of people having the same issue with a ton of other perl scripts.
    So it seems pretty common.
    I just couldnt find one site with a clear solution.
    Any ideas?
     
  2. yato

    yato Newbie Premium Member

    Joined:
    Sep 18, 2007
    Messages:
    49
    Likes Received:
    10
    So Ive been researching the problem and I found a thread by one of the developers where he answers the question but Im still having no luck.

    The solution he gave was to add this code before the module that needs to be called
    BEGIN {
    push(@INC, '/absolute_path_name/');
    };

    use SMSetup.pm;

    I assume that where I see absolute_path_name is where I would insert /usr/bin/perl.

    I have tried this and several variations but no luck.

    Any ideas?
    Anyone?
     
  3. istarapol

    istarapol Junior Member

    Joined:
    Jun 3, 2008
    Messages:
    110
    Likes Received:
    228
    Occupation:
    Graphic Designer
    Location:
    Under Your Bed
    Home Page:
    look for Tom__
    he did the netlog script and i think he can help you with this ;)
    great perl programmer
     
  4. yato

    yato Newbie Premium Member

    Joined:
    Sep 18, 2007
    Messages:
    49
    Likes Received:
    10
    Hey , thanks istarpol.
    I will give him a shout.
     
  5. Tom__

    Tom__ Junior Member

    Joined:
    Nov 9, 2008
    Messages:
    134
    Likes Received:
    300
    You must have the SMSetup package installed, I suppose it's a special perl package so you got the legit version of Shadowmaker or? Because else you can ask the package on the creator and else you can hope perlcpan has the script.