📂게임개발 note/에러&버그
에러: virtual memory exhausted: Cannot allocate memory
MTG
2015. 2. 9. 11:22
... ... ...
virtual memory exhausted: Cannot allocate memory
virtual memory exhausted: Cannot allocate memory
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
make: *** [ext/fileinfo/libmagic/apprentice.lo] Error 1
RHEL 7에서 PHP 5.4를 컴파일 설치하던중 발생한 에러입니다.
해결법.
./configure 옵션중, [--disable-fileinfo]를 추가합니다.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | [root] # ./configure \ -prefix=/usr/local/php-5.4.25 \ ... ... ... \ --disable-fileinfo # make & make install ... ... ... Generating phar.php Generating phar.phar PEAR package PHP_Archive not installed: generated phar will require PHP's phar extension be enabled. clicommand.incdirectorygraphiterator.inc directorytreeiterator.inc invertedregexiterator.inc pharcommand.inc phar.inc Build complete. Don't forget to run 'make test'. |
참조.
PHP :: Bug #48809 :: "virtual memory exhausted: Cannot allocate memory" with libmagic/apprentice.c