我已经在Windows上安静地开发了几周没有添加任何宝石,今天我决定进行捆绑更新,但我无法通过这个名为therubyracer的宝石.我安装了devkit,它正在根据文档的验证程序工作.
我的问题是:有没有办法在Windows上安装这个宝石?
这个gem是否需要rails 3.1,这就是为什么现在我进行捆绑更新它会被"滑入"rails 3.0.8作为未来3.1迁移的早期启动手势?
# Gemfile
# source 'http://rubygems.org'
source :rubygems
gem 'rails'
gem 'rake', '0.8.7'
gem 'youtube_it'
gem 'panda'
gem "nifty-generators"
# gem "mongoid", "2.0.0.rc.7"
gem "mongoid"
gem "mongoid-eager-loading"
# gem 'mongoid_search'
gem "bson_ext", ">1.1.5"
gem 'devise'
gem 'cancan'
gem 'hirb'
# gem 'heroku'
gem 'rest-client'
gem 'less' # needs the more plugin
# gem 'hash_extension'
gem 'aws-s3', :require => 'aws/s3' # s3.rb
gem 'jquery-rails', ">= 0.2.7" # rails g jquery:install
# gem 'mongrel', ">= 1.2.0.pre2"
gem …Run Code Online (Sandbox Code Playgroud) 我已经将Ruby 2.0与Windows Ruby安装程序,Unpacked DevKit(DevKit-mingw64-64-4.7.2-20130224-1432-sfx.exe)一起安装到Program Files并运行
ruby dk.rb init
Run Code Online (Sandbox Code Playgroud)
但生成的config.yml文件没有列出我的Ruby路径.其内容如下:
# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply add a line below
# the triple hyphens with the absolute …Run Code Online (Sandbox Code Playgroud) 当我尝试设置Devkit路径时,我最终得到以下错误
C:\Devkit>ruby dk.rb install
Invalid configuration or no Rubies listed. Please fix 'config.yml'
and rerun 'ruby dk.rb install'
Run Code Online (Sandbox Code Playgroud)
我无法解决此错误.有人能帮我吗?
这是我的config.yml文件.
# This configuration file contains the absolute path locations of all
# installed Rubies to be enhanced to work with the DevKit. This config
# file is generated by the 'ruby dk.rb init' step and may be modified
# before running the 'ruby dk.rb install' step. To include any installed
# Rubies that were not automagically discovered, simply …Run Code Online (Sandbox Code Playgroud) 我在rails上安装devick of ruby时遇到问题.这是我得到的错误
C:\DevKit>ruby dk.rb review
Based upon the settings in the 'config.yml' file generated
from running 'ruby dk.rb init' and any of your customizations,
DevKit functionality will be injected into the following Rubies
when you run 'ruby dk.rb install'.
C:/Ruby192
C:/Ruby192/include/ruby-1.9.1
C:\DevKit>ruby dk.rb install
[INFO] Updating convenience notice gem override for 'C:/Ruby192'
[INFO] Installing 'C:/Ruby192/lib/ruby/site_ruby/devkit.rb'
[ERROR] Unable to find RubyGems in site_ruby or core Ruby. Please install RubyGems and rerun 'ruby dk.rb install'.
Run Code Online (Sandbox Code Playgroud)
请帮我
谢谢
我试图按照以下链接中的步骤在Windows上安装Ruby 2.0.0(x64):https: //forwardhq.com/support/installing-ruby-windows ,我被引导到.在查看其他来源后,我认为这是最容易遵循的.
我下载了Ruby Installer然后安装了它.但是,之后,桌面上或开始菜单中没有任何图标指向Ruby IDE,无论如何......奇怪.
因此,在卸载Ruby 2.0.0之后,我安装了Ruby 1.9.4.一样.
然后,我将所有这些下载到相应的DevKit zip文件,然后将其解压缩到C:\ DevKit.
然后,正如指南所说,我在PowerShell中尝试了以下命令:
chdir C:\DevKit
ruby dk.rb init
Run Code Online (Sandbox Code Playgroud)
我得到的是这个:
C:/Ruby193/lib/ruby/1.9.1/win32/registry.rb:172:in `find': unknown encoding name - CP720 (ArgumentError)
from C:/Ruby193/lib/ruby/1.9.1/win32/registry.rb:172:in `initialize'
from C:/Ruby193/lib/ruby/1.9.1/win32/registry.rb:231:in `exception'
from C:/Ruby193/lib/ruby/1.9.1/win32/registry.rb:231:in `raise'
from C:/Ruby193/lib/ruby/1.9.1/win32/registry.rb:231:in `check'
from C:/Ruby193/lib/ruby/1.9.1/win32/registry.rb:254:in `OpenKey'
from C:/Ruby193/lib/ruby/1.9.1/win32/registry.rb:385:in `open'
from C:/Ruby193/lib/ruby/1.9.1/win32/registry.rb:496:in `open'
from dk.rb:118:in `block in scan_for'
from dk.rb:116:in `each'
from dk.rb:116:in `scan_for'
from dk.rb:138:in `block in installed_rubies'
from dk.rb:138:in `collect'
from dk.rb:138:in `installed_rubies'
from dk.rb:146:in `init'
from dk.rb:313:in `run'
from …Run Code Online (Sandbox Code Playgroud) 在Ruby 187中,我从http://rubyinstaller.org/downloads下载了devkit, 并按照https://github.com/oneclick/rubyinstaller/wiki/Development-Kit的说明进行操作.我还通过跟踪冒烟测试确保了devkit的正确安装.
然后我尝试安装蓝布(v2.0.10).它失败了以下错误:
C:\test\typo>gem install bluecloth --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing bluecloth:
ERROR: Failed to build gem native extension.
c:/Ruby187/bin/ruby.exe extconf.rb
checking for srand()... yes
checking for random()... no
checking for rand()... yes
checking for bzero() in string.h,strings.h... no
checking for strcasecmp()... yes
checking for strncasecmp()... yes
checking for mkdio.h... yes
checking for ruby/encoding.h... no
creating extconf.h
creating Makefile
make
gcc -I. …Run Code Online (Sandbox Code Playgroud) 我在尝试安装ruby和rails时遇到了很多问题.在清除以前安装的版本之后,我已经尝试了没有和现在.
当试图运行"gem install rdiscount --platform = ruby"时,我收到以下错误:
C:\Windows\system32>gem install rdiscount --platform=ruby
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing rdiscount:
ERROR: Failed to build gem native extension.
"C:/Program Files (x86)/ruby-1.9.3/bin/ruby.exe" extconf.rb
checking for random()... *** 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 …Run Code Online (Sandbox Code Playgroud) 我正在尝试win32-api在我的机器上安装gem,并且在构建本机扩展时遇到了一些问题:
$ gem install win32-api --no-ri --rdoc
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
C:\Programs\dev_kit\bin\make.exe: *** Couldn't reserve space for cygwin's heap, Win32 error 0
ERROR: Error installing win32-api:
ERROR: Failed to build gem native extension.
c:/Programs/ruby/bin/ruby.exe extconf.rb
checking for strncpy_s()... no
creating Makefile
make
0 [main] us 0 init_cheap: VirtualAlloc pointer is null, Win32 error 487
AllocationBase 0x0, BaseAddress 0x60E90000, RegionSize 0x170000, State 0x10000
C:\Programs\dev_kit\bin\make.exe: *** Couldn't reserve space for …Run Code Online (Sandbox Code Playgroud) 我知道这很简单,但我无法理解.我需要在Ruby中运行一个脚本,它需要Nokogiri.我确实有一些其他语言的经验,但不是Ruby.
这是我的系统:
Ruby 2.0.0-p195(x64)安装在@ C:\ Programs\RubyLanguage上
Ruby开发工具包(mingw64-64-4.7.2-20130224-1432)安装在@ C:\ Programs\RubyDevKit
当我运行时,gem install nokogiri我收到此错误:
ERROR: Error installing nokogiri:
The 'nokogiri' 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'
Run Code Online (Sandbox Code Playgroud)
很容易.所以我按照上面的链接做了第3步.但是第4步说生成"config.yml".所以我做了.现在该文件是一个带有一些注释的空列表.我仍然无法安装Nokogiri,因为上面的错误,我似乎没有得到任何DevKit.我的意思是开发套件安装中的步骤对我来说不够清楚.
现在更新它说Nokogiri的安装失败了(DevKit Works根据步骤5:安装json-1.8.0 1 gem的安装文档)
mkmf.log: package configuration for libxslt is not found
package configuration for libxml-2.0 is not found
package configuration for libiconv is not found
find_header: checking for …Run Code Online (Sandbox Code Playgroud) 当我运行 npm audit 命令时
=== npm 审计安全报告 ===
`Manual Review
Some vulnerabilities require your attention to resolve
Visit https://go.npm.me/audit-guide for additional guidance `
High ? Arbitrary File Overwrite
Package ? tar
Patched in ? >=4.4.2
Dependency of ? @angular-devkit/build-angular [dev]
Path ? @angular-devkit/build-angular > node-sass > node-gyp >tar
More info ? https://nodesecurity.io/advisories/803
Run Code Online (Sandbox Code Playgroud)
它的说法found 1 high severity vulnerability in 42611 scanned packages
1 vulnerability requires manual review。由于它与 相关@angular-devkit/build-angular,我担心它是否会在我的项目中产生任何其他问题。
当我运行 npm audit fix 命令时
npm WARN optional SKIPPING …Run Code Online (Sandbox Code Playgroud)