2018年春节买你的vivox9买后悔了吗手机怎么样?

评论列表(网友评论仅供网友表达个人看法,并不表明本站同意其观点或证实其描述)
赞助商广告
相关内容推荐技术分享&&&LINUX&&&不重新编译PHP文件的情况下GD库扩展库的安装
不重新编译PHP文件的情况下GD库扩展库的安装
操作系统:centos
php版本:php-5.4.4
所需要的库文件:
freetype-2.4.10.tar.bz2
gd-2.0.35.tar.bz2
jpegsrc.v8d.tar.gz
libpng-1.5.12.tar.bz2
zlib-1.2.7.tar.bz2
1)安装zlib(找个自己觉得合适的目录解压包文件)
tar jxf zlib-1.2.7.tar.bz2
cd zlib-1.2.7
./configure --prefix=/usr/local/zlib
make install
2)安装libpng
tar jxf libpng-1.5.12.tar.bz2
cd libpng-1.5.12
./configure --prefix=/usr/local/libpng --disable-static --with-zlib-prefix=/usr/local/zlib
make install
3)安装jpeg
tar zxf jpegsrc.v8d.tar.gz
cd jpegsrc-v8
./configure --prefix=/usr/local/libjpeg --enable-shared --enable-static
make install
4)安装freetype
tar jxf freetype-2.4.10.tar.bz2
cd freetype-2.4.10
./configure --prefix=/usr/local/freetype --disable-static
make install
5)安装gd库
tar jxf gd-2.0.35.tar.bz2
cd gd-2.0.35
./configure --prefix=/usr/local/gd2 --with-jpeg=/usr/local/libjpeg
--with-png=/usr/local/libpng --with-zlib=/usr/local/zlib
--with-freetype=/usr/local/freetype
make install
6)最后一步&集成 gd 扩展到PHP里&
首先切换到PHP源码包,已经安装 php5.4.4,通过追加编译安装&
注:编译的时候可能会出现类似这样的错&
/root/src/php-5.4.4/ext/gd/gd_ctx.c:153: 错误:‘gdIOCtx’ 没有名为 ‘data’ 的成员
解决办法在文章后附上
cd /root/src/php-5.4.4/ext/gd
/usr/local/php/bin/phpize
./configure --with-php-config=/usr/local/php/bin/php-config --with-gd=/usr/local/gd2
--with-jpeg-dir=/usr/local/libjpeg --with-png-dir=/usr/local/libpng
--with-freetype-dir=/usr/local/freetype --with-zlib-dir=/usr/local/zlib
make install
最后编辑php.ini 找到 gd 扩展配置处添加
extension=gd.so
可能需要把gd.so 拷贝到php的ext目录下。我编译好的gd.so 文件目录是
&/usr/local/php/lib/php/extensions/no-debug-non-zts-/
apache 重启OK。(nginx 服务器只需重启php就可以)
可以直接用 /usr/local/php/bin/php -m 命令来查看是否支持 gd了。
关于错误:‘gdIOCtx’ 没有名为 ‘data’ 的成员
vim /usr/local/gd2/include/gd_io.h
在&gdIOCtx 结构体中增加 void *
具体如下:
typedef struct gdIOCtx
int (*getC) (struct gdIOCtx *);
int (*getBuf) (struct gdIOCtx *, void *, int);
void (*putC) (struct gdIOCtx *, int);
int (*putBuf) (struct gdIOCtx *, const void *, int);
/* seek must return 1 on SUCCESS, 0 on FAILURE. Unlike fseek! */
int (*seek) (struct gdIOCtx *, const int);
long (*tell) (struct gdIOCtx *);
void (*gd_free) (struct gdIOCtx *);
// 添加好了哦
void (*data);
&a href=/achat-furosemide.php&Achat Furosemide&/a& Viagra Comment Prendre Generic Levitra Online Canada Www Rx Customer Support Achat Cialis Avec Paypal Propecia Con Como Hacer Does Alcohol Affect Cephalexin
&a href=/buy-online-amoxil.php&Buy Online Amoxil&/a& Propecia Alcool On Line Dutasteride Best Website Fort Worth Nuova Propecia Finasteride
&a href=http://priligy./cheap-priligy-online.php&Cheap Priligy Online&/a& Venta De Viagra Farmacias Achat Cialis Montreal Cialis Generic Vs Brand Surdosage Lioresal
&a href=/no-prescription-antabuse.php&No Prescription Antabuse&/a& Levitra En Farmacias Generisches Viagra Kaufen Cialis Soft Tabs 20mg Amoxicillin Urine Leakage
&a href=http://xenical./buy-alli.php&Buy Alli&/a& Cialis Forum De Discussion Clavulanate Potassium And Penicillin Comprar Cialis Generico Europa Levitra 10 Mg Orosolubile Prezzo Farmacia
&a href=/how-to-buy-cialis.php&How To Buy Cialis&/a& Levitra Effets Secondaires Prix Effets Secondaires De Amoxil Viagra Kauf De Viagra Funciona Si
&a href=&Buy Viagra&/a& Tomar Cialis Es Bueno Online Amoxil No Prescription Acheter Cialis Uk Ticarcillin Amoxicillin Clavulanate
&a href=/disulfiram-tablets.php&Disulfiram Tablets&/a& Dosage De Clomid Discount Pharmacy From Canada Cialis Pour Les Jeunes
&a href=&viagra&/a& Tadalis Sx Soft Drug Pcn Without Apresrciption Does The Levitra You Can Buy Online Work The Same
&a href=http://xenical./buy-cheap-xenical-pills.php&Buy Cheap Xenical Pills&/a& How Last Longer Effet Viagra Fertilite Levita Buy Lifestyle Pharmaceuticals Best Prices For Viagra 100mg
&a href=/misoprostol-online.php&Misoprostol Online&/a& Purchasing Finasteride Vendo Cialis Generico Viagra Overdose
&a href=/clomid-buy-online.php&Clomid Buy Online&/a& Propecia Without A Prescription Viagra Allergic Reactions To Zithromax Accutane Discount Card Propecia Gestacion
&a href=/where-to-order-vibramycin.php&Where To Order Vibramycin&/a& Using Amoxil For Cats Viagra Kaufen Deutschland Order Now Generic Acticin Scabies Best Website Amoxicillin Use In First Trimester Pregnancy
&a href=&viagra prescription&/a& Zithromax Ok With Alcohol Real Viagra No Prescription Purchase Orlistat Pills Viagra E Cialis Acquisti
&a href=&Buy Levitra&/a& Livraison Cialis En 24 Heures Avanafil 200 Mg Keflex With Probenecid Viagra Versand Nl Secure Ordering Worldwide Progesterone Medicine Visa Accepted Progesterone Medicine Where To Buy On Line
&a href=http://zithromax./where-to-buy-zithromax.php&Where To Buy Zithromax&/a& Lioresal Commander 10mg Apply Propecia How To Pronounce Keflex
remontoknaBix02/23 11:22
Проседание, затирание, провисание повреждение герметичности (продув, сквозняк) створок окна – это конечно нормальное проявление, которое со временем случается во всех абсолютно металлопластиковых оконных рамах и дверях. И их следовательно надлежит корректировать (обслуживать), с тем чтобы избегнуть, в будущем, дорогостоящего проведения ремонта.
Это в целом как в автомашине услуга прохождения технического осмотра : когда вовремя не сменить масло, не исправить стук или чужеродный шум – последствия могут быть печальными или катастрофическими. (к примеру замена масла однажды в год или раз в 10000 км. – по стоимости к примеру 957 грн. Однако сервис двигателя обходится 9557 грн.) У нас задействованы высокопроффесиональные умельцы, они помогут решить любую трудность и ублажить даже самого прихотливого клиента
Заказывайте &a href=.ua&ремонт пластиковых окон киев&/a& у нас, у проффесионалов.
Заказать &a href=.ua/remont-okon/13-zamena-uplotnitelya-na-oknah.html&замена уплотнителя на окнах&/a& у проффесионалов.
CharlesEvark04/05 19:21
Как избавиться от скола на лобовом стекле?
Glass Profi
Набор для устранения сколов и трещин с лобового стекла
Набор предназначен для самостоятельного устранения сколов и трещин на стекле.
Устраняет повреждения и останавливает развитие трещин.
Время схватывания и затвердевания не заставит долго ждать.
Восстанавливает прозрачность и оптические свойства стекла.
http://urlcut.ru/4g9a
CharlesEvark04/06 08:16
Как избавиться от скола на лобовом стекле?
Glass Profi
Набор для устранения сколов и трещин с лобового стекла
Набор предназначен для самостоятельного устранения сколов и трещин на стекле.
Устраняет повреждения и останавливает развитие трещин.
Время схватывания и затвердевания не заставит долго ждать.
Восстанавливает прозрачность и оптические свойства стекла.
http://urlcut.ru/4g9a
Email [可选填]博客访问: 86285
博文数量: 52
博客积分: 1400
博客等级: 上尉
技术积分: 455
注册时间:
IT168企业级官微
微信号:IT168qiye
系统架构师大会
微信号:SACC2013
文章转自网络,经过实际操作有所修改。1、以root身份登录Linux主机;2、停止Web Server服务,如果使用的是Apache可以通过以下命令停止:shell> /usr/local/apache2/bin/apachectl stop3、卸载当前PHP和Zend Optimizer(为了安全起见最好先更改目录名称):shell> rm -rf /usr/local/phpshell> rm -rf /usr/local/Zendshell> vi /usr/local/apache2/conf/httpd.conf找到LoadModule phpX_module modules/libphpX.so其中X是PHP版本(4或者5)一行,并将此行删除,保存退出。4、下载安装GD库需要的相关安装包:安裝jpeg-6bshell> wget [url]ftp://ftp.uu.net/graphics/jpeg/jpegsrc.v6b.tar.gz[/url]tar zxvf jpegsrc.v6b.tar.gzcd jpeg-6b./configure –-prefix=/usr/local/jpeg6 –enable-shared –enable-staticmakemake install 如果你选择默认安装,可能很顺利,指定路径后,请先创建以下文件夹 错误提示:...... /usr/bin/install -c -m 644 jconfig.h /usr/local/jpeg6/include/jconfig.h /usr/bin/install: 无法创建一般文件‘/usr/local/jpeg6/include/jconfig.h’: 没有那个文件或目录 make: *** [install-headers] Error 1 # mkdir /usr/local/jpeg6 # mkdir /usr/local/jpeg6/include # mkdir /usr/local/jpeg6/lib # make install-lib # make install 安装时如果错误提示: /usr/bin/install: 无法创建一般文件‘/usr/local/jpeg6/lib/libjpeg.a’: 没有那个文件或目录 make: *** [install-lib] Error 1 创建如下文件夹: # mkdir /usr/local/jpeg6/lib # make install /usr/bin/install -c cjpeg /usr/local/jpeg6/bin/cjpeg /usr/bin/install: 无法创建一般文件‘/usr/local/jpeg6/bin/cjpeg’: 没有那个文件或目录 make: *** [install] Error 1 # mkdir /usr/local/jpeg6/bin /usr/bin/install -c -m 644 ./cjpeg.1 /usr/local/jpeg6/man/man1/cjpeg.1 /usr/bin/install: 无法创建一般文件‘/usr/local/jpeg6/man/man1/cjpeg.1’: 没有那个文件或目录 make: *** [install] Error 1 # mkdir /usr/local/jpeg6/man # mkdir /usr/local/jpeg6/man/man1 # make install 好了,直到安装成功! 安裝 freetypewget tar zxvf freetype-2.1.10.tar.gzcd freetype-2.1.10./configure -–prefix=/usr/local/freetypemakemake install 安裝 libpngwget tar zxvf libpng-1.2.8-config.tar.gzcd libpng-1.2.8-config./configure --prefix=/usr/local/libpngmakemake install 安裝 zlibwget tar zxvf zlib-1.2.3.tar.gzcd zlib-1.2.3./configuremakemake install 下载安装GD库安装包:shell> cd /usr/local/srcshell> wget shell> tar xzvf gd*shell> cd gd*shell> ./configure –prefix=/usr/local/gd –with-jpeg=/usr/local/jpeg6 –with-png-dir=/usr/local/libpng –with-zlib –with-freetype=/usr/local/modules/freetypemakemake install shell> makeshell> make install4、下载PHP 5.1.2:shell> cd /usr/local/srcshell> wget -c 5、解压缩并安装PHP 5.1.2:shell> tar xjvf php-5.1.2.tar.bz2shell> cd php-5.1.2shell> ./configure --prefix=/usr/local/php --with-apxs2=/usr/local/apache2/bin/apxs --with-mysql=/usr/local/mysql --with-zlib-dir --with-bz2 --with-tiff-dir --with-libxml-dir --with-freetype-dir=/usr/local/freetype --with-gd=/usr/local/gd/ --with-jpeg-dir=/usr/local/jpeg6 --with-png-dir --with-ttf --enable-mbstring --disable-ipv6 --enable-trace-vars*注意:如果MySQL不是以RPM包方式安装的,则需要将上述参数中的--with-mysql改为--with-mysql=/usr/local/mysqlshell> makeshell> make installshell> cp php.ini-dist /etc/php.ini6、下载Zend Optimizer 2.6.2:shell> cd /usr/local/srcsehll> wget -c 7、解压并安装Zend Optimizer 2.6.2:shell> tar xzvf ZendOptimizer-2.6.2-linux-glibc21-i386.tar.gzshell> cd ZendOptimizer-2.6.2-linux-glibc21-i386shell> ./install.sh*注意:安装Zend过程中提示输入php.ini位置时,请填写/etc安装并重新启动Apache服务后,可以创建phpinfo.php文件检查GD库的支持情况。
阅读(4042) | 评论(0) | 转发(0) |
相关热门文章
给主人留下些什么吧!~~
请登录后评论。CentOS下不重新编译PHP文件的情况下php GD库扩展库的编译安装_服务器应用_Linux公社-Linux系统门户网站
你好,游客
CentOS下不重新编译PHP文件的情况下php GD库扩展库的编译安装
来源:Linux社区&
作者:zqtsx
下不重新编译PHP文件的情况下php GD库扩展库的编译安装
gd-2.0.33.tar.gz /gd/jpegsrc.v6b.tar.gz http://www.ijg.org/libpng-1.2.7.tar.tar http://sourceforge.net/projects/libpng/zlib-1.2.2.tar.gz http://sourceforge.net/projects/zlib/
freetype-2.1.9.tar.gzhttp://sourceforge.net/projects/freetype/
1、安装 zlib
wget /pub/freeware/SOURCES/zlib-1.2.3.tar.gz
tar -zxf zlib-1.2.3.tar.gz
cd zlib-1.2.3
./configure --prefix=/usr/local/zlib
make install
2、安装 jpeg
wget /pub/freeware/SOURCES/jpeg.tar.gz 安装前先创建jpeg安装文件所需(如下)目录,防止提示类似&无法创建一般文件&/usr/local/jpeg/***&: 没有那个文件或目录" 的错误
mkdir /usr/local/jpeg
mkdir /usr/local/jpeg/bin
mkdir /usr/local/jpeg/lib
mkdir /usr/local/jpeg/include
mkdir /usr/local/jpeg/man
mkdir /usr/local/jpeg/man1
mkdir /usr/local/jpeg/man/man1
tar -zxf jpeg.tar.gz
cd jpeg-6b
./configure --prefix=/usr/local/jpeg --enable-shared --enable-static
make install
安装完成提示:
Libraries have been installed in:
/usr/local/jpeg6/lib
3、安装 libpng
wget /pub/freeware/SOURCES/libpng-1.2.16.tar.gz
tar -zxf libpng-1.2.16.tar.gz
cd libpng-1.2.16
./configure --prefix=/usr/local/libpng
make install
4、安装 freetype
wget http://download.savannah.nongnu.org/releases/freetype/freetype-2.3.4.tar.gz
tar -zxf freetype-2.3.4.tar.gz
cd freetype-2.3.4
mkdir -p /usr/local/freetype
./configure --prefix=/usr/local/freetype
make install
5、安装 GD
wget /pub/freeware/SOURCES/gd-2.0.33.tar.gz
tar -zxf gd-2.0.33.tar.gz
cd gd-2.0.33
mkdir -p /usr/local/gd2 ./configure --prefix=/usr/local/gd2 --with-jpeg=/usr/local/jpeg/ --with-png=/usr/local/libpng/ --with-zlib=/usr/local/zlib/ --with-freetype=/usr/local/freetype/
make install(如果出错见下文)6、集成PHP GD扩展 到PHP里切换到PHP源码包
如果已经安装php,建议通过追加编译安装
进入&[php解压目录]/ext/gd&目录,执行如下命令:
[php安装目录]/bin/phpize
./configure --with-php-config=[php安装目录]/bin/php-config --with-jpeg=[jpeg-6b安装目录] --with-png=[libpng安装目录] --with-freetype=[freetype安装目录] --with-zlib=[zlib安装目录] --with-gd=[gd安装目录] (如果出现未知配置项--with-png**,--with-freetype之类的错误 在配置项后面加上-dir参数即可:既修编译参数为: ./configure --with-php-config=[php安装目录]/bin/php-config --with-jpeg-dir=[jpeg安装目录] --with-png-dir=[libpng安装目录] --with-freetype-dir=[freetype安装目录] --with-zlib=[zlib安装目录] --with-gd=[gd安装目录] 即可)
make install
安装成功后会在&[php安装目录]/lib/php/extensions/no-debug-non-zts-&目录下生成gd.so文件,
然后cp [php安装目录]/lib/php/extensions/no-debug-non-zts-/gd.so /opt/php/ext
修改php.ini文件加载gd组件,添加extension_dir=/opt/php/ext和extension=gd.so,如果有extension_dir=/opt/php/ext则不需要增加
extension_dir=/opt/php/ext
extension=gd.so
./configure --with-php-config=/usr/local/php/bin/php-config --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/libpng --with-freetype-dir=/usr/local/freetype --with-zlib-dir=/usr/local/zlib --with-gd=/usr/local/gd2执行编译安装
make install 具体操作流程如下:
$ cd &php源码&/ext/gd
$ /usr/local/php5/bin/phpize
$ ./configure --with-gd=/usr/local/gd --with-jpeg-dir=/usr/local/jpeg --with-png-dir=/usr/local/libpng --with-freetype-dir=/usr/local/freetype --with-zlib-dir=/usr/local/zlib --with-php-config=/usr/local/php/bin/php-config
$ make && make install
修改php.ini
$ make && make install
添加extension=gd.so
最后,重启apache
相关资讯 & & &
   同意评论声明
   发表
尊重网上道德,遵守中华人民共和国的各项有关法律法规
承担一切因您的行为而直接或间接导致的民事或刑事法律责任
本站管理人员有权保留或删除其管辖留言中的任意内容
本站有权在网站内转载或引用您的评论
参与本评论即表明您已经阅读并接受上述条款}

我要回帖

更多关于 买vivox9plus后悔了 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信