rmagick: cannot allocate memory
Promlem.
When one of our clients try to rails app, which use rmagick he got error in log:
libgomp: Thread creation failed: Cannot allocate memory
Solution.
First of all remove rmagick:
gem uninstall rmagick
Second step is recompile ImageMagick with –disable-openmp option. You can get latest ImageMagick source here. I’ll describe software installation from sources process here. Than simple steps
tar -xzf ImageMagick-6.6.3-1.tar.gz
cd ImageMagick-6.6.3-1/
./configure –prefix=/usr –disable-openmp
make
make install
If all installed successfully you can install rmagick and use it.
gem install rmagick