2013-11-09 95 views
2

如何从github下载我的旧代码?我在我的应用程序中犯了一个错误,当我尝试从github下载旧的zip文件并运行它时,出现错误。无法运行克隆库

我想我做得对,不要只是需要克隆存储库?当我尝试运行服务器时出现此错误:

An error occurred while installing pg (0.17.0), and Bundler cannot continue. 
Make sure that `gem install pg -v '0.17.0'` succeeds before bundling. 

当我运行bundel install时,仍然收到错误消息。

我也收到此错误:

bundle install doesn't work and I still get the error along with this one:Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension 

回答

0

如果你已经安装了Mavericks,那就是你的问题的根源。我必须在安装Mavericks之后安装另一个需要编译的本地依赖项的gem,并且对Mavericks编译gem依赖项所使用的编译器进行一些更改会产生问题。在你的情况下,我建议你选择this answer的解决方案之一来解决你的PG安装问题。

1

这ssems对我说,你没有安装的Postgres。安装它并再次尝试bundle install。 如何在Ubuntu上安装Postgres(当然你可以有另一个系统:)) - https://help.ubuntu.com/community/PostgreSQL

+0

我有一个mac,并且我在某处读到PostgreSQL在mac上自动出现,这是不是真的? –

+0

我真的不知道。你可以尝试使用一些与postgres连接的控制台命令(我相信它们是相同的):'psql -U postgres'或'哪个postgres'。如果系统不知道关于PG的情况,那么您会看到相应的错误 – gotva