LoginSignup
0
0

More than 5 years have passed since last update.

ElasticBeanstalkのRuby2.5でRailsのbundle installに失敗した話

Posted at

結論

ffiのビルドに必要なパッケージがインストールされてなかった

足りないパッケージは.ebextensions/xxx.config

packages:
    yum:
        automake: []
        autoconf: []
        libtool: []

みたいに設定書けばインストールできる

経緯

EBのRuby2.5がいつの間にかリリースされてたからRuby2.4から切り替えてみようと新しい環境作ったけど、eb deployが失敗する

調査

ログを見てみると

An error occurred while installing ffi (1.9.21), and Bundler cannot continue.

ビルドしてるログを見るとどうやらautoreconfがないよって怒られてる

で、autoconfをインストールしてもっかい試してみると今度はaclocalがないって怒られる

なので次はautomakeをインストールするとlibtoolのマクロがないって怒られる

libtoolもインストールするとようやく成功

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