http://www.oschina.net/question/615444_173042
??
class="link_title">linux 安装rubyMine
分类:?ruby2014-10-15 10:01?
342人阅读??
收藏?
举报
rubymine
rubyMine是Ruby的一个不错IDE,下面以centos6.5为例子介绍安装步骤:
1.确保已经安装JDK,要是没有安装,参照《?Centos6.5 安装JDK》安装JDK.
2.下载RubyMine-6.3.3.tar.gz
3.解压RubyMine-6.3.3.tar.gz
4进入到RubyMine-6.3.3的bin目录,运行命令
?
[html]?view plaincopy
?
- ./rubymine.sh??
PS:安装成功之后,以后启动也是安装步骤4
安装webstorm 首先安装jdk?
?
Ubuntu 11.04 下安装配置 JDK 7
转http://blog.csdn.net/snowdream86/article/details/6677450
第一步:下载jdk-7-linux-i586.tar.gz
[plain]?view plaincopy
?
- wget?-c?http://download.oracle.com/otn-pub/java/jdk/7/jdk-7-linux-i586.tar.gz??
(注:如果下载不下来,建议使用迅雷下载,然后拷贝到Linux系统上。)
第二步:解压安装
[plain]?view plaincopy
?
- sudo?tar?zxvf?./jdk-7-linux-i586.tar.gz??-C?/usr/lib/jvm??
- cd?/usr/lib/jvm??
- sudo?mv?jdk1.7.0/?java-7-sun??
第三步:修改环境变量
[plain]?view plaincopy
?
- vim?~/.bashrc??
添加:
[plain]?view plaincopy
?
- export?JAVA_HOME=/usr/lib/jvm/java-7-sun??
- export?JRE_HOME=${JAVA_HOME}/jre??
- export?CLASSPATH=.:${JAVA_HOME}/lib:${JRE_HOME}/lib??
- export?PATH=${JAVA_HOME}/bin:$PATH??
保存退出,输入以下命令使之立即生效。
[plain]?view plaincopy
?
- source?~/.bashrc??
第四步:配置默认JDK版本
由于ubuntu中可能会有默认的JDK,如openjdk,所以,为了将我们安装的JDK设置为默认JDK版本,还要进行如下工作。
执行代码:
[plain]?view plaincopy
?
- sudo?update-alternatives?--install?/usr/bin/java?java?/usr/lib/jvm/java-7-sun/bin/java?300??
- sudo?update-alternatives?--install?/usr/bin/javac?javac?/usr/lib/jvm/java-7-sun/bin/javac?300??
- sudo?update-alternatives?--install?/usr/bin/jar?jar?/usr/lib/jvm/java-7-sun/bin/jar?300???
- sudo?update-alternatives?--install?/usr/bin/javah?javah?/usr/lib/jvm/java-7-sun/bin/javah?300???
- sudo?update-alternatives?--install?/usr/bin/javap?javap?/usr/lib/jvm/java-7-sun/bin/javap?300???
执行代码:
[plain]?view plaincopy
?
- sudo?update-alternatives?--config?java??
系统会列出各种JDK版本,如下所示:
[plain]?view plaincopy
?
- snowdream@snowdream:~$?sudo?update-alternatives?--config?java??
- 有?3?个候选项可用于替换?java?(提供?/usr/bin/java)。??
- ??
- ??
- ??选择???????路径????????????????????????????????????优先级??状态??
- ------------------------------------------------------------??
- *?0????????????/usr/lib/jvm/java-6-openjdk/jre/bin/java???1061??????自动模式??
- ??1????????????/usr/lib/jvm/java-6-openjdk/jre/bin/java???1061??????手动模式??
- ??2????????????/usr/lib/jvm/java-6-sun/jre/bin/java???????63????????手动模式??
- ??3????????????/usr/lib/jvm/java-7-sun/bin/java???????????300???????手动模式??
- ??
- ??
- 要维持当前值[*]请按回车键,或者键入选择的编号:3??
- update-alternatives:?使用?/usr/lib/jvm/java-7-sun/bin/java?来提供?/usr/bin/java?(java),于?手动模式?中。??
第五步:测试
[plain]?view plaincopy
?
- snowdream@snowdream:~$?java?-version??
- java?version?"1.7.0"??
- Java(TM)?SE?Runtime?Environment?(build?1.7.0-b147)??
- Java?HotSpot(TM)?Server?VM?(build?21.0-b17,?mixed?mode)??