免费注册 查看新帖 |

Chinaunix

  平台 论坛 博客 文库
最近访问板块 发新帖
查看: 2867 | 回复: 1
打印 上一主题 下一主题

安装serialport [复制链接]

论坛徽章:
0
跳转到指定楼层
1 [收藏(0)] [报告]
发表于 2011-03-09 12:23 |只看该作者 |倒序浏览
转:s8186255


安装serialport





ruby控制串口,使用serialport这个插件。测试之后按照如下方式可以安装成功:
1、devkit的安装及配置,不用赘述,参考我的其他博文;目前这个环境是minGW
2、下载最新的serialport gem包,目前是1.0.4,github中有。或者做如下设定:gem sources -a http://gemcutter.org
然后 gem install serialport即告成功。

其他说明:
1、本次成功环境是:ruby1.8.7;
2、曾经使用bcc的编译环境,老是配不通,主要是前面使用过devkit,
3、按照多数中文资料,不设置gem源,将缺省指向rubyforge.org,得到的serialport版本比较老。老是出现如下错误:
gem install ruby-serialport
Temporarily enhancing PATH to include DevKit...
Building native extensions.  This could take a while...
ERROR:  Error installing ruby-serialport:
        ERROR: Failed to build gem native extension.

        D:/ir3/ruby/bin/ruby.exe extconf.rb
checking for OS... mingw
checking for termios.h... no
*** 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.

论坛徽章:
0
2 [报告]
发表于 2011-03-09 12:58 |只看该作者
不接触。
您需要登录后才可以回帖 登录 | 注册

本版积分规则 发表回复

  

北京盛拓优讯信息技术有限公司. 版权所有 京ICP备16024965号-6 北京市公安局海淀分局网监中心备案编号:11010802020122 niuxiaotong@pcpop.com 17352615567
未成年举报专区
中国互联网协会会员  联系我们:huangweiwei@itpub.net
感谢所有关心和支持过ChinaUnix的朋友们 转载本站内容请注明原作者名及出处

清除 Cookies - ChinaUnix - Archiver - WAP - TOP