我一直在挖掘StackOverflow的答案,但经过三天的失败后,我放弃了安装Ruby。
目前我已安装:
我在配置过程中遇到错误。我已经尝试过从SMF切换到Homebrew,但这并不好。
以下是我遇到的错误:
Error running 'env LDFLAGS=-L/opt/sm/pkg/active/lib CFLAGS=-I/opt/sm/pkg/active/include CPATH=/opt/sm/pkg/active/include ./configure --prefix=/Users/Unwired/.rvm/rubies/ruby-1.9.3-p392 --with-opt-dir=/usr/local/opt/libyaml:/usr/local/opt/readline:/usr/local/opt/libxml2:/usr/local/opt/libxslt:/usr/local/opt/libksba:/usr/local/opt/openssl:/usr/local/opt/sqlite --disable-install-doc --without-tcl --without-tk --enable-shared',
please read /Users/Unwired/.rvm/log/ruby-1.9.3-p392/1366883126_configure.log
There has been an error while running configure. Halting the installation.
我很高兴开始学习RoR,但安装它很痛苦。
答案 0 :(得分:0)
请按照以下步骤操作:
C:
上提取DevKit,即C:\DevKit
。Environment Variables > Path
,即C:\DevKit\bin;
。cmd
并输入以下内容:ruby dk.rb ruby dk.rb init ruby dk.rb install
cmd
并输入gem install rails
。gem install mysql
。注意:确保将Ruby的路径复制到Environment Variables > Path
。可以选择在那里安装Ruby on rails。
答案 1 :(得分:0)
您使用的是Linux环境吗? 如果是,请按照“here”中的说明进行操作。