2015-07-20 82 views
0

我们正在尝试设置乘客(该想法设置为独立)。我们将它安装为一个gem,并且在执行乘客启动命令时,我们在编译中发现了以下错误。乘客编译错误耙子执行

Compile the agent with optimizations? 

Compiling the agent with optimizations will make Phusion Passenger faster, but 
it will take longer to compile and it requires at least 2 GB of memory. 
(You have 5.0 GB memory.) 

Compile with optimizations? [y/n]: y 

Compiling Phusion Passenger agent... 
[**************************************************] | 
*** ERROR: a Rake command failed. You can find the full log in /tmp/passenger-install-log-1qcyhcn        . Below, you can find the last few lines of the command's output. 
------------- Begin command output snippet ------------- 
rake aborted! 
Command failed with status (2): [cd /tmp/passenger-install.vzccp7/libuv/&&...] 
/usr/local/lib/ruby/gems/2.0.0/gems/rake-10.4.2/lib/rake/file_utils.rb:66:in `block in create_shell_runner' 
/usr/local/lib/ruby/gems/2.0.0/gems/rake-10.4.2/lib/rake/file_utils.rb:57:in `call' 
/usr/local/lib/ruby/gems/2.0.0/gems/rake-10.4.2/lib/rake/file_utils.rb:57:in `sh' 
/usr/local/lib/ruby/gems/2.0.0/gems/rake-10.4.2/lib/rake/file_utils_ext.rb:37:in `sh' 
/usr/local/lib/ruby/gems/2.0.0/gems/passenger-5.0.14/build/common_library.rb:201:in `block in <top (required)>' 

... ...

Tasks: TOP => /tmp/passenger-install.vzccp7/support-binaries/PassengerAgent => /tmp/passenger-ins        tall.vzccp7/libuv/.libs/libuv.a 
------------- End command output snippet ------------- 
The full log can be found in /tmp/passenger-install-log-1qcyhcn 

我们的环境:

  • 红宝石2.0.0p0(2013年2月24日)[x86_64的Linux的]
  • 的Rails 4.2.3
  • 宝石:乘客(5.0.14)

请问有人可以帮助我们吗? 在此先感谢

+2

你能发布完整日志吗? – adamliesko

+0

当然,对于延迟感到抱歉。我在这里上传了整个日志... http://www.wikiupload.com/T02YBJ6VTJDHERT –

+0

查看日志文件的更多细节,它看起来像是在一些不存在的结构中执行“cd命令”失败: **执行/tmp/passenger-install.vzccp7/libuv/.libs/libuv.a rake中止! (2):[cd /tmp/passenger-install.vzccp7/libuv/ && ...] /usr/local/lib/ruby/gems/2.0.0/gems/rake-10.4.2 /lib/rake/file_utils.rb:66:in'create_shell_runner中的块' –

回答

0

该问题与权限有关。用su重新执行该命令,编译完成Ok。

感谢大家的支持!

(我们必须解决与PCRE头文件有关的新问题... :)