Bundler在GEM软件包em -udns -v&v' 0.3.6.2&#x27上失败了。安装

发布于 2025-02-11 07:10:03 字数 823 浏览 1 评论 0原文

当我试图在MacOS上运行捆绑包时,

An error occurred while installing em-udns (0.3.6.2), and Bundler cannot continue.
Make sure that `gem install em-udns -v '0.3.6.2' --source '{sourcepath}'` succeeds before bundling.

在“日志文件”打开后,我会发现错误,我发现该

"tar zxf /Users/user/.rbenv/versions/2.5.9/lib/ruby/gems/2.5.0/gems/em-udns-0.3.6.2/ext/udns-0.4-patched.tar.gz"
./configure
configure... udns package
checking for C compiler... gcc
checking whenever C compiler (gcc) is GNU CC... yes
checking whenever the C compiler (gcc -Wall -W -O2 -pipe)
           can produce executables... yes
checking for ranlib... ranlib
checking for getopt()... yes
checking for libraries needed for socket and connect... not found
configure: fatal: cannot find libraries needed for sockets**

如何解决问题?

When I am trying to run bundle install on macOs , I got error on

An error occurred while installing em-udns (0.3.6.2), and Bundler cannot continue.
Make sure that `gem install em-udns -v '0.3.6.2' --source '{sourcepath}'` succeeds before bundling.

After the open of log files I am find the

"tar zxf /Users/user/.rbenv/versions/2.5.9/lib/ruby/gems/2.5.0/gems/em-udns-0.3.6.2/ext/udns-0.4-patched.tar.gz"
./configure
configure... udns package
checking for C compiler... gcc
checking whenever C compiler (gcc) is GNU CC... yes
checking whenever the C compiler (gcc -Wall -W -O2 -pipe)
           can produce executables... yes
checking for ranlib... ranlib
checking for getopt()... yes
checking for libraries needed for socket and connect... not found
configure: fatal: cannot find libraries needed for sockets**

how can I fix the issue ?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。
列表为空,暂无数据
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文