[GH-ISSUE #7] 运行gem install prdns,遇错 #5

Open
opened 2026-03-15 02:17:11 +03:00 by kerem · 0 comments
Owner

Originally created by @briteming on GitHub (May 7, 2020).
Original GitHub issue: https://github.com/arloan/prdns/issues/7

hi.
在mac上。
yudeMacBook-Air:~ brite$ gem install prdns
ERROR: Loading command: install (LoadError)
dlopen(/usr/local/Cellar/ruby/2.6.3/lib/ruby/2.6.0/x86_64-darwin16/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib
Referenced from: /usr/local/Cellar/ruby/2.6.3/lib/ruby/2.6.0/x86_64-darwin16/openssl.bundle
Reason: image not found - /usr/local/Cellar/ruby/2.6.3/lib/ruby/2.6.0/x86_64-darwin16/openssl.bundle
ERROR: While executing gem ... (NoMethodError)
undefined method `invoke_with_build_args' for nil:NilClass
yudeMacBook-Air:~ brite$ which gem
/usr/local/opt/ruby/bin/gem
yudeMacBook-Air:~ brite$ which ruby
/usr/local/opt/ruby/bin/ruby
yudeMacBook-Air:~ brite$ gem --version
3.0.3
yudeMacBook-Air:~ brite$

怎么解决?

Originally created by @briteming on GitHub (May 7, 2020). Original GitHub issue: https://github.com/arloan/prdns/issues/7 hi. 在mac上。 yudeMacBook-Air:~ brite$ gem install prdns ERROR: Loading command: install (LoadError) dlopen(/usr/local/Cellar/ruby/2.6.3/lib/ruby/2.6.0/x86_64-darwin16/openssl.bundle, 9): Library not loaded: /usr/local/opt/openssl/lib/libssl.1.0.0.dylib Referenced from: /usr/local/Cellar/ruby/2.6.3/lib/ruby/2.6.0/x86_64-darwin16/openssl.bundle Reason: image not found - /usr/local/Cellar/ruby/2.6.3/lib/ruby/2.6.0/x86_64-darwin16/openssl.bundle ERROR: While executing gem ... (NoMethodError) undefined method `invoke_with_build_args' for nil:NilClass yudeMacBook-Air:~ brite$ which gem /usr/local/opt/ruby/bin/gem yudeMacBook-Air:~ brite$ which ruby /usr/local/opt/ruby/bin/ruby yudeMacBook-Air:~ brite$ gem --version 3.0.3 yudeMacBook-Air:~ brite$ 怎么解决?
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#5
No description provided.