1 sudo apt-get install sun-java6-jdk
2 sudo gedit /etc/environment
3 add two line and save:
CLASSPATH=/usr/lib/jvm/java-6-sun/lib
JAVA_HOME=/usr/lib/jvm/java-6-sun
4 download netbeans-6.0- ruby -linux.sh
5 double click netbeans-6.0- ruby -linux.sh and select "Run in Terminal"(make sure System->Preference->Appearence->Visual Effect turn to 'None' or you can't see the install botton)
6 if you want use subversion in Netbeans do this: sudo apt-get install subversion
7 if you want use MySQL do this: sudo apt-get install mysql-server-5.0
8 Applications->Add/Remove to install the "MySQL Query Browser"
9 $ sudo apt-get install ruby ruby gems irb ri rdoc ruby 1.8-dev build-essential
$ sudo gem install rails --include-dependencies
$ export PATH=$PATH:/var/lib/gems/1.8/bin
10 $ sudo gem install -v=1.2.5 rails
11 open netbeans and Tools->Options-> Ruby , set the Ruby Interpreter "/usr/bin/ ruby 1.8"
12 add the socket: /var/run/mysqld/mysqld.sock to the database.yml:
development:
adapter: mysql
database: financing_ rails 2_development
username: root
password:
host: localhost
socket: /var/run/mysqld/mysqld.sock
ref:
[url]http://blog.donews.com/maverick/archive/200[/url] 7 /05/22/116 7 648.aspx
[url]http://www.qyjohn.net/?p=266[/url]
http:// ubuntu guide.org/wiki/ Ubuntu :Gutsy#MySQL
[url]http://wiki.[/url] ruby on rails .org/ rails /pages/ Rails On Ubuntu
[url]https://help.[/url] ubuntu .com/community/ Ruby On Rails
2 sudo gedit /etc/environment
3 add two line and save:
CLASSPATH=/usr/lib/jvm/java-6-sun/lib
JAVA_HOME=/usr/lib/jvm/java-6-sun
4 download netbeans-6.0- ruby -linux.sh
5 double click netbeans-6.0- ruby -linux.sh and select "Run in Terminal"(make sure System->Preference->Appearence->Visual Effect turn to 'None' or you can't see the install botton)
6 if you want use subversion in Netbeans do this: sudo apt-get install subversion
7 if you want use MySQL do this: sudo apt-get install mysql-server-5.0
8 Applications->Add/Remove to install the "MySQL Query Browser"
9 $ sudo apt-get install ruby ruby gems irb ri rdoc ruby 1.8-dev build-essential
$ sudo gem install rails --include-dependencies
$ export PATH=$PATH:/var/lib/gems/1.8/bin
10 $ sudo gem install -v=1.2.5 rails
11 open netbeans and Tools->Options-> Ruby , set the Ruby Interpreter "/usr/bin/ ruby 1.8"
12 add the socket: /var/run/mysqld/mysqld.sock to the database.yml:
development:
adapter: mysql
database: financing_ rails 2_development
username: root
password:
host: localhost
socket: /var/run/mysqld/mysqld.sock
ref:
[url]http://blog.donews.com/maverick/archive/200[/url] 7 /05/22/116 7 648.aspx
[url]http://www.qyjohn.net/?p=266[/url]
http:// ubuntu guide.org/wiki/ Ubuntu :Gutsy#MySQL
[url]http://wiki.[/url] ruby on rails .org/ rails /pages/ Rails On Ubuntu
[url]https://help.[/url] ubuntu .com/community/ Ruby On Rails
本文转自 fsjoy1983 51CTO博客,原文链接:http://blog.51cto.com/fsjoy/63816,如需转载请自行联系原作者