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