I used a script to install ImageMagick http://github.com/masterkain/ImageMagick-sl
我使用一个脚本安装ImageMagick http://github.com/masterkain/ImageMagick-sl。
After a while, I got ImageMagick installed.
过了一会儿,我安装了ImageMagick。
Then I ran sudo gem install rmagick and got
然后我运行了sudo gem安装rmagick并得到。
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
.rvm/rubies/ruby-1.9.2-p0/bin/ruby extconf.rb
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.13.1. Can't find Magick-config in...
I'm working in OSX Snow Leopard with Ruby 1.9.2 and Rails 3. Any ideas?
我在OSX雪豹和Ruby 1.9.2和Rails 3工作。什么好主意吗?
11 个解决方案
#1
105
I was getting the same error and it got resolved after installing the libmagick9-dev library on ubuntu 11.
在ubuntu 11上安装libmagick9-dev库后,我得到了同样的错误,并得到了解决。
Update (Thanks to the commenters - Dec. 2012)
更新(感谢评论——2012年12月)
$ sudo apt-get install libmagickwand-dev
or $ sudo apt-get install graphicsmagick-libmagick-dev-compat
for ubuntu 12
$ sudo -get安装libmagickwand-dev或$ sudo apt-get安装graphicsmagick-libmagick-dev-compat为ubuntu 12。
$ sudo apt-get install libmagickwand-dev
or $ sudo apt-get install libmagick9-dev
for ubuntu 11 or below.
$ sudo -get安装libmagickwand-dev或$ sudo - - -为ubuntu 11或下面安装libmagick9-dev。
$ yum install ImageMagick-devel
for centos
$ yum为centos安装ImageMagick-devel。
$ brew install imagemagick
for Mac OS (using Homebrew)
$ brew为Mac OS安装imagemagick(使用Homebrew)
#2
55
you need the imagemagick libraries under ubuntu
你需要ubuntu下的imagemagick库。
$ sudo apt-get install libmagickwand-dev
$ sudo apt-get安装libmagickwand-dev。
it contains all missing libraires
它包含了所有丢失的图书馆。
then run bundle install
command
然后运行bundle install命令。
#3
25
I believe you need the Imagemagick libraries.
我相信你需要Imagemagick图书馆。
If you are using Homebrew (which I'd highly recommend), simply do
如果你正在使用Homebrew(我强烈推荐),简单地做。
$ brew install imagemagick
Then rerun bundle install
然后重新运行安装包
#4
8
Mac OS Mountain Loin (using Homebrew)
Mac OS Mountain Loin(使用Homebrew)
- download and install http://xquartz.macosforge.org/trac/wiki/X112.7.2
- 下载并安装http://xquartz.macosforge.org/trac/wiki/X112.7.2
brew install imagemagick
- 酿造安装imagemagick
gem install rmagick
- gem安装rmagick
#5
3
sudo apt-get install libmagickwand-dev
works well for Ubuntu 12.10
Ubuntu 12.10运行良好。
This is assuming you have installed all other dependencies viz.
这假设您已经安装了所有其他依赖项。
sudo apt-get install imagemagick ruby ruby-dev gem`
#6
2
On CentOS 5.7, I got it to work by first specifying PKG_CONFIG_PATH
:
在CentOS 5.7中,我通过第一个指定PKG_CONFIG_PATH来实现它:
export PKG_CONFIG_PATH=/usr/local/src/ImageMagick-6.7.5-10/magick/
gem install rmagick
#7
2
For those who got
对于那些有
InitializeMagick() in -lMagickCore... no; -lMagick... no; -lMagick++... no;
this worked for me in OS X 10.8: https://github.com/maddox/magick-installer
这在OS X 10.8中为我工作:https://github.com/maddox/magick-installer。
From here: RVM + Ruby 1.9.2 + Rmagick + Lion = System Works, RVM Doesn't
从这里:RVM + Ruby 1.9.2 + Rmagick + Lion = System Works, RVM没有。
#8
0
Initially, I came around to installing rmagick because it seemed to be a dependency when I tried installing libgtk2.0-dev
. I was trying to install that package, because the RGtk2.0
is a requirement for using R package called rattle
.
最初,我开始安装rmagick,因为当我尝试安装libgtk2.0-dev时,它似乎是一个依赖项。我正在尝试安装这个包,因为RGtk2.0是使用称为拨叫的R包的要求。
Anyway, none of the above solutions worked for me in installing in my Ubuntu 12.04. Even running sudo apt-get update
first didn't seem to help, nor this related posting: Installing rmagick on Ubuntu
无论如何,以上的解决方案都没有在我的Ubuntu 12.04中安装。即使是运行sudo apt-get更新,似乎也没有帮助,这也不是相关的发布:在Ubuntu上安装rmagick。
I eventually found what works is to troubleshoot using sudo aptitude
rather than apt-get
. https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages
最终,我发现了用sudo天赋而不是apt-get来解决问题的方法。https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages
I recommend the technique of using aptitude
to work through the package installation issue.
我推荐使用资质的技巧来解决安装包的问题。
#9
0
On Mac Os X, check if /opt/local/bin
is in your PATH
. If not:
在Mac Os X上,检查/opt/local/bin是否在您的路径中。如果不是:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
sudo gem install rmagick
This worked for me!
这为我工作!
#10
0
I had an issue installing Rmagick gem version 2.13.2 on Debian Jessie. After fighting with the packages in the other answers, I upgraded the version of the Rmagick gem from 2.13.2 to the latest (2.16.0 at time of writing). This installed successfully.
我在Debian Jessie上安装了Rmagick gem版本2.13.2。在与其他答案的包进行了斗争之后,我将Rmagick gem的版本从2.13.2升级到最新版本(在写作时为2.16.0)。这成功安装。
bundle update rmagick
#11
0
If you tried all solutions, of all posts of whole Internet, have installed and reinstalled many times all indicated packages in all Linux or Mac distributions/versions (even in Windows) and it still not working, close your terminal and open it again. Some times, even if your reload all shell environment, only after I reopen the terminal the bundle install was successfully completed.
如果你尝试了所有的解决方案,所有的网络文章,已经安装并重新安装了所有Linux或Mac版本(甚至在Windows中)的所有显示包,并且它仍然不工作,关闭你的终端并再次打开它。有时,即使您重新加载所有shell环境,但只有在我重新打开终端后,bundle安装才成功完成。
#1
105
I was getting the same error and it got resolved after installing the libmagick9-dev library on ubuntu 11.
在ubuntu 11上安装libmagick9-dev库后,我得到了同样的错误,并得到了解决。
Update (Thanks to the commenters - Dec. 2012)
更新(感谢评论——2012年12月)
$ sudo apt-get install libmagickwand-dev
or $ sudo apt-get install graphicsmagick-libmagick-dev-compat
for ubuntu 12
$ sudo -get安装libmagickwand-dev或$ sudo apt-get安装graphicsmagick-libmagick-dev-compat为ubuntu 12。
$ sudo apt-get install libmagickwand-dev
or $ sudo apt-get install libmagick9-dev
for ubuntu 11 or below.
$ sudo -get安装libmagickwand-dev或$ sudo - - -为ubuntu 11或下面安装libmagick9-dev。
$ yum install ImageMagick-devel
for centos
$ yum为centos安装ImageMagick-devel。
$ brew install imagemagick
for Mac OS (using Homebrew)
$ brew为Mac OS安装imagemagick(使用Homebrew)
#2
55
you need the imagemagick libraries under ubuntu
你需要ubuntu下的imagemagick库。
$ sudo apt-get install libmagickwand-dev
$ sudo apt-get安装libmagickwand-dev。
it contains all missing libraires
它包含了所有丢失的图书馆。
then run bundle install
command
然后运行bundle install命令。
#3
25
I believe you need the Imagemagick libraries.
我相信你需要Imagemagick图书馆。
If you are using Homebrew (which I'd highly recommend), simply do
如果你正在使用Homebrew(我强烈推荐),简单地做。
$ brew install imagemagick
Then rerun bundle install
然后重新运行安装包
#4
8
Mac OS Mountain Loin (using Homebrew)
Mac OS Mountain Loin(使用Homebrew)
- download and install http://xquartz.macosforge.org/trac/wiki/X112.7.2
- 下载并安装http://xquartz.macosforge.org/trac/wiki/X112.7.2
brew install imagemagick
- 酿造安装imagemagick
gem install rmagick
- gem安装rmagick
#5
3
sudo apt-get install libmagickwand-dev
works well for Ubuntu 12.10
Ubuntu 12.10运行良好。
This is assuming you have installed all other dependencies viz.
这假设您已经安装了所有其他依赖项。
sudo apt-get install imagemagick ruby ruby-dev gem`
#6
2
On CentOS 5.7, I got it to work by first specifying PKG_CONFIG_PATH
:
在CentOS 5.7中,我通过第一个指定PKG_CONFIG_PATH来实现它:
export PKG_CONFIG_PATH=/usr/local/src/ImageMagick-6.7.5-10/magick/
gem install rmagick
#7
2
For those who got
对于那些有
InitializeMagick() in -lMagickCore... no; -lMagick... no; -lMagick++... no;
this worked for me in OS X 10.8: https://github.com/maddox/magick-installer
这在OS X 10.8中为我工作:https://github.com/maddox/magick-installer。
From here: RVM + Ruby 1.9.2 + Rmagick + Lion = System Works, RVM Doesn't
从这里:RVM + Ruby 1.9.2 + Rmagick + Lion = System Works, RVM没有。
#8
0
Initially, I came around to installing rmagick because it seemed to be a dependency when I tried installing libgtk2.0-dev
. I was trying to install that package, because the RGtk2.0
is a requirement for using R package called rattle
.
最初,我开始安装rmagick,因为当我尝试安装libgtk2.0-dev时,它似乎是一个依赖项。我正在尝试安装这个包,因为RGtk2.0是使用称为拨叫的R包的要求。
Anyway, none of the above solutions worked for me in installing in my Ubuntu 12.04. Even running sudo apt-get update
first didn't seem to help, nor this related posting: Installing rmagick on Ubuntu
无论如何,以上的解决方案都没有在我的Ubuntu 12.04中安装。即使是运行sudo apt-get更新,似乎也没有帮助,这也不是相关的发布:在Ubuntu上安装rmagick。
I eventually found what works is to troubleshoot using sudo aptitude
rather than apt-get
. https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages
最终,我发现了用sudo天赋而不是apt-get来解决问题的方法。https://askubuntu.com/questions/223237/unable-to-correct-problems-you-have-held-broken-packages
I recommend the technique of using aptitude
to work through the package installation issue.
我推荐使用资质的技巧来解决安装包的问题。
#9
0
On Mac Os X, check if /opt/local/bin
is in your PATH
. If not:
在Mac Os X上,检查/opt/local/bin是否在您的路径中。如果不是:
export PATH=/opt/local/bin:/opt/local/sbin:$PATH
sudo gem install rmagick
This worked for me!
这为我工作!
#10
0
I had an issue installing Rmagick gem version 2.13.2 on Debian Jessie. After fighting with the packages in the other answers, I upgraded the version of the Rmagick gem from 2.13.2 to the latest (2.16.0 at time of writing). This installed successfully.
我在Debian Jessie上安装了Rmagick gem版本2.13.2。在与其他答案的包进行了斗争之后,我将Rmagick gem的版本从2.13.2升级到最新版本(在写作时为2.16.0)。这成功安装。
bundle update rmagick
#11
0
If you tried all solutions, of all posts of whole Internet, have installed and reinstalled many times all indicated packages in all Linux or Mac distributions/versions (even in Windows) and it still not working, close your terminal and open it again. Some times, even if your reload all shell environment, only after I reopen the terminal the bundle install was successfully completed.
如果你尝试了所有的解决方案,所有的网络文章,已经安装并重新安装了所有Linux或Mac版本(甚至在Windows中)的所有显示包,并且它仍然不工作,关闭你的终端并再次打开它。有时,即使您重新加载所有shell环境,但只有在我重新打开终端后,bundle安装才成功完成。