当前位置:网站首页>Php7.2 add JPEG extension
Php7.2 add JPEG extension
2022-06-25 04:39:00 【zepcjsj0801】
A system is supposed to php5.6 On , Upgrade the server today , By the way, the php It's also upgraded , After the upgrade, I feel sad , Unable to generate thumbnails .
The problem is :Call to undefined function imagecreatefromjpeg()``
then phpinfo see , No, jpeg An extension of
A lot of Baidu is like this :
Download the expansion pack first
wget http://www.ijg.org/files/jpegsrc.v6b.tar.gz
install
tar -zxvf jpegsrc.v6b.tar.gz
cd jpeg-6b
./configure --prefix=xxxx # This path xxxx Remember , I'll take the exam later
make && make install
cd php Source package /ext/gd
php The installation path /bin/phpize
./configure --with-jpeg-dir=xxxx #jpeg The installation path
make && make install
# By the end of this
This is from Baidu , Almost always , But it doesn't work on my server , For two hours .
Finally, a flash of inspiration ^ _ ^, Do you want to php Recompile it , But I am worried that it will affect other extensions .
Final stroke , No Baidu , I groped for it myself
phpinfo Copy the contents behind this position of the page 
Replace the single quotation marks , Don't move the rest , find -width-jpeg-dir Followed by xxxx (jpeg Installation path for )
Switch to php Source package directory Direct paste ./configure This is a piece of function
Last make && make install
restart php
It did ( In the middle, I actually missed one time ,gd Check for errors , I downloaded it jpeg Version too high ), Almost excited to cry
边栏推荐
- GBASE 8s存储过程执行和删除
- Failed to install redis interface
- php封装curl发送get、post请求方法,并使用
- 2.0SpingMVC使用RESTful
- 2021.8.29 notes: register, bit operation, pointer, structure
- Gbase 8s index R tree
- Laravel document sorting 9. Blade template
- A detailed summary of TCP connection triple handshake
- JS' sort() function
- jsz中的join()
猜你喜欢

Gbase 8s index R tree

A detailed summary of TCP connection triple handshake

CTF_ Web: deserialization of learning notes (II) CTF classic test questions from shallow to deep

Nodejs connects to MySQL through heidisql, and ER appears_ BAD_ DB_ ERROR: Unknown database 'my_ db_ books'

单元测试覆盖率

Record small knowledge points

Basic use of OBS browser+ browser

Unit test coverage

简单的恶意样本行文分析-入门篇

mongodb集群
随机推荐
Join() in JSZ
OOP 向量加减(友元+拷贝构造)
Part I Verilog quick start
我的IC之旅——资深芯片设计验证工程师成长——“胡”说IC工程师完美进阶
深度学习——几种学习类型
The yii2 debug toolbar is missing
CTF_ Web: how to recognize and evaluate a regular expression
php开发支付宝支付功能之扫码支付流程图
How to screen out words related to products and eliminate invalid words accurately
Concat() in JS
Record small knowledge points
Paper notes: multi label learning ESMC (I don't understand it, but I haven't written it yet, so I'll put it here for a place temporarily)
Codeforces Round #802 (Div. 2) C D
[esp32 learning path 6 - Flash encryption]
PostgreSQL数据库WAL——RM_HEAP_ID日志记录动作
Gbase 8s parallel operation problem scenario description
Synchronous and asynchronous functions (callback function, promise, generator, async/await)
GBASE 8s中DELIMIDENT环境变量的使用
Office macro virus bounce shell experiment
Communication problems in parent and child components of uniapp