[Locomotive-users] RMagick again
Timo Hoepfner
th-dev at onlinehome.de
Tue Jun 27 14:11:07 GMT 2006
Hi,
You can limit the number of pages read into memory to "my_limit" when
using ::Magick::Image.read(path_to_file)
{self.number_scenes=my_limit}. This somehow doesn't work when using
the rails112rmagick_x86 bundle. It works fine with Locomotive 1 and
the rails-1.0.0-max bundle.
Locomotive 1:
>> ::Magick::Image.read("/Users/admin/a.pdf").size
=> 5
>> ::Magick::Image.read("/Users/admin/a.pdf")
{self.number_scenes=1}.size
=> 1
Locomotive 2:
>> ::Magick::Image.read("images/a.pdf").size
=> 5
>> ::Magick::Image.read("images/a.pdf"){self.number_scenes=1}.size
=> 5
Any ideas? I just locked-up my machine for half an hour by running
the last statement on a 150 page PDF file...
I tried upgrading to the latest rmagick, but I got the following error:
th% gem update rmagick
Upgrading installed gems...
Updating Gem source index for: http://gems.rubyforge.org
Attempting remote upgrade of rmagick
Attempting remote installation of 'rmagick'
Building native extensions. This could take a while...
configure: error: Can't install RMagick. Can't find libMagick or one
of the dependent libraries.
Check the config.log file for more detailed
information.
ERROR: While executing gem ... (RuntimeError)
ERROR: Failed to build gem native extension.
Gem files will remain installed in /Applications/Locomotive2/Bundles/
rails112rmagick_x86.locobundle/framework/lib/ruby/gems/1.8/gems/
rmagick-1.12.0 for inspection.
ruby gem_config.rb update rmagick\n
sh configure
Configuring RMagick 1.12.0
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
checking whether we are cross compiling... no
checking for suffix of executables...
checking for suffix of object files... o
checking whether we are using the GNU C compiler... yes
checking whether gcc accepts -g... yes
checking for gcc option to accept ANSI C... none needed
checking for ruby... /Applications/Locomotive2/Bundles/
rails112rmagick_x86.locobundle/framework/bin/ruby
checking for Magick-config... Magick-config
checking for InitializeMagick in -lMagick... no
RMagick configuration failed with status 1.
Results logged to /Applications/Locomotive2/Bundles/
rails112rmagick_x86.locobundle/framework/lib/ruby/gems/1.8/gems/
rmagick-1.12.0/gem_make.out
Timo
More information about the Locomotive-users
mailing list