[GH-ISSUE #4] 执行prdns报错 #2

Closed
opened 2026-03-15 02:16:37 +03:00 by kerem · 4 comments
Owner

Originally created by @ted-dev-42 on GitHub (Mar 4, 2020).
Original GitHub issue: https://github.com/arloan/prdns/issues/4

环境 ubuntu16.04 ruby2.6

Traceback (most recent call last):
7: from /usr/local/bin/prdns:23:in <main>' 6: from /usr/local/bin/prdns:23:in load'
5: from /var/lib/gems/2.6.0/gems/prdns-0.1.0/exe/prdns:5:in <top (required)>' 4: from /usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require'
3: from /usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' 2: from /var/lib/gems/2.6.0/gems/prdns-0.1.0/lib/prdns.rb:1:in <top (required)>'
1: from /usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require' /usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in require': cannot load such file -- async/dns (LoadError)

Originally created by @ted-dev-42 on GitHub (Mar 4, 2020). Original GitHub issue: https://github.com/arloan/prdns/issues/4 环境 ubuntu16.04 ruby2.6 Traceback (most recent call last): 7: from /usr/local/bin/prdns:23:in `<main>' 6: from /usr/local/bin/prdns:23:in `load' 5: from /var/lib/gems/2.6.0/gems/prdns-0.1.0/exe/prdns:5:in `<top (required)>' 4: from /usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 3: from /usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' 2: from /var/lib/gems/2.6.0/gems/prdns-0.1.0/lib/prdns.rb:1:in `<top (required)>' 1: from /usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require' /usr/lib/ruby/2.6.0/rubygems/core_ext/kernel_require.rb:54:in `require': cannot load such file -- async/dns (LoadError)
kerem closed this issue 2026-03-15 02:16:44 +03:00
Author
Owner

@arloan commented on GitHub (Mar 4, 2020):

@xcjiang Please check the output messages when you were installing the gem via gem install prdns, prdns depends on gem async-dns, which in return depends on gem async-io, it includes a native extension need to be compiled during the installation process. I guess there were some error message about it.

<!-- gh-comment-id:594309821 --> @arloan commented on GitHub (Mar 4, 2020): @xcjiang Please check the output messages when you were installing the gem via `gem install prdns`, `prdns` depends on gem `async-dns`, which in return depends on gem `async-io`, it includes a native extension need to be compiled during the installation process. I guess there were some error message about it.
Author
Owner

@ted-dev-42 commented on GitHub (Mar 4, 2020):

gem install 的时候并没有报错:

# gem install prdns
Fetching prdns-0.1.0.gem
Successfully installed prdns-0.1.0
Parsing documentation for prdns-0.1.0
Installing ri documentation for prdns-0.1.0
Done installing documentation for prdns after 0 seconds
1 gem installed
<!-- gh-comment-id:594310391 --> @ted-dev-42 commented on GitHub (Mar 4, 2020): gem install 的时候并没有报错: ``` # gem install prdns Fetching prdns-0.1.0.gem Successfully installed prdns-0.1.0 Parsing documentation for prdns-0.1.0 Installing ri documentation for prdns-0.1.0 Done installing documentation for prdns after 0 seconds 1 gem installed ```
Author
Owner

@arloan commented on GitHub (Mar 4, 2020):

OK... maybe I forget to add dependencies for the Gem...- -b

<!-- gh-comment-id:594311725 --> @arloan commented on GitHub (Mar 4, 2020): OK... maybe I forget to add dependencies for the Gem...- -b
Author
Owner

@arloan commented on GitHub (Mar 4, 2020):

OK, please optionally uninstall your already installed prdns version 0.1.0, then install the newest version 0.1.1, which fixed the missing dependencies problem.

<!-- gh-comment-id:594315723 --> @arloan commented on GitHub (Mar 4, 2020): OK, please **optionally** uninstall your already installed prdns version 0.1.0, then install the newest version 0.1.1, which fixed the missing dependencies problem.
Sign in to join this conversation.
No labels
pull-request
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/prdns#2
No description provided.