sferik / t-ruby

A command-line power tool for Twitter.
http://sferik.github.com/t
MIT License
5.43k stars 410 forks source link

installation: http_parser fails install on linux #461

Open mrsauravsahu opened 2 years ago

mrsauravsahu commented 2 years ago
$ ruby -v
ruby 3.0.2p107 (2021-07-07 revision 0db68f0233) [x86_64-linux-gnu]

$ gem -v 
3.3.5

$ uname -a
Linux DELL-INSPIRON 5.15.0-27-generic #28-Ubuntu SMP Thu Apr 14 04:55:28 UTC 2022 x86_64 x86_64 x86_64 GNU/Linux

$ lsb_release -a
No LSB modules are available.
Distributor ID: Ubuntu
Description:    Ubuntu 22.04 LTS
Release:    22.04
Codename:   jammy

I'm trying to install t on Ubuntu. I'm getting an error related to http_parser not getting installed correctly.

$ sudo gem install t
Building native extensions. This could take a while...
ERROR:  Error installing t:
    ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/3.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
/usr/bin/ruby3.0 -I /usr/lib/ruby/vendor_ruby -r ./siteconf20220518-7518-defb04.rb extconf.rb
creating Makefile

current directory: /var/lib/gems/3.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make DESTDIR\= clean
current directory: /var/lib/gems/3.0.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make DESTDIR\=
make failedNo such file or directory - make

Gem files will remain installed in /var/lib/gems/3.0.0/gems/http_parser.rb-0.6.0 for inspection.
Results logged to /var/lib/gems/3.0.0/extensions/x86_64-linux/3.0.0/http_parser.rb-0.6.0/gem_make.out