hparra / ruby-serialport

ruby-serialport is a Ruby library that provides a class for using RS-232 serial ports
http://rubygems.org/gems/serialport
GNU General Public License v2.0
246 stars 58 forks source link

can't install at ruby2.0 #53

Closed sevk closed 8 years ago

sevk commented 10 years ago

G:\dev-tools\200_rb_dev-kit>ruby -v
ruby 2.0.0p481 (2014-05-08) [i386-mingw32]

G:\dev-tools\200_rb_dev-kit>gem install serialport
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing serialport:
        ERROR: Failed to build gem native extension.

    w:/Ruby200/bin/ruby.exe extconf.rb
checking for OS... mingw
creating Makefile

make "DESTDIR="

Gem files will remain installed in w:/Ruby200/lib/ruby/gems/2.0.0/gems/serialpor
t-1.3.0 for inspection.
Results logged to w:/Ruby200/lib/ruby/gems/2.0.0/gems/serialport-1.3.0/ext/nativ
e/gem_make.out
djlazz3 commented 8 years ago

How did you solve this problem?

sevk commented 8 years ago

I don't know , but it is OK now .

G:\FTP\sevk\dev-tools\ruby-devkit>devkitvars.bat
Adding the DevKit to PATH...

G:\FTP\sevk\dev-tools\ruby-devkit>gem install serialport
Building native extensions.  This could take a while...
Successfully installed serialport-1.3.1
1 gem installed

G:\FTP\sevk\dev-tools\ruby-devkit>ruby -v
ruby 2.0.0p594 (2014-10-27) [i386-mingw32]

G:\FTP\sevk\dev-tools\ruby-devkit>