在 VSP 中为乘客编写 apache 时出错"out of memory allocating"
Error "out of memory allocating" at compling passenger for apache in a VSP
我在VPS (OpenVz)中运行debian 7.0 (amd64) 1GB Ram, 512MB SWAP并尝试安装OpenProject。但是如果我尝试用
为Apache编译Passengerpassenger-install-apache2-module
我得到以下错误信息:
cc1plus: out of memory allocating 2048 bytes after a total of 5304320 bytes
rake aborted!
Command failed with status (1): [c++ -Iext -Iext/common -Iext/libev -fPIC -D_REENTRANT -D_GNU_SOURCE -I/usr/include/apr-1.0 -I/usr/include/apr-1.0 -I/usr/include -D_FORTIFY_SOURCE=2 -D_GNU_SOURCE -D_REENTRANT -I/usr/include -I/usr/include/apr-1.0 -I/usr/include/openssl -I/usr/include/xmltok -pthread -I/usr/include/apache2 -D_REENTRANT -I/usr/local/include -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-long-long -Wno-missing-field-initializers -fcommon -feliminate-unused-debug-symbols -feliminate-unused-debug-types -fvisibility=hidden -DVISIBILITY_ATTRIBUTE_SUPPORTED -Wno-attributes -ggdb -DHAS_ALLOCA_H -DHAVE_ACCEPT4 -DHAS_SFENCE -DHAS_LFENCE -DPASSENGER_DEBUG -DBOOST_DISABLE_ASSERTS -std=gnu++11 -DHASH_NAMESPACE="__gnu_cxx" -DHASH_MAP_HEADER="<hash_map>" -DHASH_MAP_CLASS="hash_map" -DHASH_FUN_H="<hash_fun.h>" -o buildout/apache2/module_libpassenger_common/Logging.o -c ext/common/Logging.cpp]
/home/openproject/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.41/build/cplusplus_support.rb:51:in `run_compiler'
/home/openproject/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.41/build/cplusplus_support.rb:61:in `compile_cxx'
/home/openproject/.rvm/gems/ruby-2.1.0/gems/passenger-4.0.41/lib/phusion_passenger/common_library.rb:133:in `block (2 levels) in define_category_tasks'
Tasks: TOP => apache2 => buildout/apache2/mod_passenger.so => buildout/apache2/module_libpassenger_common/Logging.o
我认为问题是,我的交换分区太小了,但我不能设置更多,因为OpenVz虚拟化
swapon failed: Operation not permitted
谁有解决这个问题的办法?谢谢你们了! 您必须获得具有更多RAM的服务器,或者不使用OpenVZ的服务器,以便您可以启用交换。对不起。
相关文章:
- 访问者访问变体并返回不同类型时出错
- 在Linux for Windows上编译C++代码时出错
- 读取文件的最后一行并输入到链接列表时出错
- 重载操作程序时出错>>用于类中的字符串 memebr
- 调用专用模板时出错"no matching function for call to [...]"
- C++-试图将函数指针推回到另一个CPP文件中的矢量时出错
- LINK 尝试使用 OpenSSL evp aes 256 c++ 时出错
- 在Google Kick start中提交时出错
- 在c++中访问int到类对象的映射时出错
- 分段错误当我试图运行程序时出错
- 使用dynamic_cast和构造函数时出错
- CHECK(调用)函数在Google Colab中出错
- 用pybind11包装C++抽象类时出错
- 为x86而非x64编译时出错
- 从R调用C++函数并对其进行集成时出错
- 注册 Clang 检查器时出错:"out-of-line-definition of register"
- 在 Eclipse 中使用 GDB 时出错:"Command '-list-features' is timed out"
- ./a,out:加载共享库和链接时出错
- 在 VSP 中为乘客编写 apache 时出错"out of memory allocating"
- "Numeric value out of range" 将 SQLFetch() 与 SQL_C_FLOAT 一起使用时出错