I just installed pik into c:\bin. I typed in pik list, and it shows:
* 193: ruby 1.9.3p484 <2013-11-22> [i386-mingw32]
200: ruby 2.0.0p195 <2013-05-14. [i386-mingw32].
I typed in: c:\bin> pik use 200 and c:\bin>ruby -v and get the following error.
'ruby' is not recognised as an internal or external command, operable program or batch file.
What might cause this, and how do I resolve it to properly upgrade to Ruby 2.0?
It occurred cause RUBY is not a command that described for Windows Command Prompt.
You should first go the app you want interact with it.
For this, you should write the path of it in Command Prompt.
But I offer use Ruby Installer (http://rubyinstaller.org/downloads/) that's more comfortable.
It will install all the packages are required simultaneously
Related
After I installed ruby, type ruby or gem in cmd and there is no such command.
And I have added the installation path to the system environment.
I did this, but it didn't work. But now it's done, because I installed ruby on a non-system disk before, so there will be some strange problems.
I had an old version of Ruby (1.9.3) that I am using with Selenium Webdriver.But I was getting errors while running my script.So I downloaded Ruby installer 2.2.4 version and ran it. Can someone tell me what is the command line steps to fully install it ? I tried "gem update --system" and I get the error "error fetching data". I tried "gem install ruby" and it says "successfully installed rubyzip 1.1.7"
Installing Ruby on Windows is best done by downloading the installer from the Ruby Installer site and executing the binary. There are a few things to look out for:
Make sure the correct Ruby is in your PATH. E.g.:
echo %PATH%
should include a string like C:\Ruby200\bin. The installation path may be different for your version of Ruby. If you are installing a new version, you might need to edit the path using the Windows dialog so that new sessions include it.
Also, read the instructions for installing the Ruby DevKit. You'll need it for installation of gems with native extensions.
Once Ruby is installed correctly you should be able to run ruby -v in a command window to see that the expected version is there.
\
I have "installed" the 7zip Ruby version 2.2.4 as well as the corresponding DevKit. The PATH variable has been set.
When I start the debugging mode in Rubymine 8.0.3 the necessary gems have been installed. But than the following error occurs:
Error running speed: Cannot start debugger. Gem 'ruby-debug-ide' isn't installed or its executable script 'rdebug-ide' doesn't exist.
When I open the command line (cmd.exe) and type c:\rdebug-ide then the command line answers correctly
Using ruby-debug-base 0.2.2.beta6
...
When I call in the command line gem list then the gem is listed as ruby-debug-ide (0.6.0).
Do somebody has an idea?
Personally I deleted Rubymine from Applications and installed again the last version, now it works for me.
I am new to Vim and just installed Command T plugin using vundle. When I want to use it inside Vim I got following error
Error detected while processing function commandt#CommandTShowFileFinder:
line 2:
LoadError: /Users/xafar/.vim/bundle/command-t/ruby/command-t/finder.rb:4:in `require': no such file to load -- command-t/ext
I have ruby version ruby 2.0.0p451 (2014-02-24 revision 45167) [universal.x86_64-darwin13] on my mac os x with Mavericks.
How can I resolve this problem?
Simply installing Command-T from Vundle will not make it run correctly. It still needs to be compiled.
From the Command-T install guide -
Compiling Command-T ~
The C extension must be built, which can be done from the shell. If you use a
typical Pathogen, Vundle or NeoBundle set-up then the files were installed inside
`~/.vim/bundle/command-t`. A typical VAM installation path might be
`~/.vim/vim-addons/command-t`.
Wherever the Command-T files were installed, you can build the extension by
changing to the `ruby/command-t` subdirectory and running a couple of commands
as follows:
cd ~/.vim/bundle/command-t/ruby/command-t
ruby extconf.rb
make
Note: If you are an RVM or rbenv user, you must build CommandT using the same
version of Ruby that Vim itself is linked against. You can find out the
version that Vim is linked against by issuing following command inside Vim:
:ruby puts "#{RUBY_VERSION}-p#{RUBY_PATCHLEVEL}"
I have a Ruby executable (it's a bundler binstub) which starts with
#!/usr/bin/env ruby
On my server I have Ruby 193 installed via RVM.
$ which ruby
-> /home/dtuite/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
On my local machine, I also have Ruby installed via RVM, but in a different location (obviously!)
$ which ruby
-> /Users/davidtuite/.rvm/rubies/ruby-1.9.3-p0/bin/ruby
When I try to run this executable on the server I get an error
/usr/bin/env: ruby: No such file or directory
Is there a way I can reference the locally available ruby in the hash-bang so that the same script will execute on both the server and the local machine?
Try rvm-auto-ruby - it is explained in a somewhat different context in RVM's Textmate documentation.