Linux installation mcrypt PHP development encountered the following problems, how to solve them?

  node.js, question

[root@localhostmcrypt-2.6.8]# make
make all-recursive
make[1]: Entering directory `/usr/local/src/mcrypt-2.6.8′
Making all in doc
make[2]: Entering directory `/usr/local/src/mcrypt-2.6.8/doc’
make[2]: Nothing to be done for `all’.
make[2]: Leaving directory `/usr/local/src/mcrypt-2.6.8/doc’
Making all in src
make[2]: Entering directory `/usr/local/src/mcrypt-2.6.8/src’
gaa -o gaaout.c -i gaa.h mcrypt.gaa
Make[2]: gaa: Command not found
make[2]:*[gaaout.c] error 127
make[2]: Leaving directory `/usr/local/src/mcrypt-2.6.8/src’
make[1]:*[all-recursive] Error 1
make[1]: Leaving directory `/usr/local/src/mcrypt-2.6.8′
make:*[all] Error 2

If you are using Ubuntu/Debian system, executesudo apt-get install php5-mcryptJust do it.
If you compiled PHP yourself, you need to add extensions through phpize provided by PHP:

sudo apt-get install libmcrypt-dev
/usr/include/mcrypt.h #头文件
/usr/lib/ #动态库
/usr/lib/libmcrypt.a  #静态库

cd php-src/ext/mcrypt
/opt/php/5.6/bin/phpize #生成configure
./configure --with-php-config=/opt/php/5.6/bin/php-config #生成Makefile
make && make install #编译安装