ide - Aptana Can Not find the Ruby Executable -


when try run ruby code, pop says "launching differences2.rb' has encountered problem. unable find ruby executable.

when run 'gem environment' inside aptana this:

gem environment rubygems environment:   - rubygems version: 1.8.6   - ruby version: 1.9.2 (2011-07-09 patchlevel 290) [x86_64-linux]   - installation directory: /home/adamar/.rvm/gems/ruby-1.9.2-p290   - ruby executable: /home/adamar/.rvm/rubies/ruby-1.9.2-p290/bin/ruby   - executable directory: /home/adamar/.rvm/gems/ruby-1.9.2-p290/bin   - rubygems platforms:     - ruby     - x86_64-linux   - gem paths:      - /home/adamar/.rvm/gems/ruby-1.9.2-p290      - /home/adamar/.rvm/gems/ruby-1.9.2-p290@global   - gem configuration:      - :update_sources => true      - :verbose => true      - :benchmark => false      - :backtrace => false      - :bulk_threshold => 1000   - remote sources:      - http://rubygems.org/ 

when run 'ruby -v' inside aptana this:

ruby -v ruby 1.9.2p290 (2011-07-09 revision 32553) [x86_64-linux] 

when run 'rvm use 1.9.2' inside aptana :

rvm use 1.9.2 using /home/adamar/.rvm/gems/ruby-1.9.2-p290 

i restarted , tried again after each of commands, tried this:

rvm use 1.9.2 --default 

can make suggestion can do?

it's not clear question version of aptana you're using. if you're using aptana studio 3.x, should pick environment setup in .bashrc , typical shell setup. search path location of ruby executable. it'd useful see output of "echo $path" inside terminal view in ide , outside ide see if differ. seems it's finding when run "ruby -v" command in shell, i'm not clear on issue might be.

you can try turning on debug level logging inside preferences > aptana studio > troubleshooting. can log level "all", and/or check "debug specific components" , check com.aptana.core/debug , com.aptana.core/debug/shell entries. should spit out low level details on process run under hood , command lien args, executables , environment used. can view log going help > aptana > view log file. typically ask contents of log when users file bugs @ http://jira.appcelerator.org/secure/createissue!default.jspa


Comments

Popular posts from this blog

objective c - Change font of selected text in UITextView -

php - Accessing POST data in Facebook cavas app -

c# - Getting control value when switching a view as part of a multiview -