[MTOS-dev] thrid party code, extlib, dependencies
Mark Carey
mark at mt-hacks.com
Thu Mar 6 05:24:09 PST 2008
Hi Steve,
Contrary to some documentation [1], placing things in
/mt/plugins/MyPlugin/extlib/ doesn't work. At least it didn't work in
MT 4.01. I am not sure if this was fixed in MT 4.1. For now you may
have to put the external libs in /mt/extlib/.
-Mark
[1] http://www.movabletype.org/documentation/developer/plugins/the-structure-of-a-plugin.html
On Thu, Mar 6, 2008 at 12:27 AM, Steve Ivy <steveivy at gmail.com> wrote:
> Hello,
>
> I'm a new (like, 2 weeks) developer, churning through my first plugin.
> Things are going well, the basics work, but I've entered a new level
> of wha? by introducing a third party module: Net/SocialGraph[1].
>
> I've got it in plugins/Friends(my plugin)/extlib. I need to use it
> from plugins/Friends/lib/App/CMS.pm. In turn, it needs to use
> (MT)/extlib/JSON.pm.
>
> I have no idea how the dependencies should be made to work. I suspect
> it involves 'use lib' but I'm not at all certain what needs to point
> to what.
>
> Any recomendations/best practices?
>
> Thanks,
>
> --Steve
>
> [1] http://search.cpan.org/~simonw/Net-SocialGraph-1.1/lib/Net/SocialGraph.pm
>
> --
> Steve Ivy
> http://redmonk.net // http://diso-project.org
> This email is: [ ] bloggable [x] ask first [ ] private
> _______________________________________________
> MTOS-dev mailing list
> MTOS-dev at sixapart.com
> http://www.sixapart.com/mailman/listinfo/mtos-dev
>
More information about the MTOS-dev
mailing list