Re: local perl module and "Undefined subroutine &HTML::Mason::Commands" error
Seb <[email protected]> Tue, 10 Jun 2014 13:30:41 +0200 (CEST)
| Newsgroups | gmane.comp.web.mason.user |
|---|---|
| Message-ID | <[email protected]> |
This message is in MIME format. The first part should be readable text, while the remaining parts are likely unreadable without MIME-aware tools. ---1084726419-172974354-1402399763=:17282 Content-Type: TEXT/PLAIN; CHARSET=ISO-8859-1; FORMAT=flowed Content-ID: <[email protected]> Content-Transfer-Encoding: quoted-printable Dear Sergey, > I attempt to place individual perl module in site's directory but it=20 > isn't works: > error: Error during compilation of /var/www/vhosts/stat/htdoc/SW/sw1.ht= ml: > Undefined subroutine &HTML::Mason::Commands::bronc_swport_extende= d > 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 (Apach= e2). Just in case, could you try to write the following lines in the=20 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=20 is case sensitive. As a side note, I think it is not very common to put libraries in a web=20 site's directory (although there can be several good reasons to do it).=20 Either their functions are general, and the libraries would be better off= =20 in a location that is not website-specific, or their functions are local=20 to the website, in which case Mason components could make more sense. Regards, S=E9bastien. ---1084726419-172974354-1402399763=:17282 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ------------------------------------------------------------------------------ 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 ---1084726419-172974354-1402399763=:17282 Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ Mason-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mason-users ---1084726419-172974354-1402399763=:17282--