I don't have directories such as Ruby200 and Ruby 64. I'd installed them a few months ago. But I deleted them all.
Now I'm trying to install ruby v2.2.6(86) and use devkit. But there are some errors like "Skipping invalid directory" What do I have to do?
C:\Ruby22\devkit>ruby dk.rb init
[INFO] found RubyInstaller v2.0.0 at C:/Ruby200
[INFO] found RubyInstaller v2.2.6 at C:/Ruby22
[INFO] found RubyInstaller v2.3.3 at C:/Ruby64
Initialization complete! Please review and modify the auto-generated
'config.yml' file to ensure it contains the root directories to all
of the installed Rubies you want enhanced by the DevKit.
C:\Ruby22\devkit>ruby dk.rb install -f
[ERROR] Skipping invalid directory 'C:/Ruby200'
[WARN] Updating (with backup) existing gem override for 'C:/Ruby22'
[WARN] Updating (with backup) DevKit helper library for 'C:/Ruby22'
[ERROR] Skipping invalid directory 'C:/Ruby64'
it also makes problem
C:\Ruby22\devkit>ruby dk.rb install
[ERROR] Skipping invalid directory 'C:/Ruby200'
[INFO] Updating convenience notice gem override for 'C:/Ruby22'
[INFO] Installing 'C:/Ruby22/lib/ruby/site_ruby/devkit.rb'
[ERROR] Skipping invalid directory 'C:/Ruby64'
The DevKit script looks at some Registry Keys that were set during a RubyInstaller installation.
When you removed the other Ruby installations you just deleted them instead of using the uninstaller that came with RubyInstaller. That left the Registry Keys as dangling pointing at deleted registrations.
A registry cleanup tool might be able to pick them and fix it for you, if not you may have to manually clean it up yourself.
Related
I have got this error when running bundle install
Gem::InstallError: The 'puma' 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'
I'm using RailsInstaller which already has DevKit.
I didn't have this problem before but I seem to get it after I changes the ruby version from 2.2.4 to 2.2.5. I'm using a windows computer. Any idea how to solve this issue?
I solved the problem by following these instruction:
download devkit from here.
Install the file in DevKit folder
open cmd and navigate to the folder
Copy the path of the ruby folder you installed in C drive and paste it in the DevKit\config.yml. Change ‘/’ in the path to ‘\’.
It should look like this:
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---
- C:\Ruby22
Run ruby dk.rb install
Back to your rails folder, run bundle install and you should not have any errors
EDIT: After correcting my job configuration, I now receive the following error when running this job:
[workspace] $ /usr/local/bin/bin/rake kickoff
/usr/bin/env: ruby: No such file or directory
Build step 'Invoke Rake' marked build as failure
Finished: FAILURE
I am trying to set up a Jenkins server to run cucumber tests via a rake task.
I have the rake plugin installed, ruby 2.0.0 installed, and all necessary gems installed. I also have Rubygems installed.
Rake is installed here:
/usr/local/bin/rake
Ruby is installed here:
/usr/local/bin/ruby
Here is a screenshot of the Rake configuration for Jenkins:
Here is a screenshot of the Ruby configuration for Jenkins:
Despite what that warning says, Rubygems is installed to:
/usr/local/bin/gem
When I try to run a simple test (that just evaluates to true always), I get the following error:
Building in workspace /webdata/jenkins/jobs/kickoff_build/workspace
Updating https://svnprod.x.net/svn/x/trunk/inside_automation at revision '2015-07-10T09:50:36.495 -0400'
At revision 9227
no change for https://svnprod.x.net/svn/x/trunk/inside_automation since the previous build
FATAL: /usr/bin/rake doesn't exist
Build step 'Invoke Rake' marked build as failure
Finished: FAILURE
Why is it looking for rake in /usr/bin ???? I pointed this job directly to the directory of the rake file, /usr/local/bin/rake?
I was able to correct this issue, and several others, by creating a symlink to the rake executable.
I need a little help. How do I resolve this problem?
When I call cucumber I get the following error:
*** WARNING: You must use ANSICON 1.31 or higher (https://github.com/adoxa/ansic
on/) to get coloured output on Windows
WARNING: cannot load such file -- 2.2/gherkin_lexer_en
Couldn't load 2.2/gherkin_lexer_en
The $LOAD_PATH was:
lib
C:/Ruby22/lib/ruby/gems/2.2.0/gems/cucumber-1.3.19/bin/../lib
C:/Ruby22/lib/ruby/gems/2.2.0/gems/builder-3.2.2/lib
C:/Ruby22/lib/ruby/gems/2.2.0/gems/diff-lcs-1.2.5/lib
C:/Ruby22/lib/ruby/gems/2.2.0/gems/multi_json-1.11.0/lib
C:/Ruby22/lib/ruby/gems/2.2.0/gems/gherkin-2.12.2-x86-mingw32/lib
[...]
System:
Windows 8.1 x64
Ruby 2.2.1 installer
I got answer:
https://github.com/cucumber/cucumber/issues/830#issuecomment-90837546
I'm afraid Cucumber on Windows/Ruby requires ruby 2.0.0 (x86). The
reason is that the gherkin gem doesn't yet ship with compiled binaries
for more recent versions or Ruby, and not for x64.
We're working on a Gherkin3 which will address this issue. See this
post for background. I cannot give you an ETA, but it's at least a few
months away.
I download Ruby 2.0 x86 from http://rubyinstaller.org/downloads/
Install exe
Command in cmd: gem install calabash-android
ERROR: Error installing calabash-android:
The 'json' native gem requires installed build tools.
Download from http://rubyinstaller.org/downloads/ DevKit-mingw64-32-4.7.2-20130224-1151-sfx.exe
Extract DevKit to path C:\Ruby200\DevKit
Run cd C:\Ruby200\DevKit
Run ruby dk.rb init
Run ruby dk.rb review
Run ruby dk.rb install
And again use command gem install calabash-android
I have simply solved by removing Gherkin and reinstalling it by bundle install
gem uninstall gherkin
>> select all
bundle install
This problem looks like this issue. Maybe you can resolve by following comments in it. (y)
sanjaykumar5115 commented,
my probelm have been solved after uninstalling gherkin and installing gherkin-2.12.1-x86-mingw32
I am trying install devkit on windows 7 but getting below error while issuing command
ruby dk.rb install.
[INFO] Skipping existing gem override for 'C:/RailsInstaller/Ruby1.9.3'
[WARN] Skipping existing DevKit helper library for 'C:/RailsInstaller/Ruby1.9.3'
So i tried >ruby dk.rb install --force but now i am getting this error,
[WARN] Updating (with backup) existing gem override for 'C:/RailsInstaller/Ruby1
.9.3'
[WARN] Updating (with backup) DevKit helper library for 'C:/RailsInstaller/Ruby1
.9.3'
I have installed ruby using rails installer.
This is the content in my config.yml file,
# 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 path to the Ruby root directory.
#
# Example:
#
# ---
# - C:/ruby19trunk
# - C:/ruby192dev
#
---
- C:\RailsInstaller\Ruby1.9.3
Is just a warning, ignore it, don't --force it, use Ruby and live long and prosper.
I'm trying to install the Ruby Development Kit from http://rubyinstaller.org/downloads but I run into some problems at the command prompt.
After running C:\Ruby\DevKit>ruby dk.rb init I got the following success response:
[INFO] found RubyInstaller v2.0.0 at C:/Ruby/Ruby200-x64
Initialization complete! Please review and modify the auto-generated 'config.yml' file to ensure it contains the root directories to all of the installed Rubies when you run 'ruby dk.rb install'.
Then I ran C:\Ruby\DevKit>ruby dk.rb review and got this success response:
Based upon the settngs 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:/Ruby/Ruby200-x64
Finally, I ran the C:\DevKit>ruby dk.rb install line, as it seems everything was working fine up until this point. Unfortunately, I keep getting this message:
[ERROR] Skipping invalid directory 'C:/Ruby/Ruby200-x64'
I don't know what to do! Thanks kindly for the help.
I had the same error. As mentioned by TSG, config.yml had wrong path for ruby. For example, mine installed it to c:\Ruby200x64 but the config.yml had it as c:\Ruby200-x64 .
config.yml takes it from path variables of windows. If you use windows, I suggest you to update your path environment variables as well.. both user variables and system variables..
Looks like you changed the name of your Ruby directory from Ruby200-x64 to Ruby. In your DevKit folder, open the file "config.yml" and change the last line to reflect the proper folder name of your Ruby install.