Some Problems about Gem, problemsgem

Source: Internet
Author: User

Some Problems about Gem, problemsgem

Advanced Software Engineering

When I was doing advanced software engineering jobs today, I encountered some problems:

After the new git clone a ruby rails projectBundle InstallSystem Error

 

Prompt"Gem install pg-v '0. 18.3'", After the prompt is installed, the following error is still reported:

Again according to the error message, we can see that because of less dependent package, "You need to install postgresql-server-dev-X.Y for building a server-side extension or libpq-dev for building a client-side application. ", so next we will install less dependent packages ,"Sudo apt-get install postgresql-server-dev-all",

Then run"Gem install pg-v '0. 18.3'", You can find that the problem does not appear again.

 

PS:

1. If"Bundel install"Other problems are prompted. You can also use this method based on the error message."Sudo apt-get install xxxxx"Corresponding dependency package

2. IfSudo apt-get install xxxx"The quasi-que dependency package cannot be found. You can use"Sudo apt-cache serach xxxxTo find the dependent packages to install

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.