LoginSignup
3
1

More than 3 years have passed since last update.

An error occurred while installing rugged (0.28.2), and Bundler cannot continue. Make sure that `gem install rugged -v '0.28.2' --source 'https://rubygems.org/'` succeeds before bundling.

Last updated at Posted at 2019-08-14

開発中のbundle installでエラー

An error occurred while installing rugged (0.28.2), and Bundler cannot continue.
Make sure that `gem install rugged -v '0.28.2' --source 'https://rubygems.org/'` succeeds before bundling.

gem 'rugged'が入らない。
gem install rugged -v '0.28.2' --source 'https://rubygems.org/'を試すもエラー。

ERROR:  Error installing rugged:
    ERROR: Failed to build gem native extension.

ググると、こんな記事が。
https://qiita.com/k-yamada-github/items/c3b90f14c4fd81da8722
とりあえず記事を参考にやってみる。

$ brew uninstall apple-gcc42
$ brew install apple-gcc42
Error: No such keg: /usr/local/Cellar/apple-gcc42

はいはい、エラー。
そんな期待してなかったから別にいいよ〜。

An error occurred while installing rugged (0.28.2), and Bundler cannot continue. Make sure that gem install rugged -v '0.28.2' --source 'https://rubygems.org/' succeeds before bundling.の【解決コピペコード】

$ brew reinstall gcc
$ brew install cmake
==> Downloading https://homebrew.bintray.com/bottles/cmake-3.15.2.mojave.bottle.tar.gz
==> Downloading from https://akamai.bintray.com/76/76de3a5828825352b3b05951df73aea22ddd27fe158d43b8b1e36c51d0641d55?__gda__=exp=1565811023~hmac=cc44fa2f38114c30acda48edeedb6f0d43
######################################################################## 100.0%
==> Pouring cmake-3.15.2.mojave.bottle.tar.gz
==> Caveats
Emacs Lisp files have been installed to:
  /usr/local/share/emacs/site-lisp/cmake
==> Summary
🍺  /usr/local/Cellar/cmake/3.15.2: 5,800 files, 53.2MB
gem install rugged

すんなり成功〜〜〜

gem install rugged

からの〜〜〜

Fetching rugged-0.28.3.gem
Building native extensions. This could take a while...
bundle
Successfully installed rugged-0.28.3
Parsing documentation for rugged-0.28.3
Installing ri documentation for rugged-0.28.3
Done installing documentation for rugged after 1 seconds
1 gem installed

入った〜〜〜🎉🎉🎉

参考
https://github.com/libgit2/rugged

3
1
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
1