简体   繁体   中英

Not able to install ssh2 in centos 7

I am not able to install ssh2 in centos.

I using apache2 and PHP 7.3

I using below command and giving me error as below

yum install gcc php-devel libssh2 libssh2-devel php-pear make
pecl install -f ssh2

but it's showing me below error

No package php-devel available.
No package php-pear available.

please tell me what I missing.

In CentOS 7, what about enabling EPEL and then yum install php-pecl-ssh2

EDIT: Looks like CentOS 7 includes PHP 5 by default. The ssh2 page ( https://pecl.php.net/package/ssh2 ) says:

ssh2 1.0 and above is PHP 7 only. To install a version that is PHP 5 compatible you can run 'pecl install ssh2-0.13'

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM