Home  >  Article  >  Backend Development  >  rpm installation of php gd library support under Linux (detailed steps)

rpm installation of php gd library support under Linux (detailed steps)

WBOY
WBOYOriginal
2016-07-25 08:55:131232browse
  1. [root@jbxue ~]# rpm -qa|grep php
  2. php-pear-1.4.6-2
  3. php-5.1.2-5
  4. php-gd-5.1.2-5
  5. php-ldap -5.1.2-5
Copy code

2. Uninstall the RPM packages listed above:

  1. [root@jbxue ~]# rpm -e php-pear-1.4.6-2 php-5.1.2-5 php-gd-5.1.2-5 php-ldap-5.1.2-5
Copy the code

3. Enter the /var/php directory:

  1. [root@jbxue ~]# cd /var/php
Copy code

4. List the files in the /var/php directory:

  1. [root@jbxue php]# ls
  2. php-5.1.2-5.i386.rpm php-ncurses-5.1.2-5.i386.rpm
  3. php-bcmath-5.1.2-5. i386.rpm php-odbc-5.1.2-5.i386.rpm
  4. php-dba-5.1.2-5.i386.rpm php-pdo-5.1.2-5.i386.rpm
  5. php-devel-5.1. 2-5.i386.rpm php-pear-1.4.6-2.noarch.rpm
  6. php-gd-5.1.2-5.i386.rpm php-pgsql-5.1.2-5.i386.rpm
  7. php- imap-5.1.2-5.i386.rpm php-snmp-5.1.2-5.i386.rpm
  8. php-ldap-5.1.2-5.i386.rpm php-soap-5.1.2-5.i386. rpm
  9. php-mbstring-5.1.2-5.i386.rpm php-xml-5.1.2-5.i386.rpm
  10. php-mysql-5.1.2-5.i386.rpm php-xmlrpc-5.1.2- 5.i386.rpm
Copy the code

5. Install the RPM package of the required components:

  1. [root@jbxue php]# rpm -ivh php-5.1.2-5.i386.rpm php-ncurses-5.1.2-5.i386.rpm php-bcmath-5.1.2-5. i386.rpm php-odbc-5.1.2-5.i386.rpm php-dba-5.1.2-5.i386.rpm php-pdo-5.1.2-5.i386.rpm php-devel-5.1.2- 5.i386.rpm php-pear-1.4.6-2.noarch.rpm php-gd-5.1.2-5.i386.rpm php-pgsql-5.1.2-5.i386.rpm php-snmp-5.1. 2-5.i386.rpm php-ldap-5.1.2-5.i386.rpm php-soap-5.1.2-5.i386.rpm php-mbstring-5.1.2-5.i386.rpm php-xml- 5.1.2-5.i386.rpm php-mysql-5.1.2-5.i386.rpm php-xmlrpc-5.1.2-5.i386.rpm
  2. warning: php-5.1.2-5.i386.rpm: Header V3 DSA signature: NOKEY, key ID 4f2a6fd2
  3. Preparing... ################################## ######## [100%]
  4. 1:php ################################# ######### [ 6%]
  5. 2:php-pdo ############################## ############ [12%]
  6. 3:php-ncurses ########################### ############### [18%]
  7. 4:php-bcmath ######################## ################## [24%]
  8. 5:php-odbc ###################### #################### [29%]
  9. 6:php-dba ################### ####################### [35%]
  10. 7:php-devel ################ ########################## [41%]
  11. 8:php-pear ############# ############################# [47%]
  12. 9:php-gd ########## ################################ [53%]
  13. 10:php-pgsql ####### ################################### [59%]
  14. 11:php-snmp #### ##################################### [65%]
  15. 12:php-ldap # ######################################### [71%]
  16. 13:php -soap ########################################## [76%]
  17. 14:php-mbstring ########################################## [ 82 %]
  18. 15:php-xml ######################################### # [88%]
  19. 16:php-mysql ##################################### #### [94%]
  20. 17:php-xmlrpc ################################### ####### [100%]
Copy code

6. Restart the Apache service:

  1. [root@jbxue php]# service httpd restart
  2. Stop httpd: [OK]
  3. Start httpd: [OK]
Copy the code

At this point, the php gd library is installed under Linux has been expanded to enable php gd library support under Linux. After that, everyone can use gd to complete various image processing.



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