Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

No releases available for package "pecl.php.net/ssh2" #1066

Closed
FunctionDJ opened this issue Feb 12, 2025 · 4 comments
Closed

No releases available for package "pecl.php.net/ssh2" #1066

FunctionDJ opened this issue Feb 12, 2025 · 4 comments
Labels
bug Something isn't working

Comments

@FunctionDJ
Copy link

Version of install-php-extensions

v.2.7.23

Error description

I'm trying to install ssh2 and running docker build . eventually prints:

6.799 No releases available for package "pecl.php.net/ssh2"
6.799 install failed

and then exits with code 1.
This also happens with php-7.4-cli and -fpm.

Docker image

php:7.2-cli

Minimal Dockerfile

FROM php:7.2-cli
ADD --chmod=0755 https://github.com/mlocati/docker-php-extension-installer/releases/latest/download/install-php-extensions /usr/local/bin/
RUN install-php-extensions ssh2
@FunctionDJ FunctionDJ added the bug Something isn't working label Feb 12, 2025
@FunctionDJ
Copy link
Author

FunctionDJ commented Feb 12, 2025

Also happens with mcrypt and gnupg for me.

Other extensions like zip or intl work.

@mlocati mlocati closed this as completed Feb 12, 2025
@FunctionDJ
Copy link
Author

For anyone coming across this:

I've seen this command to check pecl reachability from inside the PHP container (using docker exec):
curl -vf -o- https://pecl.php.net/rest/r/redis/allreleases.xml
from here: #787 (comment)
and curl is throwing an SSL error (60) so the corporate proxy or container configuration is probably the issue.

@FunctionDJ
Copy link
Author

FunctionDJ commented Feb 12, 2025

After proper configuration using
RUN pear config-set http_proxy http://insert-corporate-proxy:80 && [the rest]
it's working now 🥳

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants