./configure --prefix=/usr/local/php --with-config-file-path=/usr/local/php/conf/ --with-mysql --with-mysqli --with-pdo-mysql --with-iconv-dir --with-freetype-dir --with-jpeg-dir --with-png-dir --with-zlib --with-libxml-dir --enable-bcmath --enable-shmop --enable-sysvsem --with-curl --enable-mbstring --with-mcrypt --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --enable-cli --with-xmlrpc --enable-exif --enable-calendar --with-imap --with-kerberos --with-imap-ssl --enable-fpm --enable-mysqlnd --with-gd
make ZEND_EXTRA_LIBS=‘-liconv‘
sudo make install