LoginSignup
1
0

More than 3 years have passed since last update.

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

Last updated at Posted at 2019-08-18

mastodonのbundle installでエラー

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

gem 'cld3 'が入らない。
ターミナルの出力を試すもエラー。

$ gem install cld3 -v '3.2.3' --source 'https://rubygems.org/'
Fetching cld3-3.2.3.gem
Fetching ffi-1.9.25.gem
Building native extensions. This could take a while...
Successfully installed ffi-1.9.25
Building native extensions. This could take a while...
ERROR:  Error installing cld3:
    ERROR: Failed to build gem native extension.

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

& brew install protobuf

==> Downloading https://homebrew.bintray.com/bottles/protobuf-3.7.1.mojave.bottle.1.tar.gz
==> Downloading from https://akamai.bintray.com/41/410f34fc3240dc94c16bf74e3317b56d987acddc361228c03e6b10e8373588fb?__gda__=exp=1566130248~hmac=642c7bdd88089e35b5a9443d7567bd783a
######################################################################## 100.0%
==> Pouring protobuf-3.7.1.mojave.bottle.1.tar.gz
🍺  /usr/local/Cellar/protobuf/3.7.1: 374 files, 21.3MB
MacBook-Pro-4:mastodon jun$ brew install protobuf-compiler

入った!!!

$ bundle install --path=vendor/bundle


Fetching cld3 3.2.3
Installing cld3 3.2.3 with native extensions
Fetching connection_pool 2.2.2
Installing connection_pool 2.2.2
Fetching safe_yaml 1.0.4
Installing safe_yaml 1.0.4
Fetching crack 0.4.3
Installing crack 0.4.3
Fetching css_parser 1.6.0
Installing css_parser 1.6.0
Fetching get_process_mem 0.2.3
Installing get_process_mem 0.2.3

キターーーーーーーーーーーーーーーーーーーーーーーーーーーーーーー🎉🎉🎉🎉🎉

参考
http://31webcreation.hatenablog.com/entry/2018/03/26/223926
https://qiita.com/k-yamada-github/items/a748a5ea4aafdcd3cee2

1
0
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
1
0