I have summarized how to configure Ruby on Rails in ubuntu10.04, which is similar in windows.

Source: Internet
Author: User
Tags redmine ruby on rails


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.

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.