OSx Aptana not finding RMagick

Subscribe to OSx Aptana not finding RMagick 4 post(s), 2 voice(s)

 
Avatar kimberly 3 post(s)

Hi,
I just got Rubystack installed, moved my old app, fired it up and all is great. Thanks!
Now I want to configure my IDE, Aptana, to work with rubystack. I need help getting Aptana to use rubystacks Imagemagick/Rmagick.
I get the error: no such file to load—RMagick.so (MissingSourceFile)
because I am using: require ‘RMagick’ in a plugin.

Please advise me on how to get Aptana to see rubystack’s Rmagick files.

 
Avatar danoo Administrator 4 post(s)

Hi Kimberly,

Probably the only thing you need to do is setting environment variable MAGICK_CODER_MODULE_PATH and updating PATH inside Aptana RadRails IDE. It was already described here:

Another thing I was doing in past is to set following environment variables directly in environment.rb file or just add them to one of initializers (Rails 2.0). You can find the example below:

ENV[“MAGICK_CODER_MODULE_PATH”]=”/bitnami/rubystack/common/lib/ImageMagick-6.3.4/modules-Q16/coders”
ENV[“GS_FONTPATH”] = ”/bitnami/rubystack/common/share/ghostscript/fonts”
ENV[“MAGICK_CONFIGURE_PATH”]=”/bitnami/rubystack/common/lib/ImageMagick-6.3.4/config”
ENV[“GS_LIB”] = ”/bitnami/rubystack/common/share/ghostscript/fonts”

I hope it helps. Let us know if you still have problems.

greetz
Danoo

 
Avatar kimberly 3 post(s)

Hi Danoo,
Thanks for the suggestions. I read those two posts, but I am running Aptana on a Mac OSX not Windows. I also tried setting the environment variables as you suggested, still getting the same missing source file error as before. Any other suggestions?

Thanks,
Kimberly

 
Avatar kimberly 3 post(s)

Hi,
I figured it out. I had a old copy of Ruby that Aptana was using.
Just a recap:
Aptana on a Mac – you only need to set the preferences – no need to add any environment variables
Make sure you have no other ruby packages installed anywhere.

Thanks.