[英]Error installing ribusb gem - Failed to build gem native extension
I get the following error when installing ribusb gem 安装ribusb gem时出现以下错误
[root@localhost ~]# gem install ribusb [root @ localhost〜]#gem安装ribusb
Building native extensions. This could take a while...
ERROR: Error installing ribusb:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby extconf.rb
creating Makefile
make
gcc -I. -I/usr/local/lib/ruby/1.8/i686-linux -I/usr/local/lib/ruby/1.8/i686-linux -I. -D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -Wall -c ribusb.c
ribusb.c:26:20: fatal error: libusb.h: No such file or directory
compilation terminated.
make: *** [ribusb.o] Error 1
Gem files will remain installed in /usr/local/lib/ruby/gems/1.8/gems/ribusb-0.0.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/1.8/gems/ribusb-0.0.1/./gem_make.out
If you are on a debian like system try: 如果您使用的是类似debian的系统,请尝试:
apt-get install libusb-dev
If you have an other OS check the libusb homepage 如果您有其他操作系统,请查看libusb主页
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.