Qiita Teams that are logged in
You are not logged in to any team

Log in to Qiita Team
Community
OrganizationEventAdvent CalendarQiitadon (β)
Service
Qiita JobsQiita ZineQiita Blog
5
Help us understand the problem. What is going on with this article?

More than 5 years have passed since last update.

@trapple

Image::Magick && OpenMP有効なImageMagickでエラー回避策

Image::Magick使ってたらこんなエラーが出た。

libgomp: Thread creation failed: Resource temporarily unavailable

どうやらOpenMPという仕組みを取り入れたImageMagickがインストールされていると発生するケースらしい。
(OpenMPってのはスレッドの仕組みっぽい:wiki

以下回避策

OpenMP無効のImageMagickをインストールしなおす。

のだけれどCentOSはデフォのyum install でOpenMP有効版が入るようなので面倒臭い。(参考

手っ取り早いのは

環境変数でスレッド無効にする

export MAGICK_THREAD_LIMIT=1;
#CGIなら
BEGIN { 
  $ENV{MAGICK_THREAD_LIMIT}=1; 
} 
5
Help us understand the problem. What is going on with this article?
Why not register and get more from Qiita?
  1. We will deliver articles that match you
    By following users and tags, you can catch up information on technical fields that you are interested in as a whole
  2. you can read useful information later efficiently
    By "stocking" the articles you like, you can search right away
5
Help us understand the problem. What is going on with this article?