Skip to content
This repository has been archived by the owner on Dec 18, 2019. It is now read-only.

NoMethodError on run #25

Closed
kali-hernandez opened this issue Feb 2, 2016 · 2 comments
Closed

NoMethodError on run #25

kali-hernandez opened this issue Feb 2, 2016 · 2 comments

Comments

@kali-hernandez
Copy link

Tried both with the gem install and cloning the repo, when running mctop i get the follwing message:

$ bin/mctop 
/usr/local/share/gems/gems/ruby-pcap-0.7.9/lib/pcap/tcpdump_time_format.rb:10:in `<top (required)>': private method `include' called for Time:Class (NoMethodError)
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/local/share/gems/gems/ruby-pcap-0.7.9/lib/pcap_misc.rb:2:in `<top (required)>'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:135:in `require'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:135:in `rescue in require'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:144:in `require'
    from /home/khernandez/mctop/lib/cmdline.rb:2:in `<top (required)>'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from /usr/share/rubygems/rubygems/core_ext/kernel_require.rb:55:in `require'
    from bin/mctop:10:in `<main>'

Is this a missing dependency in the documentation (such as Ruby version) or something of the sort? Currently running on CentOS with ruby 2.0.0p598

@gdubicki
Copy link

I think that ruby-pcap-0.7.9 is at fault - #24 should help you.

@keyurdg
Copy link
Contributor

keyurdg commented Feb 26, 2016

#24 fixes this as @grzegorz-dubicki says

@keyurdg keyurdg closed this as completed Feb 26, 2016
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants