RubyMine知识集锦
简介
RubyMine是一款基于IntelliJ平台的IDE,用于Ruby以及Ruby on Rails开发。该IDE内置了对JavaScript、HTML等Web开发技术的支持。
全局设置
设置路径 | 说明 |
L & F ⇨ Ruby SDK & Gems |
可以管理Ruby SDK,点击按钮可以添加SDK,点击按钮可以设置当前工程使用的SDK 点击右侧窗格中的则可以为某个SDK安装Gem |
常见问题
无法安装调试需要的Gem
Ubuntu 14.04下,调试时RubyMine提示:The gem debase required by the debugger is not currently installed. would you like to install it ?
点击Yes后,安装失败,提示: ERROR: Failed to build gem native extension ... Installing base gem Unable to require openssl, install OpenSSL and rebuild ruby (preferred) or use non-HTTPS sources
解决方法一,使用非HTTPS源:
1 2 |
gem source -r https://rubygems.org/ gem source -a http://rubygems.org/ |
解决方法二,安装libssl-dev并重新构建Ruby:
1 2 3 4 5 |
sudo apt-get install libssl-dev cd ruby-2.1.9 ./configure prefix=/home/alex/Ruby/2.1.9 make clean make && make install |
Leave a Reply