[英]Unable to create Ruby on Rails projects in Rubymine
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
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'
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.