简体   繁体   English

无法在Rubymine中创建Ruby on Rails项目

[英]Unable to create Ruby on Rails projects in Rubymine

  • Suddenly I'm not able to create new projects properly. 突然间,我无法正确创建新项目 When I create a new rails project with Rubymine it creates my files into a subfolder called 3.0.9 . 当我使用Rubymine创建一个新的rails项目时,它会将我的文件创建到一个名为3.0.9的子文件夹 I'm also unable to start my project. 我也无法启动我的项目。 The error I get is: 我得到的错误是:

RubyMine Gem Manager RubyMine宝石经理
RubyMine has detected that some of the gems required for 'testproject' are not installed RubyMine检测到没有安装'testproject'所需的一些gem
Install missing gems 安装缺少的宝石

So I click on "Install missing gems" I get the error: 所以我点击“安装遗失的宝石”我收到错误:

Following gems were not installed: 未安装以下宝石:
xaws-s3x: No gem satisfying dependency found in remote gem repositories xaws-s3x:在远程gem库中找不到满足依赖关系的gem

  • If I try to start the project it says: 如果我尝试启动该项目,它会说:

Error running Development: testproject: Rails server launcher '/home/laptop/RubymineProjects/testproject/script/rails' wasn't found in project 运行错误开发:testproject:在项目中找不到Rails服务器启动器'/ home / laptop / RubymineProjects / testproject / script / rails'

  • If I try to put a rails server launcher in the folder script from another project it gives me a bunch of other errors saying: 如果我尝试将rails server launcher放在另一个项目的文件夹script ,它会给我一些其他错误说:

WARN TCPServer Error: Address already in use - bind(2) WARN TCPServer错误:地址已在使用中 - bind(2)
/usr/lib/ruby/1.8/webrick/utils.rb:73:in `initialize': Address already in use - bind(2) (Errno::EADDRINUSE) /usr/lib/ruby/1.8/webrick/utils.rb:73:in`initialize':地址已经在使用 - bind(2)(Errno :: EADDRINUSE)

Sidenote: 边注:

I'm using Ubuntu and it all worked fine a couple of days ago when I was creating projects. 我正在使用Ubuntu,几天前我创建项目时一切正常。

My understanding is that the server process, for whatever reason wasn't shut-down properly and so is still hanging on the port that it started on. 我的理解是,无论出于何种原因,服务器进程都没有正确关闭,因此它仍然挂在它启动的端口上。 You'll have to kill this, in order restart it again. 你必须杀死它,以便再次重新启动它。 Assuming that it is consuming the port 3000 (the default port), in Ubuntu you can find its process-id and kill it by the below command: 假设它正在消耗端口3000(默认端口),在Ubuntu中,您可以找到它的进程ID并通过以下命令将其终止:

lsof -i tcp:3000 -Fp|tr -d p | xargs kill -9

Hope it helps! 希望能帮助到你!

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

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