How to configure Ruby on Rails in ubuntu10.04 [from other blogs, refer to the first two webpages]
Http://www.baoyalv.info/blog/panjj/Rails/2010/05/01/76 (basic steps)
Http://hi.baidu.com/%BA%C3%BA%C3%BC%D3%BC%D3%D3%CD/blog/item/4357193da3dda20bbaa167f9.html (basic steps, database)
/* Note: One of the most important steps is to install ruby-full instead of Ruby. Otherwise, the package is missing and redmine cannot be run (the net library is used in redmine, write a server by yourself). This is not mentioned on both pages */
Http://darkbaby123.javaeye.com/blog/556811 (version does not match, but also has reference value)
Apt-Get reference
Http://baike.baidu.com/view/1580236.htm? Fr = ala0_1_1
References for rubygems
Http://hideto.javaeye.com/blog/100478
Linux Process Management
Http://yanmengxiang.blog.163.com/blog/static/103578274201002682932347/
I found a good ror personal homepage.
Http://rordiary.com/blog/category/rails/ (teach you how to modify ror's default database)
This is a good website for rails plug-ins.
Http://ruby-toolbox.com/categories/queueing.html
The installation steps I have summarized are as follows: (ubuntu10.04 is feasible; in Windows, you can directly execute the command line to remove SUDO)
Ruby1.8.7 installation: Sudo apt-Get install ruby-full ruby1 . 8 -Dev
Ruby-V # View Ruby version 1.8 . 7
Then install the ruby package management system (rubygems ).
Sudo apt-Get install rubygems
Sudo gem install rubygems-Update
Sudo gem update
Gem-V#View the gem version1.3.5
Rails installation:
Sudo gem install rails-V=2.3.5
Check the version after each rails component is installed.
Rails-V
At this time, you may see that the system prompts that rails is not found. This is because rails is not added to the path,
In/Etc/Add in profile:
ExportPath= $Path:/VaR/Lib/Gems/1.8/Bin
Then, log out of the system.
(If it is only configured for a single user, you can directly ~/.Added in bashrc. You do not need to log out. Just restart the terminal)
Rails-V#Let's see if the rails version is#2.3.5
Install MySQL database and connector:
Sudo apt-Get install mysql-server mysql-Client
Sudo apt-Get install libmysql-Ruby libmysqlclient-Dev
Sudo gem install MySQL
Change default database:
Search app_generator on the terminal.RB, modify the 10th rows, and change it from 'sqlite3 'to 'mysql.
We hope that the installation can be successful based on this step.
I have configured both ubuntu10.04 and Windows successfully.