노력과 삽질 퇴적물

에러: mcrypt.h not found. Please reinstall libmcrypt. 본문

📂게임개발 note/에러&버그

에러: mcrypt.h not found. Please reinstall libmcrypt.

MTG 2015. 1. 29. 13:38

[root]# cd /usr/local/php-5.4.25

[root]# ./configure  --enable-cgi --enable-fpm --with-mcrypt ... ... ...

... ... ...

configure: error: mcrypt.h not found. Please reinstall libmcrypt.






환경.


OS: 리눅스 레드햇7 (redhat 7)

php: php-5.4.25.tar.gz






해결법.


1
2
3
4
5
6
7
8
9
10
11
12
13
[root]# cd /usr/local
[root]# wget http://sourceforge.net/projects/mcrypt/files/Libmcrypt/2.5.8/libmcrypt-2.5.8.tar.gz
[root]# tar xzf libmcrypt-2.5.8.tar.gz
[root]# cd libmcrypt-2.5.8
[root]# ./configure
[root]# make
[root]# make install
[root]# vi /etc/ld.so.conf
(vi editor)
include ld.so.conf.d/*.conf
/usr/local/lib
 
# ldconfig






참조.


php 설치 에러 configure: error: mcrypt.h not found. Please reinstall libmcrypt. | DJ Tarot