Cannot install thin on windows

后端 未结 6 928
遇见更好的自我
遇见更好的自我 2020-12-02 16:33

I cannot install thin gem on windows. Something happen during build of native extensions.

Do anybody face same issues?

Here is the stack trace:



        
6条回答
  •  感动是毒
    2020-12-02 17:18

    First, install the DevKit from the RubyInstaller for Windows website (which it appears you have already done).

    Then install eventmachine separately from the git repository as Roger shows.

    > gem install specific_install
    Successfully installed backports-1.18.1
    Successfully installed specific_install-0.2.3
    2 gems installed
    ...
    > gem specific_install -l http://github.com/eventmachine/eventmachine.git
    git installing from http://github.com/eventmachine/eventmachine.git
    ...
    Successfully built RubyGem
    Name: eventmachine
    Version: 0.12.11
    File: eventmachine-0.12.11.gem
    Temporarily enhancing PATH to include DevKit...
    Building native extensions.  This could take a while...
    Successfully installed eventmachine-0.12.11
    1 gem installed
    ...
    successfully installed
    

    You should then be able to install thin from the gem.

    > gem install thin
    Temporarily enhancing PATH to include DevKit...
    Successfully installed thin-1.2.7-x86-mingw32
    1 gem installed 
    ...
    > thin start
    Using rack adapter
    Thin web server (v1.2.7 codename No Hup)
    Maximum connections set to 1024
    Listening on 0.0.0.0:3000, CTRL+C to stop
    

提交回复
热议问题