Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby/20.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Ruby on rails ruby on rails rmagick can';别用了,克劳德_Ruby On Rails_Ruby_Rmagick_Cloud9 - Fatal编程技术网

Ruby on rails ruby on rails rmagick can';别用了,克劳德

Ruby on rails ruby on rails rmagick can';别用了,克劳德,ruby-on-rails,ruby,rmagick,cloud9,Ruby On Rails,Ruby,Rmagick,Cloud9,我正在使用cloud9 我想使用gem'rmagick',但使用bundle时,出现以下错误消息 请帮忙 Gem::Ext::BuildError:错误:无法生成Gem本机扩展 当前目录: /usr/local/rvm/gems/ruby-2.4.0/gems/rmagick-2.16.0/ext/rmagick /usr/local/rvm/rubies/ruby-2.4.0/bin/ruby-r ./siteconf20180204-XXXXXX-oyXXpq.rb extconf.rb检查

我正在使用cloud9

我想使用gem'rmagick',但使用bundle时,出现以下错误消息

请帮忙

Gem::Ext::BuildError:错误:无法生成Gem本机扩展

当前目录: /usr/local/rvm/gems/ruby-2.4.0/gems/rmagick-2.16.0/ext/rmagick /usr/local/rvm/rubies/ruby-2.4.0/bin/ruby-r ./siteconf20180204-XXXXXX-oyXXpq.rb extconf.rb检查gcc。。。对 正在检查Magick配置。。。没有检查pkg配置。。。对 在pkg配置搜索路径中未找到包MagickCore。 也许您应该将包含“MagickCore.pc”的目录添加到 PKG_CONFIG_PATH环境变量未找到包“MagickCore”
检查是否存在过时的ImageMagick版本(使用命令提示符install/update
ImageMagick
via

sudo apt-get update
然后


希望使用命令提示符install/update
imagemagick
via对您有所帮助

sudo apt-get update
然后


希望它能有所帮助

我刚刚开发了一个Cloud9虚拟机并进行了尝试

我尝试使用的Cloud9 VM使用
yum
作为软件包管理器。这意味着我通过
sudo-yum-install-ImageMagick-devel
安装了ImageMagick……当我这样做时,我的
gem-install-rmagick
工作正常


没有在Bundler中尝试,但是如果
gem安装
有效,那么它也应该在Bundler中有效。

我刚刚启动了一个Cloud9虚拟机并尝试了它

我尝试使用的Cloud9 VM使用
yum
作为软件包管理器。这意味着我通过
sudo-yum-install-ImageMagick-devel
安装了ImageMagick……当我这样做时,我的
gem-install-rmagick
工作正常


没有在Bundler中尝试,但是如果
gem安装
起作用,那么它也应该在Bundler中起作用。

是否安装了
imagemagick
?是否安装了
imagemagick