i have installed ruby 1.9.1 and when i in the command prompt type:
ruby -v
i see the latest version.
however, in netbeans when i create a new project i can only select 1.8.7 version.
how do i tell netbeans to use the latest ruby version that i have installed?
thanks
You need to add your own Ruby platform. See this tutorial.
Related
I create a new project react native but get error "Your Ruby version is 2.6.10, but your Gemfile specified 2.7.5".
I Check "ruby -v" and get ver sion of ruby is 3.0.2 but when create react native alway get error about ruby version 2.6.10.
Please help me
I has change version to 3.0.2 and set it to default. and run ruby -v get 3.0.2 is default but error still happen.
there is a mismatch in your ruby version install on you MacBook and version required by react-native. to solve this problem you have to install ruby version manager (rvm) and then install the version specified.
all the commands are there. for example to install the version 2.1
rvm install 2.1
or a simple solution the delete you ruby and Cocoapods.and install new one.
I am about to install a newer version of Ruby so I checked the following things-
Which ruby
/Applications/MAMP/Library/bin//ruby
ruby - v
2.6
I don't like to use Mamp ruby as I want to use a newer version of Ruby probably 2.7(as it supports the application)
Also when I do which ruby it doesn't show Mac ruby version.
Is it ok if I install a ruby version manager like chruby. Would it interfere with any other version.
Any help is highly appreciated.
Thank you.
How can I update my ruby version to from 2.2.4 to 2.3.1
I am new to Ruby, I am using windows 8 and I do not have any ruby version manager install.
I can not change the ruby version on the gem file because I have to use the ruby version everybody else is using. So changin the ruby version on the gem file is not a solution
I can not use a ruby version manager.
Use RubyInstaller to install version 2.3.1.
I have 1.8 and 2.0 installed on my system. How I can delete the old one or Use the new one to work with gems?
Be sure to install RVM and then select version 2.0 like this:
rvm use 2.0.0
You can check which version is being used with
ruby -v
Using RubyMine as my IDE for ruby development with chef on a mbp running OSX 10.8.4
Chef requires ruby 1.9 ruby, and I have it installed. When querying the ruby version via terminal it does shows : ruby 1.9.3p429 . However, when trying to use it with RubyMine, it shows (Under preferences->SDKs) only 1.8.3, not seeing or allowing me to change to 1.9.x
Any help greatly appreciated!.
Thank you.
So apparently version 1.8.3 is installed at /usr/bin/ruby. How did you install 1.9?
If you are using RVM then your ruby installations are probably at ~/.rvm/rubies/ instead. Or if you're using rbenv, ruby might be at ~/.rbenv. Although RubyMine should detect the default location for rvm and rbenv. Do you have ruby in another location? Maybe check with sudo find -name ruby in the terminal to look for other locations of ruby.