- 设置网络(公司网络环境需要,特殊)
Network settings -> Connections -> Properties -> (set static IP address)
Gateway address: 192.168.0.1sudo gedit /etc/resolv.conf
add line 'nameserver 192.168.0.3'
- checkout code and sql schema from svn
sudo apt-get install subversion
svn co code and schema(伪命令) - 初始化数据库
sudo apt-get install mysql-server mysql-admin
sudo apt-get install libmysql-ruby下面四条是公司导数据库用的:
source schema/createscheme.sql
source schema/fwmrm_feedback_test.sql
source schema/fwmrm_rpt_test.sql
source schema/db_test/createscheme_test.sql - 安装ruby相关
sudo apt-get install ruby
install RMagick
sudo apt-get install irb
sudo apt-get install rubygems
sudo apt-get install libmagick9-dev - 安装jre和aptana
sudo apt-get install sun-java6-jre
(change JVM to SUN JVM)
sudo apt-get install sun-java6-jdk
sudo update-alternatives --config javadownload aptana and unzip it
Add RadRails to Aptana Studio by following the Start Page instructions (Help > Aptana Studio Start Page...)
install subclipse (Help -> Software Updates -> Find and Install... -> Search for new features to install ) - 安装autotest,see here
sudo gem install ZenTest
gedit .bashrcadd line 'export PATH=/var/lib/gems/1.8/bin:$PATH'
source .bashrc
- 以下是公司开发需要的
cd to ..\vendor\gemsudo gem install json
cd ..\config\
cp database.yml.dist.linux database.yml (change the content as needed)
change '/var/lib/mysql/mysql.sock' to '/var/run/mysqld/mysqld.sock'
change 'freewheel_test' to 'fwmrm_oltp_test'
change 'reporting_test: -> database:' to 'fwmrm_rpt'
change 'feedback_test: -> database:' to 'fwmrm_feedback'
cp maui_config.rb.dist maui_config.rbsudo gedit /etc/mysql/my.cnf
add the two lines 'max_allowed_packet = 16M
max_sp_recursion_depth=255'
under "[mysqld] -> language = /usr/share/mysql/english"
add this line 'max_allowed_packet = 16M'
under "[client]"
2008年4月14日星期一
在Ubuntu上搭建ROR开发环境
又要在新的Ubuntu上搭建ROR开发环境了。以前都是照着别人写的wiki来做,结果一段时间不做,又忘了。这次简要记一些步骤,纯粹备忘。
订阅:
博文评论 (Atom)
没有评论:
发表评论