Step 1: Install EPEL repo
How to Install EPEL repo on CentOS
Step 2: install dependencies
yum install gcc php-devel php-pear libssh2 libssh2-devel
[root@tutorialspots ~]# yum install gcc php-devel php-pear libssh2 libssh2-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.raystedman.net * epel: fedora-epel.mirror.lstn.net * extras: mirror.steadfast.net * rpmforge: mirror.team-cymru.org * updates: mirror.n5tech.com Setting up Install Process Package gcc-4.4.7-16.el6.x86_64 already installed and latest version Package matching 1:php-pear-1.9.4-4.el6.noarch already installed. Checking for u pdate. Resolving Dependencies --> Running transaction check ---> Package libssh2.x86_64 0:1.4.2-1.el6 will be updated ---> Package libssh2.x86_64 0:1.4.2-2.el6_7.1 will be an update ---> Package libssh2-devel.x86_64 0:1.4.2-2.el6_7.1 will be installed --> Processing Dependency: pkgconfig(libssl) for package: libssh2-devel-1.4.2-2. el6_7.1.x86_64 --> Processing Dependency: pkgconfig(libcrypto) for package: libssh2-devel-1.4.2 -2.el6_7.1.x86_64 ---> Package php-devel.x86_64 0:5.3.3-46.el6_7.1 will be installed --> Processing Dependency: php(x86-64) = 5.3.3-46.el6_7.1 for package: php-devel -5.3.3-46.el6_7.1.x86_64 --> Running transaction check ---> Package openssl-devel.x86_64 0:1.0.1e-42.el6_7.4 will be installed --> Processing Dependency: openssl = 1.0.1e-42.el6_7.4 for package: openssl-deve l-1.0.1e-42.el6_7.4.x86_64 --> Processing Dependency: krb5-devel for package: openssl-devel-1.0.1e-42.el6_7 .4.x86_64 ---> Package php-devel.x86_64 0:5.3.3-46.el6_7.1 will be installed --> Processing Dependency: php(x86-64) = 5.3.3-46.el6_7.1 for package: php-devel -5.3.3-46.el6_7.1.x86_64 --> Running transaction check ---> Package krb5-devel.x86_64 0:1.10.3-42z1.el6_7 will be installed --> Processing Dependency: krb5-libs = 1.10.3-42z1.el6_7 for package: krb5-devel -1.10.3-42z1.el6_7.x86_64 --> Processing Dependency: libselinux-devel for package: krb5-devel-1.10.3-42z1. el6_7.x86_64 --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.10.3-42z1. el6_7.x86_64 --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.10.3-42 z1.el6_7.x86_64 ---> Package openssl.x86_64 0:1.0.1e-16.el6_5.4 will be updated ---> Package openssl.x86_64 0:1.0.1e-42.el6_7.4 will be an update ---> Package php-devel.x86_64 0:5.3.3-46.el6_7.1 will be installed --> Processing Dependency: php(x86-64) = 5.3.3-46.el6_7.1 for package: php-devel -5.3.3-46.el6_7.1.x86_64 --> Running transaction check ---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be installed --> Processing Dependency: keyutils-libs = 1.4-5.el6 for package: keyutils-libs- devel-1.4-5.el6.x86_64 ---> Package krb5-libs.x86_64 0:1.10.3-10.el6_4.6 will be updated ---> Package krb5-libs.x86_64 0:1.10.3-42z1.el6_7 will be an update ---> Package libcom_err-devel.x86_64 0:1.41.12-22.el6 will be installed --> Processing Dependency: libcom_err = 1.41.12-22.el6 for package: libcom_err-d evel-1.41.12-22.el6.x86_64 ---> Package libselinux-devel.x86_64 0:2.0.94-5.8.el6 will be installed --> Processing Dependency: libselinux = 2.0.94-5.8.el6 for package: libselinux-d evel-2.0.94-5.8.el6.x86_64 --> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-de vel-2.0.94-5.8.el6.x86_64 --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0 .94-5.8.el6.x86_64 ---> Package php-devel.x86_64 0:5.3.3-46.el6_7.1 will be installed --> Processing Dependency: php(x86-64) = 5.3.3-46.el6_7.1 for package: php-devel -5.3.3-46.el6_7.1.x86_64 --> Running transaction check ---> Package keyutils-libs.x86_64 0:1.4-4.el6 will be updated ---> Package keyutils-libs.x86_64 0:1.4-5.el6 will be an update ---> Package libcom_err.i686 0:1.41.12-18.el6 will be updated --> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: e2fsprogs-li bs-1.41.12-18.el6.x86_64 --> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: libss-1.41.1 2-18.el6.x86_64 --> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: e2fsprogs-1. 41.12-18.el6.x86_64 --> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: e2fsprogs-li bs-1.41.12-18.el6.i686 ---> Package libcom_err.x86_64 0:1.41.12-18.el6 will be updated ---> Package libcom_err.i686 0:1.41.12-22.el6 will be an update ---> Package libcom_err.x86_64 0:1.41.12-22.el6 will be an update ---> Package libselinux.i686 0:2.0.94-5.3.el6_4.1 will be updated --> Processing Dependency: libselinux = 2.0.94-5.3.el6_4.1 for package: libselin ux-utils-2.0.94-5.3.el6_4.1.x86_64 ---> Package libselinux.x86_64 0:2.0.94-5.3.el6_4.1 will be updated ---> Package libselinux.i686 0:2.0.94-5.8.el6 will be an update ---> Package libselinux.x86_64 0:2.0.94-5.8.el6 will be an update ---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed ---> Package php-devel.x86_64 0:5.3.3-46.el6_7.1 will be installed --> Processing Dependency: php(x86-64) = 5.3.3-46.el6_7.1 for package: php-devel -5.3.3-46.el6_7.1.x86_64 --> Running transaction check ---> Package e2fsprogs.x86_64 0:1.41.12-18.el6 will be updated ---> Package e2fsprogs.x86_64 0:1.41.12-22.el6 will be an update ---> Package e2fsprogs-libs.i686 0:1.41.12-18.el6 will be updated ---> Package e2fsprogs-libs.x86_64 0:1.41.12-18.el6 will be updated ---> Package e2fsprogs-libs.i686 0:1.41.12-22.el6 will be an update ---> Package e2fsprogs-libs.x86_64 0:1.41.12-22.el6 will be an update ---> Package libselinux-utils.x86_64 0:2.0.94-5.3.el6_4.1 will be updated ---> Package libselinux-utils.x86_64 0:2.0.94-5.8.el6 will be an update ---> Package libss.x86_64 0:1.41.12-18.el6 will be updated ---> Package libss.x86_64 0:1.41.12-22.el6 will be an update ---> Package php-devel.x86_64 0:5.3.3-46.el6_7.1 will be installed --> Processing Dependency: php(x86-64) = 5.3.3-46.el6_7.1 for package: php-devel -5.3.3-46.el6_7.1.x86_64 --> Finished Dependency Resolution Error: Package: php-devel-5.3.3-46.el6_7.1.x86_64 (updates) Requires: php(x86-64) = 5.3.3-46.el6_7.1 Installed: php-5.4.26-1.el6.remi.x86_64 (@remi) php(x86-64) = 5.4.26-1.el6.remi Available: php-5.3.3-40.el6_6.x86_64 (base) php(x86-64) = 5.3.3-40.el6_6 Available: php-5.3.3-46.el6_6.x86_64 (updates) php(x86-64) = 5.3.3-46.el6_6 Available: php-5.3.3-46.el6_7.1.x86_64 (updates) php(x86-64) = 5.3.3-46.el6_7.1 You could try using --skip-broken to work around the problem You could try running: rpm -Va --nofiles --nodigest
If you receive the error:
Error: Package: php-devel-5.3.3-46.el6_7.1.x86_64 (updates)
Because you have php5.4 but the Epel repo has php5.3. You must use Remi repo
yum --enablerepo=remi,remi-php54 install php-devel
Result:
[root@tutorialspots ~]# yum --enablerepo=remi,remi-php54 install php-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.raystedman.net * epel: fedora-epel.mirror.lstn.net * extras: mirror.steadfast.net * remi: mirrors.mediatemple.net * rpmforge: mirror.team-cymru.org * updates: mirror.n5tech.com remi | 2.9 kB 00:00 remi/primary_db | 1.4 MB 00:00 Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package php-devel.x86_64 0:5.4.45-8.el6.remi will be installed --> Processing Dependency: php-cli(x86-64) = 5.4.45-8.el6.remi for package: php- devel-5.4.45-8.el6.remi.x86_64 --> Running transaction check ---> Package php-cli.x86_64 0:5.4.26-1.el6.remi will be updated --> Processing Dependency: php-cli(x86-64) = 5.4.26-1.el6.remi for package: php- 5.4.26-1.el6.remi.x86_64 ---> Package php-cli.x86_64 0:5.4.45-8.el6.remi will be an update --> Processing Dependency: php-common(x86-64) = 5.4.45-8.el6.remi for package: p hp-cli-5.4.45-8.el6.remi.x86_64 --> Running transaction check ---> Package php.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-common.x86_64 0:5.4.26-1.el6.remi will be updated --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-recode-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-soap-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-pdo-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-bcmath-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-intl-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-ldap-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-xmlrpc-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-tidy-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-imap-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-process-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-gd-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-mbstring-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-xml-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-pspell-5.4.26-1.el6.remi.x86_64 --> Processing Dependency: php-common(x86-64) = 5.4.26-1.el6.remi for package: p hp-mcrypt-5.4.26-1.el6.remi.x86_64 ---> Package php-common.x86_64 0:5.4.45-8.el6.remi will be an update --> Running transaction check ---> Package php-bcmath.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-bcmath.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-gd.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-gd.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-imap.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-imap.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-intl.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-intl.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-ldap.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-ldap.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-mbstring.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-mbstring.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-mcrypt.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-mcrypt.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-pdo.x86_64 0:5.4.26-1.el6.remi will be updated --> Processing Dependency: php-pdo(x86-64) = 5.4.26-1.el6.remi for package: php- mysql-5.4.26-1.el6.remi.x86_64 ---> Package php-pdo.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-process.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-process.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-pspell.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-pspell.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-recode.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-recode.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-soap.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-soap.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-tidy.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-tidy.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-xml.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-xml.x86_64 0:5.4.45-8.el6.remi will be an update ---> Package php-xmlrpc.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-xmlrpc.x86_64 0:5.4.45-8.el6.remi will be an update --> Running transaction check ---> Package php-mysql.x86_64 0:5.4.26-1.el6.remi will be updated ---> Package php-mysql.x86_64 0:5.4.45-8.el6.remi will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: php-devel x86_64 5.4.45-8.el6.remi remi 1.2 M Updating for dependencies: php x86_64 5.4.45-8.el6.remi remi 2.8 M php-bcmath x86_64 5.4.45-8.el6.remi remi 66 k php-cli x86_64 5.4.45-8.el6.remi remi 4.1 M php-common x86_64 5.4.45-8.el6.remi remi 964 k php-gd x86_64 5.4.45-8.el6.remi remi 149 k php-imap x86_64 5.4.45-8.el6.remi remi 85 k php-intl x86_64 5.4.45-8.el6.remi remi 133 k php-ldap x86_64 5.4.45-8.el6.remi remi 68 k php-mbstring x86_64 5.4.45-8.el6.remi remi 950 k php-mcrypt x86_64 5.4.45-8.el6.remi remi 57 k php-mysql x86_64 5.4.45-8.el6.remi remi 142 k php-pdo x86_64 5.4.45-8.el6.remi remi 126 k php-process x86_64 5.4.45-8.el6.remi remi 67 k php-pspell x86_64 5.4.45-8.el6.remi remi 47 k php-recode x86_64 5.4.45-8.el6.remi remi 42 k php-soap x86_64 5.4.45-8.el6.remi remi 227 k php-tidy x86_64 5.4.45-8.el6.remi remi 61 k php-xml x86_64 5.4.45-8.el6.remi remi 177 k php-xmlrpc x86_64 5.4.45-8.el6.remi remi 77 k Transaction Summary ================================================================================ Install 1 Package(s) Upgrade 19 Package(s) Total download size: 12 M Is this ok [y/N]: y Downloading Packages: (1/20): php-5.4.45-8.el6.remi.x86_64.rpm | 2.8 MB 00:00 (2/20): php-bcmath-5.4.45-8.el6.remi.x86_64.rpm | 66 kB 00:00 (3/20): php-cli-5.4.45-8.el6.remi.x86_64.rpm | 4.1 MB 00:00 (4/20): php-common-5.4.45-8.el6.remi.x86_64.rpm | 964 kB 00:00 (5/20): php-devel-5.4.45-8.el6.remi.x86_64.rpm | 1.2 MB 00:00 (6/20): php-gd-5.4.45-8.el6.remi.x86_64.rpm | 149 kB 00:00 (7/20): php-imap-5.4.45-8.el6.remi.x86_64.rpm | 85 kB 00:00 (8/20): php-intl-5.4.45-8.el6.remi.x86_64.rpm | 133 kB 00:00 (9/20): php-ldap-5.4.45-8.el6.remi.x86_64.rpm | 68 kB 00:00 (10/20): php-mbstring-5.4.45-8.el6.remi.x86_64.rpm | 950 kB 00:00 (11/20): php-mcrypt-5.4.45-8.el6.remi.x86_64.rpm | 57 kB 00:00 (12/20): php-mysql-5.4.45-8.el6.remi.x86_64.rpm | 142 kB 00:00 (13/20): php-pdo-5.4.45-8.el6.remi.x86_64.rpm | 126 kB 00:00 (14/20): php-process-5.4.45-8.el6.remi.x86_64.rpm | 67 kB 00:00 (15/20): php-pspell-5.4.45-8.el6.remi.x86_64.rpm | 47 kB 00:00 (16/20): php-recode-5.4.45-8.el6.remi.x86_64.rpm | 42 kB 00:00 (17/20): php-soap-5.4.45-8.el6.remi.x86_64.rpm | 227 kB 00:00 (18/20): php-tidy-5.4.45-8.el6.remi.x86_64.rpm | 61 kB 00:00 (19/20): php-xml-5.4.45-8.el6.remi.x86_64.rpm | 177 kB 00:00 (20/20): php-xmlrpc-5.4.45-8.el6.remi.x86_64.rpm | 77 kB 00:00 -------------------------------------------------------------------------------- Total 6.4 MB/s | 12 MB 00:01 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : php-common-5.4.45-8.el6.remi.x86_64 1/39 warning: /etc/php.ini created as /etc/php.ini.rpmnew Updating : php-cli-5.4.45-8.el6.remi.x86_64 2/39 Updating : php-pdo-5.4.45-8.el6.remi.x86_64 3/39 Updating : php-mysql-5.4.45-8.el6.remi.x86_64 4/39 Updating : php-5.4.45-8.el6.remi.x86_64 5/39 Installing : php-devel-5.4.45-8.el6.remi.x86_64 6/39 Updating : php-tidy-5.4.45-8.el6.remi.x86_64 7/39 Updating : php-xmlrpc-5.4.45-8.el6.remi.x86_64 8/39 Updating : php-mcrypt-5.4.45-8.el6.remi.x86_64 9/39 Updating : php-bcmath-5.4.45-8.el6.remi.x86_64 10/39 Updating : php-recode-5.4.45-8.el6.remi.x86_64 11/39 Updating : php-process-5.4.45-8.el6.remi.x86_64 12/39 Updating : php-mbstring-5.4.45-8.el6.remi.x86_64 13/39 Updating : php-ldap-5.4.45-8.el6.remi.x86_64 14/39 Updating : php-xml-5.4.45-8.el6.remi.x86_64 15/39 Updating : php-intl-5.4.45-8.el6.remi.x86_64 16/39 Updating : php-soap-5.4.45-8.el6.remi.x86_64 17/39 Updating : php-imap-5.4.45-8.el6.remi.x86_64 18/39 Updating : php-gd-5.4.45-8.el6.remi.x86_64 19/39 Updating : php-pspell-5.4.45-8.el6.remi.x86_64 20/39 Cleanup : php-5.4.26-1.el6.remi.x86_64 21/39 Cleanup : php-cli-5.4.26-1.el6.remi.x86_64 22/39 Cleanup : php-pspell-5.4.26-1.el6.remi.x86_64 23/39 Cleanup : php-gd-5.4.26-1.el6.remi.x86_64 24/39 Cleanup : php-imap-5.4.26-1.el6.remi.x86_64 25/39 Cleanup : php-soap-5.4.26-1.el6.remi.x86_64 26/39 Cleanup : php-intl-5.4.26-1.el6.remi.x86_64 27/39 Cleanup : php-xml-5.4.26-1.el6.remi.x86_64 28/39 Cleanup : php-ldap-5.4.26-1.el6.remi.x86_64 29/39 Cleanup : php-mysql-5.4.26-1.el6.remi.x86_64 30/39 Cleanup : php-pdo-5.4.26-1.el6.remi.x86_64 31/39 Cleanup : php-mbstring-5.4.26-1.el6.remi.x86_64 32/39 Cleanup : php-process-5.4.26-1.el6.remi.x86_64 33/39 Cleanup : php-recode-5.4.26-1.el6.remi.x86_64 34/39 Cleanup : php-bcmath-5.4.26-1.el6.remi.x86_64 35/39 Cleanup : php-mcrypt-5.4.26-1.el6.remi.x86_64 36/39 Cleanup : php-xmlrpc-5.4.26-1.el6.remi.x86_64 37/39 Cleanup : php-tidy-5.4.26-1.el6.remi.x86_64 38/39 Cleanup : php-common-5.4.26-1.el6.remi.x86_64 39/39 Verifying : php-common-5.4.45-8.el6.remi.x86_64 1/39 Verifying : php-tidy-5.4.45-8.el6.remi.x86_64 2/39 Verifying : php-xmlrpc-5.4.45-8.el6.remi.x86_64 3/39 Verifying : php-mcrypt-5.4.45-8.el6.remi.x86_64 4/39 Verifying : php-bcmath-5.4.45-8.el6.remi.x86_64 5/39 Verifying : php-recode-5.4.45-8.el6.remi.x86_64 6/39 Verifying : php-pdo-5.4.45-8.el6.remi.x86_64 7/39 Verifying : php-process-5.4.45-8.el6.remi.x86_64 8/39 Verifying : php-mbstring-5.4.45-8.el6.remi.x86_64 9/39 Verifying : php-mysql-5.4.45-8.el6.remi.x86_64 10/39 Verifying : php-5.4.45-8.el6.remi.x86_64 11/39 Verifying : php-ldap-5.4.45-8.el6.remi.x86_64 12/39 Verifying : php-xml-5.4.45-8.el6.remi.x86_64 13/39 Verifying : php-intl-5.4.45-8.el6.remi.x86_64 14/39 Verifying : php-soap-5.4.45-8.el6.remi.x86_64 15/39 Verifying : php-imap-5.4.45-8.el6.remi.x86_64 16/39 Verifying : php-gd-5.4.45-8.el6.remi.x86_64 17/39 Verifying : php-devel-5.4.45-8.el6.remi.x86_64 18/39 Verifying : php-cli-5.4.45-8.el6.remi.x86_64 19/39 Verifying : php-pspell-5.4.45-8.el6.remi.x86_64 20/39 Verifying : php-gd-5.4.26-1.el6.remi.x86_64 21/39 Verifying : php-process-5.4.26-1.el6.remi.x86_64 22/39 Verifying : php-mysql-5.4.26-1.el6.remi.x86_64 23/39 Verifying : php-common-5.4.26-1.el6.remi.x86_64 24/39 Verifying : php-xmlrpc-5.4.26-1.el6.remi.x86_64 25/39 Verifying : php-tidy-5.4.26-1.el6.remi.x86_64 26/39 Verifying : php-soap-5.4.26-1.el6.remi.x86_64 27/39 Verifying : php-mbstring-5.4.26-1.el6.remi.x86_64 28/39 Verifying : php-xml-5.4.26-1.el6.remi.x86_64 29/39 Verifying : php-intl-5.4.26-1.el6.remi.x86_64 30/39 Verifying : php-bcmath-5.4.26-1.el6.remi.x86_64 31/39 Verifying : php-ldap-5.4.26-1.el6.remi.x86_64 32/39 Verifying : php-imap-5.4.26-1.el6.remi.x86_64 33/39 Verifying : php-recode-5.4.26-1.el6.remi.x86_64 34/39 Verifying : php-pspell-5.4.26-1.el6.remi.x86_64 35/39 Verifying : php-pdo-5.4.26-1.el6.remi.x86_64 36/39 Verifying : php-mcrypt-5.4.26-1.el6.remi.x86_64 37/39 Verifying : php-cli-5.4.26-1.el6.remi.x86_64 38/39 Verifying : php-5.4.26-1.el6.remi.x86_64 39/39 Installed: php-devel.x86_64 0:5.4.45-8.el6.remi Dependency Updated: php.x86_64 0:5.4.45-8.el6.remi php-bcmath.x86_64 0:5.4.45-8.el6.remi php-cli.x86_64 0:5.4.45-8.el6.remi php-common.x86_64 0:5.4.45-8.el6.remi php-gd.x86_64 0:5.4.45-8.el6.remi php-imap.x86_64 0:5.4.45-8.el6.remi php-intl.x86_64 0:5.4.45-8.el6.remi php-ldap.x86_64 0:5.4.45-8.el6.remi php-mbstring.x86_64 0:5.4.45-8.el6.remi php-mcrypt.x86_64 0:5.4.45-8.el6.remi php-mysql.x86_64 0:5.4.45-8.el6.remi php-pdo.x86_64 0:5.4.45-8.el6.remi php-process.x86_64 0:5.4.45-8.el6.remi php-pspell.x86_64 0:5.4.45-8.el6.remi php-recode.x86_64 0:5.4.45-8.el6.remi php-soap.x86_64 0:5.4.45-8.el6.remi php-tidy.x86_64 0:5.4.45-8.el6.remi php-xml.x86_64 0:5.4.45-8.el6.remi php-xmlrpc.x86_64 0:5.4.45-8.el6.remi Complete!
PHP upgrade from 5.4.26 to 5.4.45
Now, you can check php-devel:
[root@tutorialspots ~]# yum info php-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.raystedman.net * epel: fedora-epel.mirror.lstn.net * extras: mirror.steadfast.net * rpmforge: mirror.team-cymru.org * updates: mirror.n5tech.com Installed Packages Name : php-devel Arch : x86_64 Version : 5.4.45 Release : 8.el6.remi Size : 8.1 M Repo : installed From repo : remi Summary : Files needed for building PHP extensions URL : http://www.php.net/ License : PHP and Zend and BSD Description : The php-devel package contains the files needed for building PHP : extensions. If you need to compile your own PHP extensions, you : will need to install this package.
Now, install libssh2-devel
[root@tutorialspots ~]# yum install libssh2-devel Loaded plugins: fastestmirror Loading mirror speeds from cached hostfile * base: mirror.raystedman.net * epel: fedora-epel.mirror.lstn.net * extras: mirror.steadfast.net * rpmforge: mirror.team-cymru.org * updates: mirror.n5tech.com Setting up Install Process Resolving Dependencies --> Running transaction check ---> Package libssh2-devel.x86_64 0:1.4.2-2.el6_7.1 will be installed --> Processing Dependency: libssh2 = 1.4.2-2.el6_7.1 for package: libssh2-devel- 1.4.2-2.el6_7.1.x86_64 --> Processing Dependency: pkgconfig(libssl) for package: libssh2-devel-1.4.2-2. el6_7.1.x86_64 --> Processing Dependency: pkgconfig(libcrypto) for package: libssh2-devel-1.4.2 -2.el6_7.1.x86_64 --> Running transaction check ---> Package libssh2.x86_64 0:1.4.2-1.el6 will be updated ---> Package libssh2.x86_64 0:1.4.2-2.el6_7.1 will be an update ---> Package openssl-devel.x86_64 0:1.0.1e-42.el6_7.4 will be installed --> Processing Dependency: openssl = 1.0.1e-42.el6_7.4 for package: openssl-deve l-1.0.1e-42.el6_7.4.x86_64 --> Processing Dependency: krb5-devel for package: openssl-devel-1.0.1e-42.el6_7 .4.x86_64 --> Running transaction check ---> Package krb5-devel.x86_64 0:1.10.3-42z1.el6_7 will be installed --> Processing Dependency: krb5-libs = 1.10.3-42z1.el6_7 for package: krb5-devel -1.10.3-42z1.el6_7.x86_64 --> Processing Dependency: libselinux-devel for package: krb5-devel-1.10.3-42z1. el6_7.x86_64 --> Processing Dependency: libcom_err-devel for package: krb5-devel-1.10.3-42z1. el6_7.x86_64 --> Processing Dependency: keyutils-libs-devel for package: krb5-devel-1.10.3-42 z1.el6_7.x86_64 ---> Package openssl.x86_64 0:1.0.1e-16.el6_5.4 will be updated ---> Package openssl.x86_64 0:1.0.1e-42.el6_7.4 will be an update --> Running transaction check ---> Package keyutils-libs-devel.x86_64 0:1.4-5.el6 will be installed --> Processing Dependency: keyutils-libs = 1.4-5.el6 for package: keyutils-libs- devel-1.4-5.el6.x86_64 ---> Package krb5-libs.x86_64 0:1.10.3-10.el6_4.6 will be updated ---> Package krb5-libs.x86_64 0:1.10.3-42z1.el6_7 will be an update ---> Package libcom_err-devel.x86_64 0:1.41.12-22.el6 will be installed --> Processing Dependency: libcom_err = 1.41.12-22.el6 for package: libcom_err-d evel-1.41.12-22.el6.x86_64 ---> Package libselinux-devel.x86_64 0:2.0.94-5.8.el6 will be installed --> Processing Dependency: libselinux = 2.0.94-5.8.el6 for package: libselinux-d evel-2.0.94-5.8.el6.x86_64 --> Processing Dependency: libsepol-devel >= 2.0.32-1 for package: libselinux-de vel-2.0.94-5.8.el6.x86_64 --> Processing Dependency: pkgconfig(libsepol) for package: libselinux-devel-2.0 .94-5.8.el6.x86_64 --> Running transaction check ---> Package keyutils-libs.x86_64 0:1.4-4.el6 will be updated ---> Package keyutils-libs.x86_64 0:1.4-5.el6 will be an update ---> Package libcom_err.i686 0:1.41.12-18.el6 will be updated --> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: e2fsprogs-li bs-1.41.12-18.el6.x86_64 --> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: libss-1.41.1 2-18.el6.x86_64 --> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: e2fsprogs-1. 41.12-18.el6.x86_64 --> Processing Dependency: libcom_err = 1.41.12-18.el6 for package: e2fsprogs-li bs-1.41.12-18.el6.i686 ---> Package libcom_err.x86_64 0:1.41.12-18.el6 will be updated ---> Package libcom_err.i686 0:1.41.12-22.el6 will be an update ---> Package libcom_err.x86_64 0:1.41.12-22.el6 will be an update ---> Package libselinux.i686 0:2.0.94-5.3.el6_4.1 will be updated --> Processing Dependency: libselinux = 2.0.94-5.3.el6_4.1 for package: libselin ux-utils-2.0.94-5.3.el6_4.1.x86_64 ---> Package libselinux.x86_64 0:2.0.94-5.3.el6_4.1 will be updated ---> Package libselinux.i686 0:2.0.94-5.8.el6 will be an update ---> Package libselinux.x86_64 0:2.0.94-5.8.el6 will be an update ---> Package libsepol-devel.x86_64 0:2.0.41-4.el6 will be installed --> Running transaction check ---> Package e2fsprogs.x86_64 0:1.41.12-18.el6 will be updated ---> Package e2fsprogs.x86_64 0:1.41.12-22.el6 will be an update ---> Package e2fsprogs-libs.i686 0:1.41.12-18.el6 will be updated ---> Package e2fsprogs-libs.x86_64 0:1.41.12-18.el6 will be updated ---> Package e2fsprogs-libs.i686 0:1.41.12-22.el6 will be an update ---> Package e2fsprogs-libs.x86_64 0:1.41.12-22.el6 will be an update ---> Package libselinux-utils.x86_64 0:2.0.94-5.3.el6_4.1 will be updated ---> Package libselinux-utils.x86_64 0:2.0.94-5.8.el6 will be an update ---> Package libss.x86_64 0:1.41.12-18.el6 will be updated ---> Package libss.x86_64 0:1.41.12-22.el6 will be an update --> Finished Dependency Resolution Dependencies Resolved ================================================================================ Package Arch Version Repository Size ================================================================================ Installing: libssh2-devel x86_64 1.4.2-2.el6_7.1 updates 21 k Installing for dependencies: keyutils-libs-devel x86_64 1.4-5.el6 base 29 k krb5-devel x86_64 1.10.3-42z1.el6_7 updates 502 k libcom_err-devel x86_64 1.41.12-22.el6 base 33 k libselinux-devel x86_64 2.0.94-5.8.el6 base 137 k libsepol-devel x86_64 2.0.41-4.el6 base 64 k openssl-devel x86_64 1.0.1e-42.el6_7.4 updates 1.2 M Updating for dependencies: e2fsprogs x86_64 1.41.12-22.el6 base 554 k e2fsprogs-libs i686 1.41.12-22.el6 base 128 k e2fsprogs-libs x86_64 1.41.12-22.el6 base 121 k keyutils-libs x86_64 1.4-5.el6 base 20 k krb5-libs x86_64 1.10.3-42z1.el6_7 updates 769 k libcom_err i686 1.41.12-22.el6 base 37 k libcom_err x86_64 1.41.12-22.el6 base 37 k libselinux i686 2.0.94-5.8.el6 base 109 k libselinux x86_64 2.0.94-5.8.el6 base 108 k libselinux-utils x86_64 2.0.94-5.8.el6 base 82 k libss x86_64 1.41.12-22.el6 base 42 k libssh2 x86_64 1.4.2-2.el6_7.1 updates 123 k openssl x86_64 1.0.1e-42.el6_7.4 updates 1.5 M Transaction Summary ================================================================================ Install 7 Package(s) Upgrade 13 Package(s) Total download size: 5.5 M Is this ok [y/N]: y Downloading Packages: (1/20): e2fsprogs-1.41.12-22.el6.x86_64.rpm | 554 kB 00:00 (2/20): e2fsprogs-libs-1.41.12-22.el6.i686.rpm | 128 kB 00:00 (3/20): e2fsprogs-libs-1.41.12-22.el6.x86_64.rpm | 121 kB 00:00 (4/20): keyutils-libs-1.4-5.el6.x86_64.rpm | 20 kB 00:00 (5/20): keyutils-libs-devel-1.4-5.el6.x86_64.rpm | 29 kB 00:00 (6/20): krb5-devel-1.10.3-42z1.el6_7.x86_64.rpm | 502 kB 00:00 (7/20): krb5-libs-1.10.3-42z1.el6_7.x86_64.rpm | 769 kB 00:00 (8/20): libcom_err-1.41.12-22.el6.i686.rpm | 37 kB 00:00 (9/20): libcom_err-1.41.12-22.el6.x86_64.rpm | 37 kB 00:00 (10/20): libcom_err-devel-1.41.12-22.el6.x86_64.rpm | 33 kB 00:00 (11/20): libselinux-2.0.94-5.8.el6.i686.rpm | 109 kB 00:00 (12/20): libselinux-2.0.94-5.8.el6.x86_64.rpm | 108 kB 00:00 (13/20): libselinux-devel-2.0.94-5.8.el6.x86_64.rpm | 137 kB 00:00 (14/20): libselinux-utils-2.0.94-5.8.el6.x86_64.rpm | 82 kB 00:00 (15/20): libsepol-devel-2.0.41-4.el6.x86_64.rpm | 64 kB 00:00 (16/20): libss-1.41.12-22.el6.x86_64.rpm | 42 kB 00:00 (17/20): libssh2-1.4.2-2.el6_7.1.x86_64.rpm | 123 kB 00:00 (18/20): libssh2-devel-1.4.2-2.el6_7.1.x86_64.rpm | 21 kB 00:00 (19/20): openssl-1.0.1e-42.el6_7.4.x86_64.rpm | 1.5 MB 00:00 (20/20): openssl-devel-1.0.1e-42.el6_7.4.x86_64.rpm | 1.2 MB 00:00 -------------------------------------------------------------------------------- Total 10 MB/s | 5.5 MB 00:00 Running rpm_check_debug Running Transaction Test Transaction Test Succeeded Running Transaction Updating : libcom_err-1.41.12-22.el6.x86_64 1/33 Updating : libselinux-2.0.94-5.8.el6.x86_64 2/33 Updating : keyutils-libs-1.4-5.el6.x86_64 3/33 Updating : krb5-libs-1.10.3-42z1.el6_7.x86_64 4/33 Updating : openssl-1.0.1e-42.el6_7.4.x86_64 5/33 Updating : libssh2-1.4.2-2.el6_7.1.x86_64 6/33 Installing : keyutils-libs-devel-1.4-5.el6.x86_64 7/33 Updating : libss-1.41.12-22.el6.x86_64 8/33 Installing : libcom_err-devel-1.41.12-22.el6.x86_64 9/33 Updating : e2fsprogs-libs-1.41.12-22.el6.x86_64 10/33 Installing : libsepol-devel-2.0.41-4.el6.x86_64 11/33 Installing : libselinux-devel-2.0.94-5.8.el6.x86_64 12/33 Installing : krb5-devel-1.10.3-42z1.el6_7.x86_64 13/33 Installing : openssl-devel-1.0.1e-42.el6_7.4.x86_64 14/33 Updating : libcom_err-1.41.12-22.el6.i686 15/33 Installing : libssh2-devel-1.4.2-2.el6_7.1.x86_64 16/33 Updating : e2fsprogs-1.41.12-22.el6.x86_64 17/33 Updating : libselinux-utils-2.0.94-5.8.el6.x86_64 18/33 Updating : e2fsprogs-libs-1.41.12-22.el6.i686 19/33 Updating : libselinux-2.0.94-5.8.el6.i686 20/33 Cleanup : e2fsprogs-libs-1.41.12-18.el6 21/33 Cleanup : e2fsprogs-1.41.12-18.el6.x86_64 22/33 Cleanup : e2fsprogs-libs-1.41.12-18.el6 23/33 Cleanup : libss-1.41.12-18.el6.x86_64 24/33 Cleanup : libssh2-1.4.2-1.el6.x86_64 25/33 Cleanup : openssl-1.0.1e-16.el6_5.4.x86_64 26/33 Cleanup : krb5-libs-1.10.3-10.el6_4.6.x86_64 27/33 Cleanup : libselinux-utils-2.0.94-5.3.el6_4.1.x86_64 28/33 Cleanup : libcom_err-1.41.12-18.el6 29/33 Cleanup : libselinux-2.0.94-5.3.el6_4.1 30/33 Cleanup : libselinux-2.0.94-5.3.el6_4.1 31/33 Cleanup : libcom_err-1.41.12-18.el6 32/33 Cleanup : keyutils-libs-1.4-4.el6.x86_64 33/33 Verifying : krb5-devel-1.10.3-42z1.el6_7.x86_64 1/33 Verifying : krb5-libs-1.10.3-42z1.el6_7.x86_64 2/33 Verifying : keyutils-libs-devel-1.4-5.el6.x86_64 3/33 Verifying : libss-1.41.12-22.el6.x86_64 4/33 Verifying : libselinux-utils-2.0.94-5.8.el6.x86_64 5/33 Verifying : libselinux-2.0.94-5.8.el6.i686 6/33 Verifying : openssl-devel-1.0.1e-42.el6_7.4.x86_64 7/33 Verifying : keyutils-libs-1.4-5.el6.x86_64 8/33 Verifying : libssh2-1.4.2-2.el6_7.1.x86_64 9/33 Verifying : libssh2-devel-1.4.2-2.el6_7.1.x86_64 10/33 Verifying : libcom_err-devel-1.41.12-22.el6.x86_64 11/33 Verifying : e2fsprogs-libs-1.41.12-22.el6.i686 12/33 Verifying : e2fsprogs-1.41.12-22.el6.x86_64 13/33 Verifying : libselinux-2.0.94-5.8.el6.x86_64 14/33 Verifying : libsepol-devel-2.0.41-4.el6.x86_64 15/33 Verifying : libselinux-devel-2.0.94-5.8.el6.x86_64 16/33 Verifying : libcom_err-1.41.12-22.el6.x86_64 17/33 Verifying : libcom_err-1.41.12-22.el6.i686 18/33 Verifying : e2fsprogs-libs-1.41.12-22.el6.x86_64 19/33 Verifying : openssl-1.0.1e-42.el6_7.4.x86_64 20/33 Verifying : e2fsprogs-1.41.12-18.el6.x86_64 21/33 Verifying : openssl-1.0.1e-16.el6_5.4.x86_64 22/33 Verifying : libselinux-2.0.94-5.3.el6_4.1.x86_64 23/33 Verifying : libselinux-utils-2.0.94-5.3.el6_4.1.x86_64 24/33 Verifying : e2fsprogs-libs-1.41.12-18.el6.i686 25/33 Verifying : libcom_err-1.41.12-18.el6.x86_64 26/33 Verifying : e2fsprogs-libs-1.41.12-18.el6.x86_64 27/33 Verifying : libssh2-1.4.2-1.el6.x86_64 28/33 Verifying : krb5-libs-1.10.3-10.el6_4.6.x86_64 29/33 Verifying : libselinux-2.0.94-5.3.el6_4.1.i686 30/33 Verifying : libcom_err-1.41.12-18.el6.i686 31/33 Verifying : libss-1.41.12-18.el6.x86_64 32/33 Verifying : keyutils-libs-1.4-4.el6.x86_64 33/33 Installed: libssh2-devel.x86_64 0:1.4.2-2.el6_7.1 Dependency Installed: keyutils-libs-devel.x86_64 0:1.4-5.el6 krb5-devel.x86_64 0:1.10.3-42z1.el6_7 libcom_err-devel.x86_64 0:1.41.12-22.el6 libselinux-devel.x86_64 0:2.0.94-5.8.el6 libsepol-devel.x86_64 0:2.0.41-4.el6 openssl-devel.x86_64 0:1.0.1e-42.el6_7.4 Dependency Updated: e2fsprogs.x86_64 0:1.41.12-22.el6 e2fsprogs-libs.i686 0:1.41.12-22.el6 e2fsprogs-libs.x86_64 0:1.41.12-22.el6 keyutils-libs.x86_64 0:1.4-5.el6 krb5-libs.x86_64 0:1.10.3-42z1.el6_7 libcom_err.i686 0:1.41.12-22.el6 libcom_err.x86_64 0:1.41.12-22.el6 libselinux.i686 0:2.0.94-5.8.el6 libselinux.x86_64 0:2.0.94-5.8.el6 libselinux-utils.x86_64 0:2.0.94-5.8.el6 libss.x86_64 0:1.41.12-22.el6 libssh2.x86_64 0:1.4.2-2.el6_7.1 openssl.x86_64 0:1.0.1e-42.el6_7.4 Complete!
Step 3: Build SSH2 extension
pecl install -f ssh2
Result:
[root@tutorialspots ~]# pecl install -f ssh2 WARNING: failed to download pecl.php.net/ssh2 within preferred state "stable", w ill instead download version 0.12, stability "beta" WARNING: channel "pecl.php.net" has updated its protocols, use "pecl channel-upd ate pecl.php.net" to update downloading ssh2-0.12.tgz ... Starting to download ssh2-0.12.tgz (26,223 bytes) .........done: 26,223 bytes 6 source files, building running: phpize Configuring for: PHP Api Version: 20100412 Zend Module Api No: 20100525 Zend Extension Api No: 220100525 libssh2 prefix? [autodetect] :
Press Enter
building in /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12 running: /var/tmp/ssh2/configure --with-ssh2 checking for grep that handles long lines and -e... /bin/grep checking for egrep... /bin/grep -E checking for a sed that does not truncate output... /bin/sed checking for cc... cc checking for C compiler default output file name... a.out checking whether the C compiler works... yes checking whether we are cross compiling... no checking for suffix of executables... checking for suffix of object files... o checking whether we are using the GNU C compiler... yes checking whether cc accepts -g... yes checking for cc option to accept ISO C89... none needed checking how to run the C preprocessor... cc -E checking for icc... no checking for suncc... no checking whether cc understands -c and -o together... yes checking for system library directory... lib checking if compiler supports -R... no checking if compiler supports -Wl,-rpath,... yes checking build system type... x86_64-unknown-linux-gnu checking host system type... x86_64-unknown-linux-gnu checking target system type... x86_64-unknown-linux-gnu checking for PHP prefix... /usr checking for PHP includes... -I/usr/include/php -I/usr/include/php/main -I/usr/i nclude/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/ph p/ext/date/lib checking for PHP extension directory... /usr/lib64/php/modules checking for PHP installed headers prefix... /usr/include/php checking if debug is enabled... no checking if zts is enabled... no checking for re2c... no configure: WARNING: You will need re2c 0.13.4 or later if you want to regenerate PHP parsers. checking for gawk... gawk checking for ssh2 support... yes, shared checking for ssh2 files in default path... found in /usr checking for libssh2_session_hostkey in -lssh2... yes checking for libssh2_agent_init in -lssh2... yes checking for libssh2_session_set_timeout in -lssh2... yes checking for a sed that does not truncate output... (cached) /bin/sed checking for fgrep... /bin/grep -F checking for ld used by cc... /usr/bin/ld checking if the linker (/usr/bin/ld) is GNU ld... yes checking for BSD- or MS-compatible name lister (nm)... /usr/bin/nm -B checking the name lister (/usr/bin/nm -B) interface... BSD nm checking whether ln -s works... yes checking the maximum length of command line arguments... 1966080 checking whether the shell understands some XSI constructs... yes checking whether the shell understands "+="... yes checking for /usr/bin/ld option to reload object files... -r checking for objdump... objdump checking how to recognize dependent libraries... pass_all checking for ar... ar checking for strip... strip checking for ranlib... ranlib checking command to parse /usr/bin/nm -B output from cc object... ok checking for ANSI C header files... yes checking for sys/types.h... yes checking for sys/stat.h... yes checking for stdlib.h... yes checking for string.h... yes checking for memory.h... yes checking for strings.h... yes checking for inttypes.h... yes checking for stdint.h... yes checking for unistd.h... yes checking for dlfcn.h... yes checking for objdir... .libs checking if cc supports -fno-rtti -fno-exceptions... no checking for cc option to produce PIC... -fPIC -DPIC checking if cc PIC flag -fPIC -DPIC works... yes checking if cc static flag -static works... no checking if cc supports -c -o file.o... yes checking if cc supports -c -o file.o... (cached) yes checking whether the cc linker (/usr/bin/ld -m elf_x86_64) supports shared libra ries... yes checking whether -lc should be explicitly linked in... no checking dynamic linker characteristics... GNU/Linux ld.so checking how to hardcode library paths into programs... immediate checking whether stripping libraries is possible... yes checking if libtool supports shared libraries... yes checking whether to build shared libraries... yes checking whether to build static libraries... no configure: creating ./config.status config.status: creating config.h config.status: executing libtool commands running: make /bin/sh /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/libtool --mode=compile cc -I. -I/var/tmp/ssh2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/includ e -I/var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/main -I/var/tmp/ssh2 -I/usr/include /php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/ usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 - c /var/tmp/ssh2/ssh2.c -o ssh2.lo libtool: compile: cc -I. -I/var/tmp/ssh2 -DPHP_ATOM_INC -I/var/tmp/pear-build-r ootuQ9vgf/ssh2-0.12/include -I/var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/main -I/v ar/tmp/ssh2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM - I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -D HAVE_CONFIG_H -g -O2 -c /var/tmp/ssh2/ssh2.c -fPIC -DPIC -o .libs/ssh2.o /var/tmp/ssh2/ssh2.c: In function 'zif_ssh2_publickey_add': /var/tmp/ssh2/ssh2.c:1063: warning: passing argument 1 of '_efree' discards qual ifiers from pointer target type /usr/include/php/Zend/zend_alloc.h:60: note: expected 'void *' but argument is o f type 'const char *' /var/tmp/ssh2/ssh2.c: In function 'zif_ssh2_publickey_list': /var/tmp/ssh2/ssh2.c:1122: warning: passing argument 4 of 'add_assoc_stringl_ex' discards qualifiers from pointer target type /usr/include/php/Zend/zend_API.h:380: note: expected 'char *' but argument is of type 'const unsigned char *' /var/tmp/ssh2/ssh2.c:1123: warning: passing argument 4 of 'add_assoc_stringl_ex' discards qualifiers from pointer target type /usr/include/php/Zend/zend_API.h:380: note: expected 'char *' but argument is of type 'const unsigned char *' /bin/sh /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/libtool --mode=compile cc -I. -I/var/tmp/ssh2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/includ e -I/var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/main -I/var/tmp/ssh2 -I/usr/include /php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/ usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 - c /var/tmp/ssh2/ssh2_fopen_wrappers.c -o ssh2_fopen_wrappers.lo libtool: compile: cc -I. -I/var/tmp/ssh2 -DPHP_ATOM_INC -I/var/tmp/pear-build-r ootuQ9vgf/ssh2-0.12/include -I/var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/main -I/v ar/tmp/ssh2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM - I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -D HAVE_CONFIG_H -g -O2 -c /var/tmp/ssh2/ssh2_fopen_wrappers.c -fPIC -DPIC -o .lib s/ssh2_fopen_wrappers.o /bin/sh /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/libtool --mode=compile cc -I. -I/var/tmp/ssh2 -DPHP_ATOM_INC -I/var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/includ e -I/var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/main -I/var/tmp/ssh2 -I/usr/include /php -I/usr/include/php/main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/ usr/include/php/ext -I/usr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 - c /var/tmp/ssh2/ssh2_sftp.c -o ssh2_sftp.lo libtool: compile: cc -I. -I/var/tmp/ssh2 -DPHP_ATOM_INC -I/var/tmp/pear-build-r ootuQ9vgf/ssh2-0.12/include -I/var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/main -I/v ar/tmp/ssh2 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/TSRM - I/usr/include/php/Zend -I/usr/include/php/ext -I/usr/include/php/ext/date/lib -D HAVE_CONFIG_H -g -O2 -c /var/tmp/ssh2/ssh2_sftp.c -fPIC -DPIC -o .libs/ssh2_sft p.o /bin/sh /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/libtool --mode=link cc -DPHP_AT OM_INC -I/var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/include -I/var/tmp/pear-build- rootuQ9vgf/ssh2-0.12/main -I/var/tmp/ssh2 -I/usr/include/php -I/usr/include/php/ main -I/usr/include/php/TSRM -I/usr/include/php/Zend -I/usr/include/php/ext -I/u sr/include/php/ext/date/lib -DHAVE_CONFIG_H -g -O2 -o ssh2.la -export-dynami c -avoid-version -prefer-pic -module -rpath /var/tmp/pear-build-rootuQ9vgf/ssh2- 0.12/modules ssh2.lo ssh2_fopen_wrappers.lo ssh2_sftp.lo -lssh2 libtool: link: cc -shared .libs/ssh2.o .libs/ssh2_fopen_wrappers.o .libs/ssh2_s ftp.o -lssh2 -Wl,-soname -Wl,ssh2.so -o .libs/ssh2.so libtool: link: ( cd ".libs" && rm -f "ssh2.la" && ln -s "../ssh2.la" "ssh2.la" ) /bin/sh /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/libtool --mode=install cp ./ssh 2.la /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/modules libtool: install: cp ./.libs/ssh2.so /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/mo dules/ssh2.so libtool: install: cp ./.libs/ssh2.lai /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/m odules/ssh2.la libtool: finish: PATH="/usr/bin:/root/.linuxbrew/bin:/usr/local/sbin:/usr/local/ bin:/sbin:/bin:/usr/sbin:/usr/bin:/root/bin:/usr/local/vesta/bin:/sbin" ldconfig -n /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/modules ---------------------------------------------------------------------- Libraries have been installed in: /var/tmp/pear-build-rootuQ9vgf/ssh2-0.12/modules If you ever happen to want to link against installed libraries in a given directory, LIBDIR, you must either use libtool, and specify the full pathname of the library, or use the `-LLIBDIR' flag during linking and do at least one of the following: - add LIBDIR to the `LD_LIBRARY_PATH' environment variable during execution - add LIBDIR to the `LD_RUN_PATH' environment variable during linking - use the `-Wl,-rpath -Wl,LIBDIR' linker flag - have your system administrator add LIBDIR to `/etc/ld.so.conf' See any operating system documentation about shared libraries for more information, such as the ld(1) and ld.so(8) manual pages. ---------------------------------------------------------------------- Build complete. Don't forget to run 'make test'. running: make INSTALL_ROOT="/var/tmp/pear-build-rootuQ9vgf/install-ssh2-0.12" in stall Installing shared extensions: /var/tmp/pear-build-rootuQ9vgf/install-ssh2-0. 12/usr/lib64/php/modules/ running: find "/var/tmp/pear-build-rootuQ9vgf/install-ssh2-0.12" | xargs ls -dil s 85745775 4 drwxr-xr-x 3 root root 4096 May 9 23:58 /var/tmp/pear-build-root uQ9vgf/install-ssh2-0.12 85745779 4 drwxr-xr-x 3 root root 4096 May 9 23:58 /var/tmp/pear-build-root uQ9vgf/install-ssh2-0.12/usr 85745780 4 drwxr-xr-x 3 root root 4096 May 9 23:58 /var/tmp/pear-build-root uQ9vgf/install-ssh2-0.12/usr/lib64 85745781 4 drwxr-xr-x 3 root root 4096 May 9 23:58 /var/tmp/pear-build-root uQ9vgf/install-ssh2-0.12/usr/lib64/php 85745782 4 drwxr-xr-x 2 root root 4096 May 9 23:58 /var/tmp/pear-build-root uQ9vgf/install-ssh2-0.12/usr/lib64/php/modules 85724662 228 -rwxr-xr-x 1 root root 229762 May 9 23:58 /var/tmp/pear-build-root uQ9vgf/install-ssh2-0.12/usr/lib64/php/modules/ssh2.so Build process completed successfully Installing '/usr/lib64/php/modules/ssh2.so' install ok: channel://pecl.php.net/ssh2-0.12 configuration option "php_ini" is not set to php.ini location You should add "extension=ssh2.so" to php.ini
The SSH2 extension is auto-create in /usr/lib64/php/modules/ssh2.so
Step 4: add “extension=ssh2.so” to php.ini, or create new file ssh2.ini in /etc/php.d/
[root@tutorialspots ~]# touch /etc/php.d/ssh2.ini [root@tutorialspots ~]# echo extension=ssh2.so > /etc/php.d/ssh2.ini
Step 5: restart your webserver
[root@tutorialspots ~]# service httpd restart Stopping httpd: [ OK ] [ OK ] [root@tutorialspots ~]# service nginx restart Stopping nginx: [ OK ] Starting nginx: [ OK ]
1 Comment
How to install SSH2 extension for PHP | Free Online Tutorials
(July 11, 2016 - 4:16 am)[…] How to install SSH2 extension of PHP on Centos […]