> i tried a lot to solve the problem, and i found that the OpenMP
> resource that rMagick uses to access imagemagick is not set in the
> last linux ubuntu version, Hardy Heron. the solution maybe was to
> recompile the GCC compiler (!) to make it run correctly.
I was in the same boat and DID choose to recompile gcc. Your
suspicion was correct. It all then worked. Though it wasn't fun :)
For anyone else running into the same error (and obtained gcc via
build-essential) you can fix it by doing the following:
1. Uninstall build-essential with 'sudo apt-get remove build-
essential'
2. Reinstall with gcc v 4.1: 'sudo apt-get install build-essential
libglut3-dev gcc-4.1 g++-4.1 -y'
3. Tell system to use this version of gcc: 'sudo update-alternatives --
install /usr/bin/gcc gcc /usr/bin/gcc-4.1 60 --slave /usr/bin/g++ g++ /
usr/bin/g++-4.1
sudo update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-4.2
40 --slave /usr/bin/g++ g++ /usr/bin/g++-4.2'
4. Re-configure, make, and install ImageMagick
5. Uninstall rmagick gem
6. Reinstall rmagick gem
Steps 2 and 3 found in this post:
http://lifeofaprogrammergeek.blogspot.com/2008/05/cuda-development-in-ubuntu.html