[Locomotive-users] where to deposit extension library?

Steven Talcott Smith steve at talcottsystems.com
Tue Jul 4 00:17:42 GMT 2006


Sweet -- Thanks, Ryan.  It worked.

BTW:  What do I need to think about with respect to running  
Locomotive in production?  Is anyone doing this on a site of any  
significance?

Steven


On Jul 3, 2006, at 8:08 PM, Ryan Raaum wrote:

> Hi Steven,
>
> Unfortunately I haven't found a workaround to successfully compile  
> the TCLink library in the Locomotive environment... but maybe your  
> alternately compiled one will work.  You need to copy the  
> 'tclink.bundle ' file into:
>
> /Applications/Locomotive2/Bundles/rails112.locobundle/i386/lib/ruby/ 
> 1.8/i686-darwin8.6.1/
>
> and _perhaps_ it will work then...
>
> In any case, I'll continue to work on the problems you've  
> identified and try to come up with a solution...
>
> Best,
>
> -r
>
> On 7/3/06, Steven Talcott Smith <steve at talcottsystems.com> wrote:
> Ryan,
>
> Thanks for responding.  The TCLink library is a .so (supposedly --
> although I only got it to spit out a .o -- I emailed their support
> about it) that is built from a download on their site.  It is tiny so
> I have attached it here.  I had to build it outside in the Mac OS X
> Ruby because in the Locomotive Ruby it complained about not finding
> things in your home directory /Users/ryan/...   The test ran
> successfully in Ruby so it must be installable from the .o...
>
> Any recommendations?
>
> Steven
>
> The README says the following:
>
> > IV. BUILDING
> >
> >   At the root directory of this archive, execute the following:
> >
> >     ./build.sh
> >
> >   If the module builds without errors, test it with this command:
> >
> >     ruby tctest.rb
> >
> >   This script will run a test transaction and print the results.
> >
> >
> > V. INSTALLATION
> >
> >   If you have root access to the machine, you will probably want to
> > install TCLink as a global extension.  You can do this by copying  
> the
> > extension library (tclink.so) to your Ruby extensions directory,  
> which
> > is typically somewhere under /usr/lib/ruby, such as
> > /usr/lib/ruby/1.6/i386-linux.
> >
> >   If you can't or don't want to install the module system wide, you
> > can
> > still use in a script by adding an absolute or relative path to the
> > require 'tclink' invocation. For example:
> >
> >   require '/home/user/tclink'
>
>
>
>
>
>
> On Jul 3, 2006, at 2:08 PM, Ryan Raaum wrote:
>
> > Hi Steven,
> >
> > If it's a pure ruby library, you should be able to drop it into your
> > rails application's /lib directory (and then require it in your  
> model
> > or wherever).
> >
> > What information does TrustCommerce provide about it?  (I looked at
> > the site, but it seems that they make you register before telling  
> you
> > anything relevant...)
> >
> > Best,
> >
> > -r
> >
> > On 7/3/06, Steven Talcott Smith <steve at talcottsystems.com> wrote:
> >> Hi --
> >>
> >> I am trying to deposit an extension library for TrustCommerce
> >> (TCLink) into my Locomotive installation.  Where does it go?
> >>
> >> I tried putting it here: /Applications/Locomotive2/Bundles/
> >> rails112.locobundle/i386/lib/ruby/1.8/
> >>
> >> But that did not work.
> >>
> >>
> >> -Steven
> >> _______________________________________________
> >> Locomotive-users mailing list
> >> Locomotive-users at lists.raaum.org
> >> http://lists.raaum.org/mailman/listinfo/locomotive-users
> >>
> >
> >
> > --
> > Ryan Raaum
> > http://www.anthro.ufl.edu - Molecular Anthropology, University of
> > Florida
> > http://locomotive.raaum.org -- Self contained one-click Rails for
> > Mac OS X
> > _______________________________________________
> > Locomotive-users mailing list
> > Locomotive-users at lists.raaum.org
> > http://lists.raaum.org/mailman/listinfo/locomotive-users
> >
> >
>
>
>
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users
>
>
>
>
>
>
> -- 
> Ryan Raaum
> http://www.anthro.ufl.edu - Molecular Anthropology, University of  
> Florida
> http://locomotive.raaum.org -- Self contained one-click Rails for  
> Mac OS X
> _______________________________________________
> Locomotive-users mailing list
> Locomotive-users at lists.raaum.org
> http://lists.raaum.org/mailman/listinfo/locomotive-users

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://one.textdrive.com/pipermail/locomotive-users/attachments/20060704/1cd1f265/attachment.htm


More information about the Locomotive-users mailing list