RubyMine can't find Ruby SDK on Ubuntu - ruby

I'm trying to add Ruby SDK to RubyMine which is installed at /snap/bin/ruby however I get the following message.
Error configuring SDK: Could not get RubyGems environment for ruby-2.6.3-p62: ver.2.6.3p0 (/snap/bin/ruby).
Please make sure that /snap/bin/ruby is a valid home path for this SDK type.

Currently, RubyMine cannot add Ruby installed using snap: RUBY-23121. As an alternative, you can install Ruby with apt or by using the version manager.

If you are using ruby installed via rbenv, then just select 2nd option 'New local version manager...', instead of 'New local...' since you are using rbenv. Your path should be like this: /home/$USRNAME/.rbenv/bin/rbenv.

You should point it to the where you keep your Ruby Binary File, for example:
Windows - d:\dev\Ruby19\bin\ruby.exe
Mac Brew -/usr/local/Cellar/ruby/2.0.0-p247/bin/ruby
Ruby Version Manager - /Users//.rvm/rubies/ruby-1.9.3-p327/bin/ruby
Linux/Mac Default- /usr/bin/ruby

Related

Using command-line gem 'github-pages-health-check' fails on Mac OS X with rvm

I'm trying to use the github-pages-health-check and unable to get it to work.
OS: OS X 10.8.5
RVM: rvm 1.26.4 (latest)
ruby: 2.1.1
After installation, I try the following...
> check
and get...
-bash: check: command not found
I've seen a few other similar threads which blamed path issues, but I'm still not able to connect the final dots here.
Perhaps you're simply misunderstanding how to use this gem – where are you getting the impression it comes with a check binary?
I found the gem source on GitHub. The README doesn't mention such a binary. It does mention a local variable by that name, in Ruby code.
Nor is there a bin directory in the repository, which is usually where gems put binaries.

Specify ruby version to use with Pik

I need to run two Ruby apps on a Windows 2008 server. So, I'm thinking to install Pik for the job (I understand I could use also RVM but the install process doesn't seem very 'stable' to me).
Before installing Pik, however, I'd like to know if there is a way to specify which Ruby version should be used for each app. Something like a .ruby-version file. I have looked for the answer on the official Pik repo but I couldn't find anything about it.
In my opinion, Ref 1, Ref 2 are the two simple references you could have to install different ruby versions using Pik in Windows.
After setting up the environment correctly, you could just use the command similar to RVM.
pik use ruby-2.0.0-p0
Then ruby -v will show ruby 2.0.0p0. So, for different projects, from with in each project folder choose which ruby you want to have.
Hope it helps :)

Ruby 1.9 SVN Bindings in Ubuntu 12.04

I need some help getting the Ruby SVN bindings to work under Ubuntu 12.04
We're using:
Ruby 1.9.3
Ubuntu 12.04
SVN 1.6.17
We are not using rvm.
I tried an apt-get install libsvn-ruby, but it doesn't actually seem to install the bindings. When I try to require svn/core, Ruby complains that it does not exist. Looking at a description of the package, it says it's a dummy package.
I have spent quite a lot of time trying to create the bindings manually by checking out http://svn.apache.org/repos/asf/subversion/tags/1.6.17 and following the instructions in subversion/bindings/swig/INSTALL, but I always end up getting errors when I try to run make swig-rb
None of my Google searches return useful information about the errors, or about how I'm supposed to get the bindings to work. Can anyone give me some steps to get Ruby 1.9 talking to SVN?
This is because there are no ruby bindings for ruby 1.9 - there are only ruby-bindings for ruby 1.8.

Change back to bash from zsh? OSX Lion

I am trying to setup my computer for Ruby on Rails development. All new to this.
Though I have had some problems with my Rails installation and want to reset everything and start again on setting it up.
The problem I get now is installing and using bash in Terminal except of the installed zsh.
I´m trying the command ➜ ~ rvm install 1.9.2
but only get:
zsh: correct 'rvm' to 'rvim' [nyae]?
which opens the file in an texteditor.
Isn´t it supposed to be a downloadable file, which should be installed automaticly ?
It sounds like rvm is not on your path. You could specify the executable location explicitly:
~/.rvm/rvm install 1.9.2
(or maybe /usr/local/rvm/rvm depending on where you installed it)

How do i install Command-T, Pathogen, and not using RVM?

I used brew install to install ruby (as opposed to RVM). I have on my system installed ruby 1.9.3p0. (OSX Lion)
I'm trying to install Command-T via pathogen. I can normally run rake, make, ruby, whatever, but when i enter into the 'Command-T' directory and try to run rake make it says Could not find rake-0.8.7 in any of the sources.
I also cant run any normal ruby command. just ruby --version produces the same errors.
I know this has to do with below... but i dont know how to actually fix it.
Most installation problems are caused by a mismatch between the
version of Ruby on the host operating system, and the version of Ruby
that Vim itself linked against at compile time. For example, if one is
32-bit and the other is 64-bit, or one is from the Ruby 1.9 series and
the other is from the 1.8 series, then the plug-in is not likely to
work.
As such, on Mac OS X, I recommend using the standard Ruby that comes
with the system (currently 1.8.7) along with the latest version of
MacVim (currently version 7.3). If you wish to use custom builds of
Ruby or of MacVim (not recommmended) then you will have to take extra
care to ensure that the exact same Ruby environment is in effect when
building Ruby, Vim and the Command-T extension.
I tried temporarily moving the entire Cellar directory out of /usr/local (for those arent familiar, its where homebrew installs ruby and everything else).
In terminal if i run which ruby it works right.. yet when i rune rake make in the Command-T folder it still gives the same error
nevermind... all i had to do was run /usr/bin/rake make
how thats different than just removing the Cellar folder temporarily so that by default shell uses that path, i have no idea, but it worked.
I had similar problem on Fedora.
In the end, I found we should install rubygem-rake and ruby-dev package first.
After installing both, compile your Vim with "./configure --enable-rubyinterp",
then Commend-T will be ok.

Resources