为什么在 cap 部署期间 ffi 未安装在远程服务器上?
我正在尝试使用 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 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
您应该在远程服务器上安装 awk 和 diff 工具。也许您在远程服务器上的 $PATH 错误。
You should install awk and diff tool on the remote server. Perhaps you have wrong $PATH on the rmote server.