为什么在 cap 部署期间 ffi 未安装在远程服务器上?

发布于 2025-01-07 01:00:58 字数 1950 浏览 0 评论 0原文

我正在尝试使用 capistrano 将我的 Rails 应用程序部署到服务器,并在执行“cap deploy”后出现以下错误:

 ** [out :: ny.railshoster.de] /opt/ruby-e/bin/ruby extconf.rb
 ** [out :: ny.railshoster.de] checking for ffi.h... no
 ** [out :: ny.railshoster.de] checking for ffi.h in /usr/local/include... no
 ** [out :: ny.railshoster.de] checking for rb_thread_blocking_region()... yes
 ** [out :: ny.railshoster.de] checking for ruby_native_thread_p()... yes
 ** [out :: ny.railshoster.de] checking for rb_thread_call_with_gvl()... yes
 ** [out :: ny.railshoster.de] creating extconf.h
 ** [out :: ny.railshoster.de] creating Makefile
 ** [out :: ny.railshoster.de] 
 ** [out :: ny.railshoster.de] make
 ** [out :: ny.railshoster.de] Configuring libffi
 ** [out :: ny.railshoster.de] /home/{my_account}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/configure: line 2367: sleep: command not found
 ** [out :: ny.railshoster.de] /etc/magic, 0: Warning: using regular magic file `/usr/share/misc/magic'
 ** [out :: ny.railshoster.de] file: could not find any magic files!
 ** [out :: ny.railshoster.de] /home/{my_account}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/configure: line 7852: diff: command not found
 ** [out :: ny.railshoster.de] /home/{my_account}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/configure: line 9721: awk: command not found
 ** [out :: ny.railshoster.de] /home/{my_account}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/configure: line 9781: awk: command not found
 ** [out :: ny.railshoster.de] ./config.status: line 1274: awk: command not found
 ** [out :: ny.railshoster.de] config.status: error: could not create include/Makefile
 ** [out :: ny.railshoster.de] make: *** ["/home/{my_account}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi"/.libs/libffi_convenience.a] Error 1

我希望命令行输出的摘录是不言自明的,但我可以提供任何其他信息,以防万一必要的。 预先感谢您的任何帮助。

I am trying to deploy my rails application to a server using capistrano and end up with the following error after executing "cap deploy":

 ** [out :: ny.railshoster.de] /opt/ruby-e/bin/ruby extconf.rb
 ** [out :: ny.railshoster.de] checking for ffi.h... no
 ** [out :: ny.railshoster.de] checking for ffi.h in /usr/local/include... no
 ** [out :: ny.railshoster.de] checking for rb_thread_blocking_region()... yes
 ** [out :: ny.railshoster.de] checking for ruby_native_thread_p()... yes
 ** [out :: ny.railshoster.de] checking for rb_thread_call_with_gvl()... yes
 ** [out :: ny.railshoster.de] creating extconf.h
 ** [out :: ny.railshoster.de] creating Makefile
 ** [out :: ny.railshoster.de] 
 ** [out :: ny.railshoster.de] make
 ** [out :: ny.railshoster.de] Configuring libffi
 ** [out :: ny.railshoster.de] /home/{my_account}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/configure: line 2367: sleep: command not found
 ** [out :: ny.railshoster.de] /etc/magic, 0: Warning: using regular magic file `/usr/share/misc/magic'
 ** [out :: ny.railshoster.de] file: could not find any magic files!
 ** [out :: ny.railshoster.de] /home/{my_account}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/configure: line 7852: diff: command not found
 ** [out :: ny.railshoster.de] /home/{my_account}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/configure: line 9721: awk: command not found
 ** [out :: ny.railshoster.de] /home/{my_account}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi/configure: line 9781: awk: command not found
 ** [out :: ny.railshoster.de] ./config.status: line 1274: awk: command not found
 ** [out :: ny.railshoster.de] config.status: error: could not create include/Makefile
 ** [out :: ny.railshoster.de] make: *** ["/home/{my_account}/rails1/shared/bundle/ruby/1.9.1/gems/ffi-1.0.11/ext/ffi_c/libffi"/.libs/libffi_convenience.a] Error 1

I hope the excerpt of the commandline output is self explanatory, but i can provide any additional information in case it is necessary.
Thanks in advance for any help.

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

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

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

泪痕残 2025-01-14 01:00:58

您应该在远程服务器上安装 awk 和 diff 工具。也许您在远程服务器上的 $PATH 错误。

You should install awk and diff tool on the remote server. Perhaps you have wrong $PATH on the rmote server.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文