Warning: file_get_contents(/data/phpspider/zhask/data//catemap/5/ruby-on-rails-4/2.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Github Can';t运行克隆存储库_Github_Ruby On Rails 4_Repository_Clone_Bundle Install - Fatal编程技术网

Github Can';t运行克隆存储库

Github Can';t运行克隆存储库,github,ruby-on-rails-4,repository,clone,bundle-install,Github,Ruby On Rails 4,Repository,Clone,Bundle Install,如何从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 bu

如何从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安装时,仍然会出现错误

我也得到了这个错误:

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

我觉得你没有安装Postgres。安装它,然后再次尝试
捆绑安装

如何在Ubuntu上安装Postgres(当然你可以有另一个系统:)-

如果你安装了Mavericks,这就是你的问题的根源。在我安装了Mavericks之后,我不得不安装另一个带有本机依赖项的gem,这些本机依赖项需要编译,而一些关于Mavericks使用哪个编译器编译gem依赖项的更改会产生问题。在您的情况下,我建议您选择中的一种解决方案来解决PG安装问题

我有一台mac电脑,我在某个地方读到PostgreSQL自动出现在mac电脑上,不是吗?我真的不知道。您可以尝试使用一些与postgres连接的控制台命令(我相信它们是相同的):
psql-U postgres
哪个postgres
。若系统不知道PG,那个么您将看到相应的错误