我正在尝试使用
在rails上安装适用于Ruby的Apache2模块
乘客安装-apache2的模块
但是,它在编译和安装返回的Apache2模块时返回错误
rm -rf buildout/cache
rm -rf buildout/common/libboost_oxt.a buildout/common/libboost_oxt
rm: cannot remove `buildout/common/libboost_oxt/boost/wide_posix_api.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/tss_null.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/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/error_code.o': Permission denied
rm: cannot remove `buildout/common/libboost_oxt/boost/regex.o': Permission denied
rm: cannot remove `buildout/common/libboost_oxt/boost/instances.o': Permission denied
rm: cannot remove `buildout/common/libboost_oxt/boost/regex_raw_buffer.o': Permission denied
rm: cannot remove `buildout/common/libboost_oxt/boost/once.o': Permission denied
rm: cannot remove `buildout/common/libboost_oxt/boost/winstances.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/static_mutex.o': Permission denied
rm: cannot remove `buildout/common/libboost_oxt/boost/cregex.o': Permission denied
rm: cannot remove `buildout/common/libboost_oxt/boost/lockpool.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/regex_traits_defaults.o': Permission denied
rm: cannot remove `buildout/common/libboost_oxt/boost/regex_debug.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!
如何避免此错误并安装apache2模块?
感谢任何帮助
答案 0 :(得分:0)
尝试以下方法:
sudo passenger-install-apache2-module