On Tuesday 10 June 2014, you wrote: > 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>
I attempted it. It works in VirtualHost sections (not before) and equivalently "PerlSwitches -I/var/www/vhosts/stat/lib" :-( The problem not in directive "use" of Perl: error changed when I removed PerlSwitches from apache's config: |error: Error during compilation of /var/www/vhosts/stat/htdoc/SW/sw1.html: | Can't locate brinc/conf/collectd.pm in @INC (@INC contains: /usr/local/lib64/perl/5.16 | /usr/local/share/perl/5.16 /usr/lib64/perl5 /usr/share/perl5 /usr/lib64/perl5 | /usr/share/perl5 /etc/perl5 /usr/lib/perl5/vendor_perl . /etc/httpd2) | |context: ... | 24: use brinc::conf::collectd qw(&bronc_swport_extended); | ... So, "PerlSwitches -I/var/www/vhosts/stat/lib" works and "use brinc::conf::collectd" works also. > > 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. I known about file systems but I mean internal code of Mason. > 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). collectd.pm is a configuraion file in fact. It contains site specific perl functions based on system package Bronc. But it does not matter now: I say in first message: |All works if I move collectd.pm to /usr/share/perl5/BRONC/Conf/Collectd.pm |and it isn't works if I move it to /usr/share/perl5/BRONC/conf/collectd.pm |(with correct modification "use ..." in sw1.html of course). I.e. function "bronc_swport_extended" works with "use BRONC::Conf::Collectd" and does not works with "use BRONC::conf::collectd". "BRONC/Conf/Collectd.pm" and "BRONC/conf/collectd.pm" are exist both. Collectd.pm equivalently collectd.pm. Obviously, it is necessary to correct a subject... This also applies to the system's @INC as appears. -- Regards, Sergey ------------------------------------------------------------------------------ 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