Dear Sergey,


I attempt to place individual perl module in site's directory but it isn't works:
error: Error during compilation of /var/www/vhosts/stat/htdoc/SW/sw1.html:
      Undefined subroutine &HTML::Mason::Commands::bronc_swport_extended
      called at /var/www/vhosts/stat/htdoc/SW/sw1.html line 97.
I use "PerlSwitches -I/var/www/vhosts/stat/lib" in site's config (Apache2).

Just in case, could you try to write the following lines in the virtualhost file, before <VirtualHost ...> ?

<Perl>
use lib '/var/www/vhosts/stat/lib';
</Perl>

(And then reload Apache.)

Or is there something is case sensitive ? I use Mason 1.50.

Yes, unless your OS cannot distinguish between upper and lower case, all is case sensitive.


As a side note, I think it is not very common to put libraries in a web site's directory (although there can be several good reasons to do it). Either their functions are general, and the libraries would be better off in a location that is not website-specific, or their functions are local to the website, in which case Mason components could make more sense.


Regards,
Sébastien.
------------------------------------------------------------------------------
HPCC Systems Open Source Big Data Platform from LexisNexis Risk Solutions
Find What Matters Most in Your Big Data with HPCC Systems
Open Source. Fast. Scalable. Simple. Ideal for Dirty Data.
Leverages Graph Analysis for Fast Processing & Easy Data Exploration
http://p.sf.net/sfu/hpccsystems
_______________________________________________
Mason-users mailing list
Mason-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mason-users

Reply via email to