Passenger:无法编译Apache 2模块

时间:2017-08-22 16:44:03

标签: ruby-on-rails apache amazon-ec2 passenger

我尝试在AWS上为rails安装乘客,并完成了我正在关注的教程。最后我遇到了一个问题所以我卸载了乘客。但是,现在我无法重新安装。它被困在编译Apache 2.我很感激任何想法。我也尝试在它提到的文件夹上执行rm -rf *它无法删除它似乎不起作用。谢谢你的帮助!

Checking whether there are multiple Apache installations...
Only a single installation detected. This is good.

--------------------------------------------
Compiling and installing Apache 2 module...
cd /home/ec2-user/.rvm/gems/ruby-2.4.1/gems/passenger-5.1.7
# env NOEXEC_DISABLE=1 /home/ec2-user/.rvm/gems/ruby-2.4.1/wrappers/rake RELEASE=yes apache2:clean apache2
rm -rf buildout/cache
rm -rf buildout/common/libboost_oxt.a buildout/common/libboost_oxt
rm: cannot remove ‘buildout/common/libboost_oxt/boost/regex_raw_buffer.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/regex.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/regex_debug.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/cregex.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/regex_traits_defaults.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/once.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/posix_api.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/once_atomic.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/c_regex_traits.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/tss_null.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/static_mutex.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/future.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/thread.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/winstances.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/cpp_regex_traits.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/error_code.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/wide_posix_api.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/wc_regex_traits.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/boost/instances.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/oxt/implementation.o’: Permission denied
rm: cannot remove ‘buildout/common/libboost_oxt/oxt/system_calls.o’: Permission denied
rake aborted!
Command failed with status (1): [rm -rf buildout/common/libboost_oxt.a buil...]
/home/ec2-user/.rvm/gems/ruby-2.4.1/gems/passenger-5.1.7/build/common_library.rb:88:in `block in define_libboost_oxt_task'
/home/ec2-user/.rvm/gems/ruby-2.4.1@global/gems/rake-12.0.0/exe/rake:27:in `<top (required)>'
Tasks: TOP => apache2:clean => common:clean
(See full trace by running task with --trace)

1 个答案:

答案 0 :(得分:0)

我认为这与您的用户权限有关,请尝试以下方法:

rvmsudo passenger-install-apache2-module

如果您Command not found error检查解决方案here