zoukankan      html  css  js  c++  java
  • installed RMagick 2.13.1 on Windows with Ruby v1.9.x ERROR

    I just installed RMagick 2.13.1 successfully on Windows with Ruby v1.9.x !

    Let me spill out the procedure, before I forget.

    1. Install DevKit : https://github.com/oneclick/rubyinstaller/wiki/Development-Kit .
    2. Install ImageMagick 6.6.x with windows installer with headers.
      NOTE: 
      -Do not install ImageMagick in a path which has spaces in it.
      The default path C:/Program Files/... will not work.
      Install it at a simpler path.
      -- Remove any older installations of ImageMagick and RMagick
    3. Set the paths in Environment Variables:

      set DFImageMagick environment variable to where ImageMagick is installed
      set PATH=%DFImageMagick%;%PATH% (if you don't already have it in PATH)
      set CPATH=%DFImageMagick%\include;%CPATH%
      set LIBRARY_PATH=%DFImageMagick%\lib;%LIBRARY_PATH%

    4. Install RMagick gem : gem install rmagick 
      This should say, Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... After some time, Successfully installed rmagick 2.13.1

    5. Verify installation:

      A. convert -version 
      this should give the ImageMagick installation version
      B. gem list --local should list rmagick 2.13.1
      Alternative: in irb, try 
      require 'rmagick' 
      it should return 'true'

    Oh, I do like installations which complete in 5 steps.

    Hope this works for you and others.

  • 相关阅读:
    20170519
    20170515
    20170511
    20170509
    20170505
    使用 FirewallD 构建动态防火墙
    Elasticsearch 5.2.1Cluster 搭建
    elk,centos7,filebeat,elasticsearch-head详细安装步骤
    elk,centos7,filebeat,elasticsearch-head集成搭建
    memcached
  • 原文地址:https://www.cnblogs.com/yaohonv/p/ruby.html
Copyright © 2011-2022 走看看