mac php


./configure --prefix=/usr/local/webserver/php --with-config-file-path=/etc  --with-freetype --with-jpeg --with-png --with-zlib  --with-mhash --enable-fpm --with-openssl --with-zlib --enable-mbstring --with-mcrypt --with-mysql=/usr/local/webserver/mysql --with-mysql-sock=/tmp/mysql.sock --with-mysqli=/usr/local/webserver/mysql/bin/mysql_config --enable-sockets --with-iconv=/usr/local/iconv --with-curl

上面无效

php5.4.19

./configure --prefix=/usr/local/webserver/php --with-config-file-path=/etc --with-iconv-dir=/usr/local/ --with-freetype-dir --with-mysql=/usr/local/webserver/mysql --with-mysqli=/usr/local/webserver/mysql/bin/mysql_config --with-mysql-sock=/tmp/mysql.sock --with-jpeg-dir --with-png-dir --with-zlib --enable-ftp --with-libxml-dir --enable-xml --enable-safe-mode --enable-bcmath --enable-shmop --enable-sysvsem --enable-inline-optimization --with-curl --with-curlwrappers --enable-mbregex --enable-mbstring --with-mcrypt --with-gd --enable-gd-native-ttf --with-openssl --with-mhash --enable-pcntl --enable-sockets --with-ldap --with-ldap-sasl --enable-fpm --with-xmlrpc --enable-zip --enable-soap --with-pear 



tar zxvf libmcrypt-2.5.8.tar.gz

cd libmcrypt-2.5.8/libltdl
./configure --enable-ltdl-install
make
make install
cd ..
./configure --prefix=/usr
make
make install

cd ..




tar zxvf mcrypt-2.6.8.tar.gz
cd mcrypt-2.6.8
cd src
vi rfc2440.c

  FreeBSD与Linux的不同点,造成需要对 mcrypt 的源码进行一下小小的修改,才能在FreeBSD下编译通过。将其中的
引用
#include <malloc.h>

  修改为
引用
#include <stdlib.h>

  然后继续编译
引用
./configure --prefix=/usr
make
make install
cd ..




gd库


 decided to build from source code.

Several libraries are missing in my Mountain Lion.

FreeType: (link)

Deal with:

/usr/local/include/ft2build.h:56:10: fatal error: ‘freetype/config/ftheader.h’ file not found

after install freetype, a soft link should be made for matplotlib to locate the freetype.

ln -s /usr/local/include/freetype2/freetype/ /usr/include/freetype

LIBPNG: (link)

You can test the matplotlib by importing the pylab module in your python shell.

from pylab import *

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值