0

I need to install the Ruby development tools on Windows, essentially the same command as described in https://stackoverflow.com/a/12552948/6474013.

I have already tried to use Sudowin but it's doesn't work for the ruby command prompt. I use RailsInstaller with Ruby 2.1.8

Community
  • 1
  • 1
Lapan
  • 3
  • 1
  • 2
  • You need to install ruby developer tools. [Visit this link](http://stackoverflow.com/questions/37856087/sudo-apt-get-install-ruby-dev-in-windows) – shivakrishna9 Apr 04 '17 at 18:48

1 Answers1

0

In order to install the compiler toolchain to compile certain gems on Windows, you can install the DevKit as an Addon to Ruby Installer.

If you installed a Rails Installer package from http://railsinstaller.org/, this should already be included into the package.

Holger Just
  • 52,918
  • 14
  • 115
  • 123
  • I know, but for example when i type "gem install curses" : Temporarily enhancing PATH to include DevKit... Building native extensions. This could take a while... ERROR: Error installing curses: ERROR: Failed to build gem native extension. **extconf.rb failed*** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options.//.. Also in RubyMine when i try install gems have thar eror "Native compilation failed.Please make sure that you have Ruby DevKit installed" – Lapan Jun 16 '16 at 15:40
  • Well, in order to install gems which interface with external libraries, you have to install these external libraries to your system. In the case of `curses`, you do need to install the curses library and their development headers to your computer – Holger Just Jun 16 '16 at 16:48