Ruby on Rails Installation

Source: Internet
Author: User
Tags ruby on rails

Http://www.songlin51.com/archives/667.html

Ubuntu 12.04 redmine2.1 installation record

When you install gem install rails, you cannot connect to rails.

Solution: Search for railson http://rubygems.org/gems/railsto download rails. gem for installation.

An error is reported when installing gem install mysql2.
Building native extensions. This cocould take a while...
Error: Error installing mysql2:
Error: failed to build gem native extension.

/Usr/bin/ruby1.8 extconf. Rb
Checking for rb_thread_blocking_region ()... no
Checking for rb_wait_for_single_fd ()... no
Checking for mysql_query () in-lmysqlclient... no
Checking for main () in-lM... yes
Checking for mysql_query () in-lmysqlclient... no
Checking for main () in-LZ... yes
Checking for mysql_query () in-lmysqlclient... no
Checking for main () in-lsocket... no
Checking for mysql_query () in-lmysqlclient... no
Checking for main () in-lnsl... yes
Checking for mysql_query () in-lmysqlclient... no
Checking for main () in-lmygcc... no
Checking for mysql_query () in-lmysqlclient... no
Solution: sudo apt-Get install libmysql-Ruby libmysqlclient-Dev

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.