作者udet (....)
看板Ruby
标题Re: [问题] 外行人请教如何在ruby上安装程式?
时间Sat Nov 9 18:41:28 2013
: 推 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
1F:推 rexkimta:homebrew是mac上的东西,去imagemagick网站上看怎麽装吧 11/09 20:02
2F:推 rexkimta:虽然我觉得他没有要让你在WINDOW上用的意思…… 11/09 20:04
3F:→ rexkimta:我是说kindai.rb 11/09 20:05
4F:→ hSATAC:虽然有点残酷但我建议你放弃 windows 环境... 11/09 23:33
5F:→ udet:真的没有在window上解决办法吗!?这下可很伤脑筋了 11/10 00:17
6F:→ uranusjr:其实理论上只要有 C compiler 是装得起来的, 只是外行人 11/10 00:20
7F:→ uranusjr:来的话可能难度很高... 11/10 00:20
8F:推 johnlinvc:MinGW+GCC+Make 难度有点高,linux上还比较简单一点 11/10 00:27
9F:推 ck574b027:简单来说就是越级打怪同时只有新手装XD 11/10 16:34
10F:→ k6416337:在WIN上搞ruby超麻烦 我光是要装octopress的一个套件 11/10 17:14
11F:→ k6416337:结果去rubygem查了装了只跟我说不支援64位元 11/10 17:15
12F:→ danny8376:给楼上 不是只有Ruby啊www 直译语言常常以unix-like为主 11/10 18:08
13F:→ k6416337:我也只举一个例子而已 又没说"只"www 11/10 22:38
14F:→ jokester:gem是让你可以在ruby中call imagemagick. 你还是要先装im 11/11 15:05
15F:→ udet:由於不能在wndow上成功使用,只好放弃。感谢各位的指导 11/13 01:03
16F:推 k6416337:用虚拟机灌ubuntu玩吧 11/13 09:27