Re: [問題] 外行人請教如何在ruby上安裝程式?

看板Ruby作者 (....)時間11年前 (2013/11/09 18:41), 編輯推噓5(5011)
留言16則, 9人參與, 最新討論串2/2 (看更多)
: 推 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
homebrew是mac上的東西,去imagemagick網站上看怎麼裝吧
11/09 20:02, 1F

11/09 20:04, , 2F
雖然我覺得他沒有要讓你在WINDOW上用的意思……
11/09 20:04, 2F

11/09 20:05, , 3F
我是說kindai.rb
11/09 20:05, 3F

11/09 23:33, , 4F
雖然有點殘酷但我建議你放棄 windows 環境...
11/09 23:33, 4F

11/10 00:17, , 5F
真的沒有在window上解決辦法嗎!?這下可很傷腦筋了
11/10 00:17, 5F

11/10 00:20, , 6F
其實理論上只要有 C compiler 是裝得起來的, 只是外行人
11/10 00:20, 6F

11/10 00:20, , 7F
來的話可能難度很高...
11/10 00:20, 7F

11/10 00:27, , 8F
MinGW+GCC+Make 難度有點高,linux上還比較簡單一點
11/10 00:27, 8F

11/10 16:34, , 9F
簡單來說就是越級打怪同時只有新手裝XD
11/10 16:34, 9F

11/10 17:14, , 10F
在WIN上搞ruby超麻煩 我光是要裝octopress的一個套件
11/10 17:14, 10F

11/10 17:15, , 11F
結果去rubygem查了裝了只跟我說不支援64位元
11/10 17:15, 11F

11/10 18:08, , 12F
給樓上 不是只有Ruby啊www 直譯語言常常以unix-like為主
11/10 18:08, 12F

11/10 22:38, , 13F
我也只舉一個例子而已 又沒說"只"www
11/10 22:38, 13F

11/11 15:05, , 14F
gem是讓你可以在ruby中call imagemagick. 你還是要先裝im
11/11 15:05, 14F

11/13 01:03, , 15F
由於不能在wndow上成功使用,只好放棄。感謝各位的指導
11/13 01:03, 15F

11/13 09:27, , 16F
用虛擬機灌ubuntu玩吧
11/13 09:27, 16F
文章代碼(AID): #1IVX5Qmo (Ruby)
文章代碼(AID): #1IVX5Qmo (Ruby)