nak1114 / rbenv-win Goto Github PK
View Code? Open in Web Editor NEWrbenv for Windows
License: MIT License
rbenv for Windows
License: MIT License
Receiving the following error when trying to install 2.2.4.
C:\Users\admin\.rbenv-win\libexec\rbenv-install.vbs(306, 9) (null): The file or directory is corrupted and unreadable.
Hi Team,
I have installed ruby version 2.0.0-p0
and 2.2.4
in windows 7
$ rbenv versions
2.0.0-p0
* 2.2.4 (set by C:\Users\611776127\.rbenv-win\version)
In the my sample project I have added .ruby-version
file
$ cat .ruby-version
2.0.0-p0
When i tried to get ruby --version
it's returning global version.
$ ruby --version
ruby 2.2.4p230 (2015-12-16 revision 53155) [i386-mingw32]
I am trying to get the shell of ruby getting following error
rbenv.vbs(303, 13) Microsoft VBScript runtime error: Type mismatch: 'ver'
$ rbenv versions
* 2.0.0-p0 (set by C:\Users\....\Desktop\test-ruby\.ruby-version)
2.2.4
$ rbenv shell
C:\Users\....\.rbenv-win\libexec\rbenv.vbs(303, 13) Microsoft VBScript runtime error: Type mismatch: 'ver'
Line 303 in f2391f5
Hey,
Thanks for making this, I've found it pretty useful. Do you know how I'd go about getting 2.4.1 supported? I see there's a download site, do you know who keeps it up to date?
It's weird if we not having test uninstall, with out that he need to manually do it ? :(
I have cloned rbenv and set path for bin and shims as directed, and restarted the shell. What I do next?
When I run 'rbenv install 2.2.4' it gives the error;
"bash: rbenv: command not found"
Hey there. The solution will not display the last versions of ruby. I suppose this comes from it not being updated.
Welp this was very cool the time it last. Thanks for your time and hope you'll do something about that sometime but if it never happens : welp ! Life happens. :)
Have good one and thanks again for the time it lasted.
I am trying to get the local version of ruby getting following error
rbenv.vbs(278, 9) Microsoft VBScript runtime error: Type mismatch
$ rbenv versions
* 2.0.0-p0 (set by C:\Users\....\Desktop\test-ruby\.ruby-version)
2.2.4
$ rbenv global
2.2.4
$ rbenv local
C:\Users\....\.rbenv-win\libexec\rbenv.vbs(278, 9) Microsoft VBScript runtime error: Type mismatch: 'ver'
Line 278 in f2391f5
I believe local version needs to .ruby_version
I have uninstalled 2.2.4
from my system using rbenv uninstall 2.2.4
Now when I type rbenv global
it still showing 2.2.4
when I do rbenv rehash
it's throwing following error
C:\Users\....\.rbenv-win\libexec\rbenv.vbs(92, 61) rbenv: version '2.2.4' not installed
$ rbenv versions
2.0.0-p0
I was trying to install rbenv in new system when i tried
rbenv install -l
I got Type mismatch: 'GetCurrentVersionNoError()'
Error.
I just removed (0)
from the above line. Can you please validate it, is that correct.
more quiet 'rehash bundle' command
Looking to install 2.6.3
Looks like I need to rbenv rehash after every installation, felt i need to call the rehash command by default after every installation.
I ran the following command
rbenv install 2.2.4
Output:
download 2.2.4 ...
install 2.2.4 ...
C:\Users[UserName Here].rbenv-win\libexec\rbenv-install.vbs(365, 5) Microsoft VBScript runtime error: Path not found
How do I fix this?
C:\Users\Jason Crockett.rbenv-win\bin>rbenv
The system cannot find the path specified.
The system cannot find the path specified.
Input Error: There is no file extension in "C:\Users\Jason".
The system cannot find the path specified.
'C:\Users\Jason' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\Jason Crockett.rbenv-win\bin>
test.bat
file installed and did couple of operations but it didn't uninstalled them at the end.ruby 2.1.8p440 (2015-12-16 revision 53160) [i386-mingw32]
2.1.8 (set by C:\Users\...\.rbenv-win\version)
1.9.3-p551
2.1.7-x64
* 2.1.8 (set by C:\Users\...\.rbenv-win\version)
:rehash: test
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.
8.gz)
INFO: Could not find files for the given pattern(s).
INFO: Could not find files for the given pattern(s).
:DevKit i386: test
C:\Users\...\.rbenv-win\test\gem_rake_bundler\Gemfile -> C:\Users\...\.rbenv-win\test\test\Gemfile
C:\Users\...\.rbenv-win\test\gem_rake_bundler\Rakefile -> C:\Users\...\.rbenv-win\test\test\Rakefile
C:\Users\...\.rbenv-win\test\gem_rake_bundler\html\index.html -> C:\Users\...\.rbenv-win\test\test\html\index.html
C:\Users\...\.rbenv-win\test\gem_rake_bundler\spec\index_spec.rb -> C:\Users\...\.rbenv-win\test\test\spec\index_spec.rb
C:\Users\...\.rbenv-win\test\gem_rake_bundler\spec\spec_helper.rb -> C:\Users\...\.rbenv-win\test\test\spec\spec_helper.rb
5 File(s) copied
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.
8.gz)
'bundle' is not recognized as an internal or external command,
operable program or batch file.
'bundle' is not recognized as an internal or external command,
operable program or batch file.
'bundle' is not recognized as an internal or external command,
operable program or batch file.
:DevKit x64: test
C:\Users\...\.rbenv-win\test\gem_rake_bundler\Gemfile -> C:\Users\...\.rbenv-win\test\test\Gemfile
C:\Users\...\.rbenv-win\test\gem_rake_bundler\Rakefile -> C:\Users\...\.rbenv-win\test\test\Rakefile
C:\Users\...\.rbenv-win\test\gem_rake_bundler\html\index.html -> C:\Users\...\.rbenv-win\test\test\html\index.html
C:\Users\...\.rbenv-win\test\gem_rake_bundler\spec\index_spec.rb -> C:\Users\...\.rbenv-win\test\test\spec\index_spec.rb
C:\Users\...\.rbenv-win\test\gem_rake_bundler\spec\spec_helper.rb -> C:\Users\...\.rbenv-win\test\test\spec\spec_helper.rb
5 File(s) copied
ERROR: Could not find a valid gem 'bundler' (>= 0), here is why:
Unable to download data from https://rubygems.org/ - SSL_connect returned=1 errno=0 state=SSLv3 read server certificate B: certificate verify failed (https://api.rubygems.org/latest_specs.4.
8.gz)
'bundle' is not recognized as an internal or external command,
operable program or batch file.
'bundle' is not recognized as an internal or external command,
operable program or batch file.
'bundle' is not recognized as an internal or external command,
operable program or batch file.
:DevKit tdm: test
C:\Users\...\.rbenv-win\test\gem_rake_bundler\Gemfile -> C:\Users\...\.rbenv-win\test\test\Gemfile
C:\Users\...\.rbenv-win\test\gem_rake_bundler\Rakefile -> C:\Users\...\.rbenv-win\test\test\Rakefile
C:\Users\...\.rbenv-win\test\gem_rake_bundler\html\index.html -> C:\Users\...\.rbenv-win\test\test\html\index.html
C:\Users\...\.rbenv-win\test\gem_rake_bundler\spec\index_spec.rb -> C:\Users\...\.rbenv-win\test\test\spec\index_spec.rb
C:\Users\...\.rbenv-win\test\gem_rake_bundler\spec\spec_helper.rb -> C:\Users\...\.rbenv-win\test\test\spec\spec_helper.rb
5 File(s) copied
Fetching: rubygems-update-3.0.2.gem (100%)
ERROR: Error installing rubygems-update:
rubygems-update requires Ruby version >= 2.3.0.
'update_rubygems' is not recognized as an internal or external command,
operable program or batch file.
Fetching: bundler-2.0.1.gem (100%)
ERROR: Error installing bundler:
bundler requires Ruby version >= 2.3.0.
'bundle' is not recognized as an internal or external command,
operable program or batch file.
'bundle' is not recognized as an internal or external command,
operable program or batch file.
'bundle' is not recognized as an internal or external command,
operable program or batch file.
C:\Users\...\.rbenv-win\test>rbenv versions
1.9.3-p551
2.1.7-x64
* 2.1.8 (set by C:\Users\...\.rbenv-win\version)
C:\Users\...\.rbenv-win\test>
I've installed ruby 2.4.3 on windows 10 x64 manually.
Then I found this great tool thus I installed it and run below commands to switch to ruby 2.2.2 for another old project.
However, it seems version switch doesn't work as ruby -v always pointing to the manually installed version 2.4.3.
Is anything wrong I've made or would you please have a look?
Microsoft Windows [Version 10.0.16299.125]
(c) 2017 Microsoft Corporation. All rights reserved.
C:\Users\Nathanael>rbenv versions
* 2.2.2 (set by C:\Users\Nathanael\.rbenv-win\version)
C:\Users\Nathanael>rbenv global 2.2.2
C:\Users\Nathanael>rbenv rehash
C:\Users\Nathanael>ruby -v
ruby 2.4.3p205 (2017-12-14 revision 61247) [x64-mingw32]
After installing ruby 2.3.1 I installed bundler 1.16.0 and tried a bundle command inside a sample rails app. Here is the error
$ bundle
DL is deprecated, please use Fiddle
The git source git://github.com/plataformatec/devise.git
uses the git
protoc
ol, which transmits data without encryption. Disable this warning with bundle c onfig git.allow_insecure true
, or switch to the https
protocol to keep your d
ata secure.
C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/bundler-1.16.
0/lib/bundler.rb:379:in expand_path': can't find user 22 (ArgumentError) from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/ bundler-1.16.0/lib/bundler.rb:379:in
block in which'
from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/
bundler-1.16.0/lib/bundler.rb:377:in each' from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/ bundler-1.16.0/lib/bundler.rb:377:in
find'
from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/
bundler-1.16.0/lib/bundler.rb:377:in which' from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/ bundler-1.16.0/lib/bundler.rb:452:in
git_present?'
from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/
bundler-1.16.0/lib/bundler/source/git/git_proxy.rb:57:in initialize' from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/ bundler-1.16.0/lib/bundler/env.rb:84:in
new'
from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/
bundler-1.16.0/lib/bundler/env.rb:84:in git_version' from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/ bundler-1.16.0/lib/bundler/env.rb:119:in
environment'
from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/
bundler-1.16.0/lib/bundler/env.rb:17:in report' from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/ bundler-1.16.0/lib/bundler/friendly_errors.rb:96:in
request_issue_report_for'
from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/
bundler-1.16.0/lib/bundler/friendly_errors.rb:46:in log_error' from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/ bundler-1.16.0/lib/bundler/friendly_errors.rb:126:in
rescue in with_friendly_er
rors'
from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/
bundler-1.16.0/lib/bundler/friendly_errors.rb:122:in with_friendly_errors' from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/lib/ruby/gems/2.1.0/gems/ bundler-1.16.0/exe/bundle:22:in
<top (required)>'
from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/bin/bundle:23:in load' from C:/Users/Vishnu/.rbenv-win/versions/2.1.3/bin/bundle:23:in
Edit: Tried the same with another installation of ruby (2.2.4) and got the same error.
hi there, thanks for this wonderful app !
I expected to have irb
command available in my PowerShell but it was not there.
I suppose it should be in shims directory (which is in my path), but neither erb, gem, irb, rdoc nor ri are in the shims ; even after rehash.
I've added the versions\2.3.1-x64\bin\ directory to my path as fix, but I assume this should not be necessary.
See above for details.
PS C:\Users\pierr\.rbenv-win> rbenv --version
rbenv 0.0.5-06
PS C:\Users\pierr\.rbenv-win> ruby -v
ruby 2.3.1p112 (2016-04-26 revision 54768) [x64-mingw32]
PS C:\Users\pierr\.rbenv-win> rbenv rehash
PS C:\Users\pierr\.rbenv-win> ls .\shims
Répertoire : C:\Users\pierr\.rbenv-win\shims
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 03/01/2017 12:15 31 rake.bat
-a---- 03/01/2017 12:15 31 ruby.bat
-a---- 03/01/2017 12:15 31 rubyw.bat
PS C:\Users\pierr\.rbenv-win> ls .\versions\2.3.1-x64\bin\
Répertoire : C:\Users\pierr\.rbenv-win\versions\2.3.1-x64\bin
Mode LastWriteTime Length Name
---- ------------- ------ ----
-a---- 04/12/2016 13:09 4842 erb
-a---- 04/12/2016 13:09 5038 erb.cmd
-a---- 04/12/2016 13:09 546 gem
-a---- 04/12/2016 13:09 742 gem.cmd
-a---- 04/12/2016 13:09 190 irb
-a---- 04/12/2016 13:09 386 irb.cmd
-a---- 04/12/2016 13:09 1664512 libeay32.dll
-a---- 04/12/2016 13:09 203809 libffi-6.dll
-a---- 04/12/2016 13:09 211660 libgdbm-3.dll
-a---- 04/12/2016 13:09 166244 libgdbm_compat-3.dll
-a---- 04/12/2016 13:09 586854 libyaml-0-2.dll
-a---- 04/12/2016 13:09 542 rake
-a---- 04/12/2016 13:09 177 rake.bat
-a---- 04/12/2016 13:09 938 rdoc
-a---- 04/12/2016 13:09 1134 rdoc.cmd
-a---- 04/12/2016 13:09 188 ri
-a---- 04/12/2016 13:09 384 ri.cmd
-a---- 04/12/2016 13:09 148828 ruby.exe
-a---- 04/12/2016 13:09 148828 rubyw.exe
-a---- 04/12/2016 13:09 369664 ssleay32.dll
-a---- 04/12/2016 13:09 1313085 tcl85.dll
-a---- 04/12/2016 13:09 127498 tclpip85.dll
-a---- 04/12/2016 13:09 1747352 tk85.dll
-a---- 04/12/2016 13:09 2798080 x64-msvcrt-ruby230.dll
-a---- 04/12/2016 13:09 95232 zlib1.dll
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.