yum install gcc gcc-c++ -y

以下示例代码为自定义路径~用默认的不需要设置额外参数:

mkdir -p /opt/gd
wget https://github.com/libgd/libgd/releases/download/gd-2.2.5/libgd-2.2.5.tar.gz
tar xf libgd-2.2.5.tar.gz
cd libgd-2.2.5
./configure --prefix=/opt/gd --exec-prefix=/lnp/gd
make && make install

Related Posts: GD库编译安装方法 :

留言

avatar