Andrew Burke - Digital Construction since 1994

On Twitter

On Facebook


andrewburke.ca - RMagick - oh the humanity!

 

Posted on: 2006-07-03 02:18:43

Previous: It's the Little Things - ajax_collection_select and Rails 1.1 Next: DemoCampToronto7

Just spent two days trying to get the RMagick package running on my OS X 10.4 PowerBook G4. Typing out long install scripts that just refuse to work correctly, jimmying my rubygems, and poking through Google Groups to find the secret config file adjustment that will make it Just Work.

It's not so much RMagick as RAlchemy or RKabbalah - secret power available only to those who understand the Secret Mysteries.

After getting everything to finally compile - a feat in itself - Ruby would recognize the rmagick gem when I asked it what gems were installed, but when I tried to use it, it wouldn't.

I'm going to use this for some charts and graphs for an upcoming project - so I thought I'd try gruff. Oddly enough, while my own calls to 'include rmagick' came up with nothing, gruff - with exactly the same include code as I had used - generated images perfectly! The only downside was that it took a long time - longer than a dynamic site can really afford to wait. Worth looking at again, in case it was just my messed up installation.

Everything got better when I decided to try Locomotive. It encapsulates Rails environments, staying separate from the system in general, and includes a downloadable module with RMagick correctly installed and configured. And it works.

Yes, it works. Thank whoever it is I should thank for this. Ganesh, remover of obstacles? St. Jude? Well, at least I know to thank Ryan Raaum, who put this together, complete with a slick Cocoa-based control panel. I think I'll get a PayPal account, just to give him some of the money he's saved me in potential lost billable hours from this mess.

What's extra frustrating is that ImageMagick actually worked immediately when I tried using it in PHP last year - no setting of environment variables, no hours of configuring and compiling, no having to install the X11 SDK, FreeType, or separate libraries for JPEG, PNG, and TIFF, no error messages about not being able to find 'Verdana'.

Ruby and Rails are so clean and elegant in so many ways that it's extra frustrating when you have to go through such crazy hoops to get things working properly.

So - if you're having RMagick trouble, or just want to try a cool Rails server management tool, give Locomotive a shot - I'm a believer!

Previous: It's the Little Things - ajax_collection_select and Rails 1.1 Next: DemoCampToronto7

Other Blog Posts:
- Berlin: Museums
- Berlin: Ghosts of the Past, Visions of the Future
- Flâneur in Berlin
- Berlin: Finding the Best Wurst
- Istanbul: Overwhelmed by History in the Hippodrome
- Istanbul: That dolphin-torn, that gong-tormented sea
- Istanbul: The Topkapi Palace and Harem
- Istanbul: Mosques
- Istanbul's Basilica Cistern: Gorgeous, Creepy, Nerdy
- Istanbul: Hagia Sophia
- The Streets of Istanbul - II
- The Streets of Istanbul - I
- Munich Airport: Legoland mit Bier und NapCab
- Heathrow Airport: You Are In A Maze Of Twisty Little Passages, All Different
- Getting Ready to Travel
- Quick Advice on Canadian Indie Music
- My Favourite Roadside Sign
- Well That Explains a Lot...
- Poland: Gear from the Army Museum
- Poland: Warsaw's Palace of Culture and the University Library
- Poland: Warsaw
- Poland: Winged Hussars
- Poland
- What's awesome about Toronto
- Possibly the best sentence in the English language
- QUOTE: We Shouldn't Have Music Anxiety
- Now *that's* Santa Cruz
- Small Town Newspaper Headline Dada
- Great Quote from Seth Godin
- McSweeney's: My Pet Peeves
- Shindig!
- Dresden Dolls / Die Mannequin / Friendly Rich at the Phoenix
- In Store for 2008: Wailing and Gnashing of Teeth?!
- Coffee Updates: Urbana and Far Coast
- Canadian: Walking to Tim Horton's Through a Blizzard
- Lighting as language
- TSOT Ruby/Rails Project Night
- IE is pants, pure and simple
- Passport Canada's Secure Enterprise Software
- DemoCampToronto16
- Faulty By Design
- Buynlarge.com - brilliant!
- Joey Starts at TSOT and Jeff goes 37Signals
- How To Doom Your Own Industry
- It's Sigmoidal, Stupid!
- Quick Update on Secured OS X Mail
- Alpha Geeks and Jedi Hooligans
- Now Fake Steve is Getting Close To Home
- Nice Rant on the Sanctity of Farming
- They Must Have Been Reading This Blog
- Well, so much for Reddit
- Zipcar: My Other Car is a Mini Convertible Named Munster
- XKCD Job Interview
- John C. Dvorak Misses It
- Protecting Your OS X Mail With Encrypted Volumes
- Fake Steve Jobs hits it
- My Favorite Bit From Herodotus
- Enterprise Software - like on the spaceship, right?
- So why, again, are you taking so long?
- That sounds about right for Oberlin
- Music, With Occasional City
- How to do Google Maps-Style Scrolling Windows with JavaScript and DHTML
- The Young Gods Play Kurt Weill
- Want a Rails Job?
- Quote of the Day
- Witty and Vibrant, Sensitive and Cranky
- Facebook, already - geez
- The Bolivarian Republic of Wednesday and Pudge
- Here are the real links for the previous post
- Venezuela: How To Have A Good Party
- It's a PHONE that runs UNIX!
- Congratulations Pat & Chris!
- About Venezuela: Traffic
- Venezuela Stuff Coming Later - But While I'm Recovering...
- My most popular posts are un-published!
- ... that creepy ass botox-phenomenon
- Prototype Library and JavaScript
- Godin LG Hmb - my new guitar
- Safari For Windows - What Apple Missed
- Joel Corrects Himself In Mid-Post
- Yorkville's Summer of Love with Gucci
- Update: Coffee
- RJS / AJAX Highlight Colouring in Rails
- Looking Real Good!
- Post-something Post on Big Bags
- Disclaimer
- Analgesic Code: Backtrack
- Baby Steps With EMACS
- Back in Santa Cruz
- You know, I agree that we should worry about Global Warming...
- Life Tip: Digitize Your Documents
- Nifty OS X Finder Enhancement With Little AppleScripts
- Toronto DemoCamp 12
- Wednesday and Pudge
- Rails Pub Nite - HAML Cake!
- BAAX!
- With a Good Search You Can Be Organized
- Something people seem to have missed in the Steve Jobs Keynote today...
- Analgesic Code: Rails Test Progress
- New Year's Greeting 2006

All Blog Entries

RSS Feed


Back