problem starting mongrel server from rubymine

Hi

I'm on Max OS 10.5 and using rvm to handle more Ruby versions.
I have the ruby-1.8.6 below selected under settings - ruby versions and in that same place the rails 1.2.3 gem also appears.
mongrel_rails starts without problems from terminal (from /Users/mb/Rapidi2)
yet it fails to start from within RubyMine (see error message below)


/Users/mb/.rvm/ruby-1.8.6-p383/bin/ruby /Users/mb/Rapidi2/script/server mongrel -p 8090 -b 0.0.0.0 -e development
Cannot find gem for Rails =1.2.3:
    Install the missing gem with 'gem install -v=1.2.3 rails', or
    change environment.rb to define RAILS_GEM_VERSION with your desired version.
thanks for any help

Michael

3 comments
Comment actions Permalink

Hello Michael,

Probably problem is related to rvm. E.g I've saw similar problem at http://www.jetbrains.net/devnet/thread/284111?tstart=0.

Please try to launch RM from console (e.g /Applications/RubyMine 2.0 Beta 2.app/Contents/MacOS/rubymine

0
Comment actions Permalink

Hi Roman

that worked fine.
I asume its sometyhing with the path then.
I have the following in ~/.profile

source ~/.rvm/bin/rvm
export PATH="/usr/local/bin:/usr/local/sbin:/usr/local/mysql/bin:$PATH"
if [ -s ~/.rvm/scripts/rvm ] ; then source ~/.rvm/scripts/rvm ; fi

how can i make the Rubymine use that ?

Thanks

Michael

0
Comment actions Permalink

Michael,

This problem with env. variables defined in .profile is common limitation of Mac OS, for details see javascript:;

0

Please sign in to leave a comment.