[Locomotive-users] Installing RMagick
Geoff Dougherty
geoff at geoffdougherty.com
Wed Jul 12 21:57:50 GMT 2006
Oy, I dunno what to say about this.
irb(main):004:0> require 'RMagick'
dyld: NSLinkModule() error
dyld: Library not loaded: /usr/X11R6/lib/libXext.6.dylib
Referenced from: /Applications/Locomotive2/Bundles/
rails112rmagick_ppc.locobundle/framework/lib/ruby/site_ruby/1.8/
powerpc-darwin7.9.0/RMagick.bundle
Reason: image not found
Trace/BPT trap
I'm running 10.4, have x11 installed, and I just installed the latest
version of xcode dev tools from Apple.
On Jul 12, 2006, at 7:13 AM, Ryan Raaum wrote:
>
>
> On 7/12/06, Geoff Dougherty <geoff at geoffdougherty.com> wrote:
> Okay, I added a breakpoint after require 'rmagick'. The script is
> spinning endlessly when it hits the require, never reaches the
> breakpoint.
>
> Ideas?
>
> Are you able to load and use RMagick from the console?
>
> ruby script/console
> > require 'rmagick'
> > etc...
>
> -r
>
> On Jul 11, 2006, at 9:37 PM, Lori M Olson wrote:
>
> > On 11-Jul-06, at 8:30 PM, Geoff Dougherty wrote:
> >
> >> Ryan,
> >>
> >> Thanks for all your help. The app is now spinning for 5+ minutes
> >> w/ no result when I try to upload & resize a photo. No error
> >> messages, nothing amiss in the development log.
> >>
> >> I can't tell whether it's a problem w/ the way I've installed
> >> rmagick on Locomotive, my RoR code, or something else.
> >>
> >> Here's the method:
> >>
> >> def picture=(picture_field)
> >> require 'rmagick'
> >> self.name = base_part_of(picture_field.original_filename)
> >> self.content_type = picture_field.content_type.chomp
> >> self.data = picture_field.read
> >> img = RMagick::Image::read( self.data)
> >> @width=img.columns
> >> @height=img.rows
> >> @ratio=@width/@height
> >> @newheight=@width*@ratio
> >> @picture.thumb = img.scale(125, "#@newheight")
> >> end
> >>
> >> _______________________________________________
> >> Locomotive-users mailing list
> >> Locomotive-users at lists.raaum.org
> >> http://lists.raaum.org/mailman/listinfo/locomotive-users
> >
> > You can always sprinkle logging statements throughout this method,
> > so you can narrow down which statement in particular is hanging on
> > you.
> >
> > Regards, Lori
> > _______________________________________________
> > 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/20060712/4316dbc5/attachment.htm
More information about the Locomotive-users
mailing list