心灵小站
点滴记忆
home
晚9点
讨论吧
gallery
Forum Index
Board index
»
计算机/电脑
»
常用软件
»
ubuntu 20.04 php7.2
Browsing this Thread: 1 Anonymous Users
Bottom
Previous Topic
Next Topic
Register To Post
Topic options
View mode
Newest First
eyex
ubuntu 20.04 php7.2
#1
eyex
Just can't stay away
Joined:
2017/9/5 21:34
Last Login:
9/23 17:17
Group:
Registered Users
Posts:
102
Level : 9
HP : 0 / 202
MP : 34 / 4269
EXP : 10
ubuntu 20.04 php7.2
export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/
./configure --prefix=/usr/local/php72 --with-config-file-path=/usr/local/php72/etc --with-pdo-mysql --enable-fpm --with-fpm-user=www-data --with-fpm-group=www-data --with-zlib --with-bz2 --with-curl --with-libxml-dir --with-mhash --enable-mbstring --enable-xml --enable-sockets --enable-zip --enable-bcmath
make && make install
cd ext/gd
/usr/local/php552/bin/phpize
./configure --with-php-config=/usr/local/php72/bin/php-config --with-jpeg-dir --with-png-dir --with-freetype-dir --with-webp-dir
Makefile line 32
CPPFLAGS = -I/usr/include/freetype2/ -DHAVE_CONFIG_H
make && make install
我在编译安装 PHP 时,遇到了 “freetype-config not found”的问题。
主要的思路就是用pkg-config代替freetype-config
sed -i "s/freetype-config/pkg-config/g" ./configure
sed -i "s/freetype-config/pkg-config/g" ./config.m4
sed -i "s/FREETYPE2_CONFIG --cflags/FREETYPE2_CONFIG freetype2 --cflags/g" ./configure
sed -i "s/FREETYPE2_CONFIG --libs/FREETYPE2_CONFIG freetype2 --cflags/g" ./configure
Posted on: 2020/9/30 14:00
Edited by eyex on 2020/9/30 14:51:32
Board index
»
计算机/电脑
»
常用软件
»
ubuntu 20.04 php7.2
Top
Previous Topic
Next Topic
Register To Post
[
Advanced Search
]
friend links
github中文
/
codewhy教程
/
kodi
Themes
bigcity
pointspace
(
2
themes)
Main Menu
Home
晚9点
讨论吧
gallery
Login
Username:
Password:
Lost Password?
Register now!
Categories
Xoops
(11)
--Modules
(2)
--Themes
(0)
Article
(8)
最美英文
(55)