Home >php教程 >php手册 >在FreeBSD上安装GD库的问题解决

在FreeBSD上安装GD库的问题解决

WBOY
WBOYOriginal
2016-06-13 10:10:38776browse

系统:FreeBSD 4.1
用sysinstall将gd-1.8.3和libpng,jpeg6b安装。确保你在usr/local/lib下有libgd.so.*和libpng.so.*
cd path_to_php_src
./configure --with-mysql=/path_to_mysql
--with-apache=/path_to_apache_src
--with-gd=/usr/local        这里不要加lib
--with-png-dir=usr/local    同上
--enable-track-vars
--enable-discard-path
--disable-debug
其后一切照旧。
西狂兄的3.4中带的是gd-1.7.0不知道能否支持你要的wbmp,不过我试了在3.4上用4.1的光盘add package也成功了。FreeBSD 4.0里面带的是1.8.0的GD
不知道为什么下载的gb库不能make出动态链接的东西。是不是make的时候要加什么参数。希望高人指点。

Statement:
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn