Rails使用paperclip报CommandNotFoundError错的解决
来源:互联网 发布:h5企业网站源码下载 编辑:程序博客网 时间:2024/05/16 14:05
已安装ImageMagick,但在设定了指定大小后paperclip报错:
Paperclip::Errors::CommandNotFoundError (Could not run the `identify` command. Please install ImageMagick.):Command :: identify -format '%wx%h,%[exif:orientation]' '/var/folders/z2/n3vz292s0z7f995w0_bphm780000gn/T/1ce67fe3a364b6e5918d8fa96478ceef20170222-20952-1cruqw2.png[0]' 2>/dev/null
提示要你安装ImageMagick,但是前面说过已经装过了!!!
使用如下命令查看ImageMagick的信息:
brew info ImageMagick@6ImageMagick@6: stable 6.9.7-9 (bottled) [keg-only]Tools and libraries to manipulate images in many formatshttps://www.imagemagick.org//usr/local/Cellar/ImageMagick@6/6.9.7-9 (1,465 files, 22.2M) Poured from bottle on 2017-02-22 at 18:05:21From: https://github.com/Homebrew/homebrew-core/blob/master/Formula/imagemagick@6.rb==> DependenciesBuild: pkg-config ✔Required: libtool ✔, xz ✔Recommended: jpeg ✔, libpng ✔, libtiff ✔, freetype ✔Optional: fontconfig ✘, little-cms ✘, little-cms2 ✘, libwmf ✘, librsvg ✘, liblqr ✘, openexr ✘, ghostscript ✘, webp ✘, openjpeg ✘, fftw ✘, pango ✘==> RequirementsOptional: perl >= 5.5 ✔==> Options--with-fftw Compile with FFTW support--with-fontconfig Build with fontconfig support--with-ghostscript Build with ghostscript support--with-hdri Compile with HDRI support--with-liblqr Build with liblqr support--with-librsvg Build with librsvg support--with-libwmf Build with libwmf support--with-little-cms Build with little-cms support--with-little-cms2 Build with little-cms2 support--with-opencl Compile with OpenCL support--with-openexr Build with openexr support--with-openjpeg Build with openjpeg support--with-openmp Compile with OpenMP support--with-pango Build with pango support--with-perl Compile with PerlMagick--with-quantum-depth-16 Compile with a quantum depth of 16 bit--with-quantum-depth-32 Compile with a quantum depth of 32 bit--with-quantum-depth-8 Compile with a quantum depth of 8 bit--with-webp Build with webp support--with-zero-configuration Disables depending on XML configuration files--without-freetype Build without freetype support--without-jpeg Build without jpeg support--without-libpng Build without libpng support--without-libtiff Build without libtiff support--without-magick-plus-plus disable build/install of Magick++--without-modules Disable support for dynamically loadable modules--without-threads Disable threads support==> CaveatsThis formula is keg-only, which means it was not symlinked into /usr/local.Older version of imagemagickIf you need to have this software first in your PATH run: echo 'export PATH="/usr/local/opt/ImageMagick@6/bin:$PATH"' >> ~/.bash_profileFor compilers to find this software you may need to set: LDFLAGS: -L/usr/local/opt/ImageMagick@6/lib CPPFLAGS: -I/usr/local/opt/ImageMagick@6/includeFor pkg-config to find this software you may need to set: PKG_CONFIG_PATH: /usr/local/opt/ImageMagick@6/lib/pkgconfig
进入/usr/local/opt/ImageMagick@6/bin查看,命令都在,应该是没有加入到path中去:
echo 'export PATH="/usr/local/opt/ImageMagick@6/bin:$PATH"' >> ~/.bash_profile
现在ok了!
0 0
- Rails使用paperclip报CommandNotFoundError错的解决
- window中rails用paperclip报错
- rails paperclip
- rails应用paperclip
- rails rails_kindeditor paperclip
- rails rails_kindeditor paperclip
- Rails g -h报错json:_rb_str_new_static的解决
- ruby on rails 报错解决
- cygwin下使用paperclip
- Ubuntu下rails安装passenger报错uninitialized constant Bundler::Plugin::API::Source的解决
- Rails报找不到sanitize和raw方法的解决
- ubuntu16.04 安装 gem install rails报错解决
- jsp的include使用报错解决
- rails 常见报错
- rails为paperclip上传文件添加访问控制
- Ruby on Rails邮件Mailer和上传附件paperclip
- Linux环境下安装ruby和rails gems时,openssl和zlib报错问题的解决
- rails generate controller报错
- jdbc : mysql 6.05加载踩坑
- 《C++primer》阅读笔记<一> (C++对C的升级)
- 从零开始学Scala系列(二)之初识Scala
- 在自己的网页上插入动态的百度地图
- Moeditor Win 网盘分享
- Rails使用paperclip报CommandNotFoundError错的解决
- 217. Contains Duplicate
- C指针
- mysql分区表
- 密码锁
- domain path 详解
- VMware 安装 Center OS(二)
- 2016主流编程语言的详细对比
- Angular2的模块架构浅谈