SDK

I have just installed Rubymine, and imported a project.

When I press Run I get an error: No SDK specified.

Howevere I cannot see where I specify a SDK, and where do i get it?

Per-Olof Hermansson

6 comments

Hello,

See  File | Settings | Ruby Sdk and Gems | Add Sdk... Choose path to ruby interpreter.

0

Thanks,

How do I get Ruby in my PATH? When I try ruby -v I get error, saying it is not a program.

And how do I get RubyGems registered? RubyMine complains that I have note installed RubyGems, but I have (downloaded and ran ruby setup.rb)

Per-Olof

0

Which OS do you use? If Windows ruby interpreter may be installed in c:\ruby\bin\ruby.exe, on Linux - /opt/local/bin/ruby or /usr/bin/ruby or /usr/local/bin/ruby etc.

And how do I get RubyGems registered? RubyMine complains that I have note installed RubyGems, but I have (downloaded and ran ruby setup.rb)

Please execute "gem environment"

0

I have Windows VISTA business

I have installed ruby 1.8.7 in c:\ruby\, the ruby.exe is in c:\rubybin\

I have set the PATH under System Enviroments, and also in the CLASSPATH (don´t know it this is correct).

But when I run ruby -v I get an error saying: "Ruby is  not an internal command, external command etc..."

If I run gem environment (whilst standing in c:\ruby\bin\ I get several lines starting with:

Rubygems Environment:

- RUBYGEMS VERSION: 1.3.3
- RUBY VERSION: 1.8.7 (2008-08-11 etc)
- INSTALLATION DIRECTORY: c:/ruby/lib/ruby/gems/1.8
- RUBY EXECUTABLE: c:/ruby/bin/ruby.exe
---
- GEM PATHS:
- C:/ruby/lib/ruby/gems/1.8
- C:/Users/Administratör/.gem/ruby/1.8

etc



Thanks for help so far!

Per-Olof

0

And what output does

echo %PATH%

give?

0

If I run the commande echo %path% I get the path, and it contains c:\ruby\bin\

0

Please sign in to leave a comment.