ruby之——安装gem提示:Please update your PATH to include build tools or download the DevKit
2011-12-08 10:36
761 查看
在安装ruby 的gem的时候可能会出现下面这样的提示, 按照给出的提示有两种办法可以解决, 但是经过在网上的搜索发现只有最后一种可行。 所以特分享于此。
ERROR: Error installing XXXXXXXXXXX:
The 'XXXXXXXXXXXX' native gem requires installed build tools.
Please update your PATH to include build tools or
download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
出错的原因是安装XXXXX的时候,需要build tools,但系统中没有。出错信息中同时也给出了解决的法案:
1. 到 http://rubyinstaller.org/downloads/ 去下载dev kit –
DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe
2. 按照 http://github.com/oneclick/rubyinstaller/wiki/Development-Kit/ 安装dev kit
主要安装步骤如下:
1. 如果原来系统中已经安装了旧版的dev kit, 则删除它
2. 下载上面提到的dev kit
3. 解压下载下来的文件到指定的目录,如c:/devkit。(注意:目录不能有空格)
4, 在安装目录下运行ruby dk.rb,然后按照提示分别运行ruby dk.rb init 和
ruby dk.rb install来增强ruby
5, 可以运行 gem install rdiscount –platform=ruby 来测试是否成功
按照安装步骤,完成了DevKit的安装,非常简单。
然后,再次安装需要的gem即可。
ERROR: Error installing XXXXXXXXXXX:
The 'XXXXXXXXXXXX' native gem requires installed build tools.
Please update your PATH to include build tools or
download the DevKit
from 'http://rubyinstaller.org/downloads' and follow the instructions
at 'http://github.com/oneclick/rubyinstaller/wiki/Development-Kit'
出错的原因是安装XXXXX的时候,需要build tools,但系统中没有。出错信息中同时也给出了解决的法案:
1. 到 http://rubyinstaller.org/downloads/ 去下载dev kit –
DevKit-tdm-32-4.5.1-20101214-1400-sfx.exe
2. 按照 http://github.com/oneclick/rubyinstaller/wiki/Development-Kit/ 安装dev kit
主要安装步骤如下:
1. 如果原来系统中已经安装了旧版的dev kit, 则删除它
2. 下载上面提到的dev kit
3. 解压下载下来的文件到指定的目录,如c:/devkit。(注意:目录不能有空格)
4, 在安装目录下运行ruby dk.rb,然后按照提示分别运行ruby dk.rb init 和
ruby dk.rb install来增强ruby
5, 可以运行 gem install rdiscount –platform=ruby 来测试是否成功
按照安装步骤,完成了DevKit的安装,非常简单。
然后,再次安装需要的gem即可。
相关文章推荐
- RUBY Error: Please update your PATH to include build tools or download the DevKit
- [ndk]Android NDK: Your APP_BUILD_SCRIPT points to an unknown file/Please define the NDK_PROJECT_PATH
- Ruby解决方案:The 'ffi' native gem requires installed build tools ; 含最新DevKit下载地址
- 编译ionic项目的时候提示: Please install the Android build tools version 19.1.0 or higher.
- fedora下安装vmware-tools时提示 The path "" is not a valid path to the $(kernel number) kernel headers
- Ruby解决方案:The 'ffi' native gem requires installed build tools ; 含最新DevKit下载地址
- linux下安装PHP的CI框架,出现Your view folder path does not appear to be set correctly. Please open the following file and correct this: i
- Ruby解决方案:The 'ffi' native gem requires installed build tools ; 含最新DevKit下载地址
- You need to run build with JDK or have tools.jar on the classpath.
- NPM 安装cordova时警告:npm WARN deprecated minimatch@2.0.10: Please update to minimatch 3.0.2 or higher to
- 安装 xcode的时候提示 in order to continue installation,please close the following application
- 安装VMWare Tools出现提示:Enter the path to the kernel header files ...
- How to fix the issue that GEM_HOME and/or GEM_PATH not set issue for rvm in mac version 10.12
- VmWare Tools 安装提示 “The path "" is not a valid path to the.......”
- VirtualBox安装OS异常提示:Unable to boot - please use a kernel appropriate for your CPU.
- 解决在安装VMware tools提示“Unable to find the database file /etc/vmware-tools/location”的问题
- Your project path contains non - ASCII characters. This will most likely cause the build to fail on
- 解决安装vmware-tools出现的“The path "" is not a valid path to the 3.2.0-4-amd64 kernel headers”问题
- VMWARE TOOLS安装提示THE PATH IS NOT A VALID PATH TO THE GENERIC KERNEL HEADERS
- VMware安装Ubuntu17.04的VMware-tools提示:what is the location of the "ifconfig" program on your machin问题解决