Re: [問題] 外行人請教如何在ruby上安裝程式?
: 推 mars90226:不用在interactive Ruby裡,直接在cmd下指令 11/09 01:16
: → udet:試過cmd也是一樣的錯誤訊息 11/09 03:07
: → mars90226:不可能一樣的錯誤訊息,你那個錯誤訊息是from (irb): 1 11/09 11:59
: → mars90226:代表是在irb裡,cmd的錯誤訊息要放上來看一下才知道問題 11/09 12:00
之前是誤以為進cmd後得要先進入irb,外行人搞不清楚狀況....
花了很多時間嘗試,還是搞不清楚有些問題怎麼辦?
C:\Documents and Settings\Administrator>gem install kindai
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing kindai:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5... yes
磁碟格式不正確。
Unable to get ImageMagick version
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby193/bin/ruby
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2
.13.2 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/ext/RMagick
/gem_make.out
========================================================================
試著安裝rmagick:
C:\Documents and Settings\Administrator>gem install rmagick
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing rmagick:
ERROR: Failed to build gem native extension.
C:/Ruby193/bin/ruby.exe extconf.rb
checking for Ruby version >= 1.8.5... yes
磁碟格式不正確。
Unable to get ImageMagick version
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers. Check the mkmf.log file for more
details. You may need configuration options.
Provided configuration options:
--with-opt-dir
--without-opt-dir
--with-opt-include
--without-opt-include=${opt-dir}/include
--with-opt-lib
--without-opt-lib=${opt-dir}/lib
--with-make-prog
--without-make-prog
--srcdir=.
--curdir
--ruby=C:/Ruby193/bin/ruby
Gem files will remain installed in C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2
.13.2 for inspection.
Results logged to C:/Ruby193/lib/ruby/gems/1.9.1/gems/rmagick-2.13.2/ext/RMagick
/gem_make.out
===========================================================================
照說明需要用Homebrew來安裝imagemagick:
C:\Documents and Settings\Administrator>brew install ruby imagemagick
'brew' 不是內部或外部命令、
可執行的程式或批次檔。
============================================================
請教該如何解決以上問題?非常感謝!!!
--
※ 發信站: 批踢踢實業坊(ptt.cc)
◆ From: 175.180.66.251
推
11/09 20:02, , 1F
11/09 20:02, 1F
推
11/09 20:04, , 2F
11/09 20:04, 2F
→
11/09 20:05, , 3F
11/09 20:05, 3F
→
11/09 23:33, , 4F
11/09 23:33, 4F
→
11/10 00:17, , 5F
11/10 00:17, 5F
→
11/10 00:20, , 6F
11/10 00:20, 6F
→
11/10 00:20, , 7F
11/10 00:20, 7F
推
11/10 00:27, , 8F
11/10 00:27, 8F
推
11/10 16:34, , 9F
11/10 16:34, 9F
→
11/10 17:14, , 10F
11/10 17:14, 10F
→
11/10 17:15, , 11F
11/10 17:15, 11F
→
11/10 18:08, , 12F
11/10 18:08, 12F
→
11/10 22:38, , 13F
11/10 22:38, 13F
→
11/11 15:05, , 14F
11/11 15:05, 14F
→
11/13 01:03, , 15F
11/13 01:03, 15F
推
11/13 09:27, , 16F
11/13 09:27, 16F
討論串 (同標題文章)
本文引述了以下文章的的內容:
完整討論串 (本文為第 2 之 2 篇):
Ruby 近期熱門文章
PTT數位生活區 即時熱門文章