我试图在Ubuntu 15.04上安装twitter gem并且此错误不断弹出
gem install twitter
Building native extensions. This could take a while...
ERROR: Error installing twitter:
ERROR: Failed to build gem native extension.
/usr/bin/ruby2.1 extconf.rb
mkmf.rb can't find header files for ruby at /usr/lib/ruby/include/ruby.h
extconf failed, exit code 1
Gem files will remain installed in /var/lib/gems/2.1.0/gems/http_parser.rb-0.6.0 for inspection.
Results logged to /var/lib/gems/2.1.0/extensions/x86-linux/2.1.0/http_parser.rb-0.6.0/gem_make.out
答案 0 :(得分:4)
您收到此错误,因为没有安装ruby开发环境。编译ruby扩展需要开发环境,
您应首先使用以下命令安装开发:
$ sudo apt-get install ruby-dev
答案 1 :(得分:1)
我有类似的问题,我通过安装ruby-dev:
解决了这个问题self.setTabsClosable(True)