Error when installing Ruby on Rails: “Failed to build gem native extension”

后端 未结 10 1715
太阳男子
太阳男子 2020-12-28 13:29

I\'m running Crunchbang 11 (Debian-based).

I\'m trying to install Ruby on Rails, like this:

gem install rails --version 4.0.0

I ge

10条回答
  •  梦谈多话
    2020-12-28 13:49

    Just a follow up ... on different solution...

    it may be that you are on a mac and rails cannot find the right compiler for c headers.

    just install xcode from apps store / homebrew or go to terminal ...

    $ xcode-select --install

    complete the installation and agree on the licensing etc, then ...

    $ sudo gem install rails

提交回复
热议问题