gem install dm-postgres-adapter build error

前端 未结 1 1931
抹茶落季
抹茶落季 2021-02-09 09:15

i\'m trying to build dm-postgres-adapter but get this error.

sudo gem install dm-postgres-adapter

Building native extensions.  This could take a while...
ERROR:         


        
相关标签:
1条回答
  • 2021-02-09 09:53

    I fixed this.

    I wish I could give exact steps, but it was something like this:

    • Manually updated Command Line Tools from the apple developer site.

    • Uninstalled all gems

    • Installed rbenv, ruby-build, rbenv-bundler using brew

    • Installed apple-gcc42 using brew

    • Installed ruby 2.1 using rbenv

    • Set path to use rbenv's ruby.

    • Set rbenv global 2.1.0

    • Uninstalled bundle

    • Installed bundle

    • ran rbenv rehash

    • Ran sudo bundle install successfully.

    0 讨论(0)
提交回复
热议问题