【问题标题】:Can't run cloned repository无法运行克隆的存储库
【发布时间】:2013-11-21 20:24:19
【问题描述】:

如何从 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

【问题讨论】:

    标签: github ruby-on-rails-4 repository clone bundle-install


    【解决方案1】:

    如果您安装了 Mavericks,那就是问题的根源。在安装 Mavericks 后,我必须安装另一个需要编译的带有本机依赖项的 gem,并且关于 Mavericks 用于编译 gem 依赖项的编译器的一些更改会产生问题。对于您的情况,我建议您选择this answer 中的一种解决方案来解决您的PG 安装问题。

    【讨论】:

      【解决方案2】:

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

      【讨论】:

      • 我有一台 mac,我在某处读到 PostgreSQL 会自动出现在 mac 上,这不是真的吗?
      • 我真的不知道。您可以尝试使用一些与 postgres 连接的控制台命令(我相信它们是相同的):psql -U postgreswhich postgres。如果系统不了解 PG,您将看到相应的错误
      猜你喜欢
      • 2017-10-17
      • 2016-10-09
      • 2015-05-16
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-12-02
      • 2021-09-01
      相关资源
      最近更新 更多