简体   繁体   中英

Netbeans tells me I have the wrong gems version when trying to run a rails app

I have been using Netbeans 6.5 recently - it complains (on startup, and if I try to run a unit test):

"Rails requires RubyGems >= 1.3.1 (you have 1.0.1). Please gem update --system and try again."

Yet from the command line "gem --version" : 1.3.1

any ideas? why does netbeans not realise I have gems 1.3.1 ?

Netbeans has per project options for which platform you use. It defaults to JRuby which may not have the same gems as your ruby install. Try right clicking on your project and selecting properties then check that the platform listed is the one you want to use. If it isn't listed you will need to select Manage and add it.

您确定在Netbeans中使用正确的PATH吗?

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM