Ok, so I’ve just about got a version of Statistics that installs via
RTx, but I’ve got a little problem…
Al the Statistics files had a “use Statistics;” at their top, that
loaded Statistics.pm from /opt/rt3/local/lib/Statistics.pm.
But, now, Statistics.pm is in /opt/rt3/local/lib/RTx/Statistics.pm and
the use clause can’t find it. I suppose I could muck around with LIB,
but that doesn’t seem a very clean solution.
So, what do I have to do to get this working?
Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh@mqsoftware.com
Ok, so I’ve just about got a version of Statistics that installs via
RTx, but I’ve got a little problem…
Al the Statistics files had a “use Statistics;” at their top, that
loaded Statistics.pm from /opt/rt3/local/lib/Statistics.pm.
But, now, Statistics.pm is in /opt/rt3/local/lib/RTx/Statistics.pm and
the use clause can’t find it. I suppose I could muck around with LIB,
but that doesn’t seem a very clean solution.
So, what do I have to do to get this working?
Extensions such as RTx::AssetTracker have to deal with this
type of thing. Take a look at the code to see how it’s done.
http://atwiki.chaka.net/
-Todd
Ok, so I’ve just about got a version of Statistics that installs via
RTx, but I’ve got a little problem…
Al the Statistics files had a “use Statistics;” at their top, that
loaded Statistics.pm from /opt/rt3/local/lib/Statistics.pm.
But, now, Statistics.pm is in /opt/rt3/local/lib/RTx/Statistics.pm and
the use clause can’t find it. I suppose I could muck around with LIB,
but that doesn’t seem a very clean solution.
use RTx::Statistics, maybe?
DOH!
(sometimes life makes you feel really silly, no?) ;>
-Kelly
Ok, so I’ve just about got a version of Statistics that installs via
RTx, but I’ve got a little problem…
Al the Statistics files had a “use Statistics;” at their top, that
loaded Statistics.pm from /opt/rt3/local/lib/Statistics.pm.
But, now, Statistics.pm is in /opt/rt3/local/lib/RTx/Statistics.pm and
the use clause can’t find it. I suppose I could muck around with LIB,
but that doesn’t seem a very clean solution.
use RTx::Statistics, maybe?
So, what do I have to do to get this working?
–
Kelly F. Hickel
Senior Software Architect
MQSoftware, Inc
952.345.8677
kfh@mqsoftware.com
The rt-users Archives
Be sure to check out the RT Wiki at http://wiki.bestpractical.com
Download a free sample chapter of RT Essentials from O’Reilly Media at
http://rtbook.bestpractical.com
WE’RE COMING TO YOUR TOWN SOON - RT Training in Amsterdam, Boston and
San Francisco - Find out more at
http://bestpractical.com/services/training.html