But do you have Template Toolkit installed?

  sudo cpan -i Template

Scott


On Fri, 2007-06-29 at 16:36 -0500, Steve Rogers wrote:
> Hi,
> 
> I just installed sqlt on OS X using CPAN, and everything seems to  
> work except the templates. When I do a command like:
> 
> $ sqlt -f YAML -t TTSchema --template migration.tt example.yaml
> 
> I get an error like:
> 
> Can't load producer 'TTSchema' : Error loading TTSchema as  
> SQL::Translator::Producer::TTSchema : Can't locate Template.pm in  
> @INC (@INC contains:  . . . a bunch of paths . . . ) at /Library/Perl/ 
> 5.8.6/SQL/Translator/Producer/TTSchema.pm line 135.
> 
> But when I try to install it, it seems to be there:
> 
> $ sudo -H cpan -i SQL::Translator::Producer::TTSchema
> CPAN: Storable loaded ok
> Going to read /var/root/.cpan/Metadata
>    Database was generated on Fri, 29 Jun 2007 05:50:33 GMT
> SQL::Translator::Producer::TTSchema is up to date.
> 
> I don't really know Perl at all, just kind of feeling my way through  
> it. Any thoughts on what might be going wrong?
> 
> What I'm trying to do is convert SQL generated by a DB diagramming  
> tool into the Ruby format needed for migrations in Ruby on Rails. the  
> template seems just right for that, if I could get it to work.
> 
> Thanks,
> Steve
> 
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
-- 
------------------------------------------------------------------------
Scott Cain, Ph. D.                                         [EMAIL PROTECTED]
GMOD Coordinator (http://www.gmod.org/)                     216-392-3087
Cold Spring Harbor Laboratory

Attachment: signature.asc
Description: This is a digitally signed message part

-------------------------------------------------------------------------
This SF.net email is sponsored by DB2 Express
Download DB2 Express C - the FREE version of DB2 express and take
control of your XML. No limits. Just data. Click to get it now.
http://sourceforge.net/powerbar/db2/
-- 
sqlfairy-developers mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/sqlfairy-developers

Reply via email to