in reply to Re: cgi script can't load my module
in thread cgi script can't load my module

OK... I moved the folder containing the modules to a standard location, (/Library/Perl . I'm on OSX). It works fine in that folder. It's just inconvenient to develop in one folder and move stuff there.

I changed the permissions all the way up the tree of my user directory as a test, but it didn't help...

I'm absolutely sure there are no typos in the path. I've done the use lib thing before many times, just not with cgi. I'm new at the perl cgi part.

I really think it might have something to do with my apache server setup.

But anyway, I guess I'm just going to move it there for now, because I'm in a hurry to get some work done.

Thanks for the tips. I'll check back later in case anyone has any other thoughts.

Replies are listed 'Best First'.
Re^3: cgi script can't load my module
by almut (Canon) on Jul 29, 2007 at 21:53 UTC
    I changed the permissions all the way up the tree of my user directory as a test, but it didn't help...  I'm absolutely sure there are no typos in the path.

    In that case it could be restricted access due to some SELinux or AppArmor configuration (the latter is likely if the box is running a newer SUSE Linux).  It's hard to tell, though, as you haven't told us anything about the platform this is...  (Update: Sorry, I overlooked the OSX in your reply...)

Re^3: cgi script can't load my module
by Cody Pendant (Prior) on Jul 30, 2007 at 04:45 UTC
    I had a thought! I had two thoughts. They are:
    • tell us if it works from the command line
    • tell us what the code and the paths actually are

    Oh and as for:

    It's just inconvenient to develop in one folder and move stuff there.
    So ... just don't do that then.


    Nobody says perl looks like line-noise any more
    kids today don't know what line-noise IS ...