Comments (26)
@fbartolom Is php compiled with that version of cURL?
from pushok.
from pushok.
At any rate my php version is quite new:
PHP 7.3.10 (cli) (built: Sep 24 2019 09:20:18)
from pushok.
You can check it in phpinfo().
from pushok.
from pushok.
You have curl 7.29.0 - http://i.imgur.com/Y2gCeN6.png
You need to recompile php with new version of curl
from pushok.
from pushok.
This is not error message from pushok library. This error message is generated by composer.
I don't know how to compile php using yum.
Maybe this will help you - https://stackoverflow.com/questions/4976971/compiling-php-with-curl-where-is-curl-installed
from pushok.
That post also specifies how to update libcurl, what I managed. I found post (https://tecadmin.net/install-php7-on-centos7/) by which I was able to get to version 7.4.0: yet trying to execute: yum --enablerepo=remi-php746 install php
or yum --enablerepo=remi-php75
finds nothing like whether 7.4.0 were the last available version for Centos 7, what seems still not enough for your very picky library.
from pushok.
It also seems the latest version of php for all platforms be 7.4.0, as you may check yourself on the web; I do not think it is an error the one of the composer command to request version 7.4.6 for libcurl, perhaps it is an error the fact that it does not find it, notwithstanding it is available. Please check if you may investigate the issue.
from pushok.
Now, after restarting Apache, php got to version 7.6.6 and still composer does not work:
curl -V
curl 7.66.0 (x86_64-pc-linux-gnu) libcurl/7.66.0 OpenSSL/1.0.2k-fips zlib/1.2.7
Release-Date: 2019-09-11
Protocols: dict file ftp ftps gopher http https imap imaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS HTTPS-proxy IPv6 Largefile libz NTLM NTLM_WB SSL UnixSockets
from pushok.
You are confusing php v. 7.4.0 and lib-curl v. 7.4.6. It is not the same.
And also php can have another version of lib-curl (unlike the version installed on your system).
When you run curl -V
you see the version of curl library in your system. But php can be compiled with another version of lib-curl (you can check in phpinfo()).
You can use docker image. It has required versions of all dependencies.
Also please read this answer. Maybe it will help.
from pushok.
from pushok.
You installed 7.4.0 - this is php version.
7.4.6 - is the lib-curl version. This is not php version.
For example, you can use php 7.1.0
and lib-curl 7.46
.
Or you can use php 7.2.0
and lib-curl 7.46
.
There are a lot of lib-curl versions and the minimum required is 7.46
.
So you can use your php 7.4.0 and lib-curl 7.66 (or any other but greater than 7.46)
Here you have lib-curl 7.29.0. It will not work for this library.
from pushok.
from pushok.
@fbartolom there are 2 points. You have to have the latest curl version on your machine and you have to compile your php with the latest curl version. You can have curl 7.66.0 but it's look like you compiled your php with curl 7.29.0 Please check your phpinfo ( https://taxiprofessional.net/phpinfo.php ) and search for cURL Information. You are going to see curl 7.29.0.
So the problem you have is not about this library. It is about your php installation.
from pushok.
The reason why curl -V gives a result and phpinfo another is unknown to me; yet I cannot update a version already updated, given from the OS point of view I already have 7.4.0. What, to my knowledge, is the last delivered version.
from pushok.
At any rate now php reports 7.4 even on php-info, how you may check yourself. And still composer does not start.
from pushok.
curl -V and phpinfo give you different versions because php is compiled with curl 7.29
You just need to recompile php with a newer version of curl
from pushok.
The question is how: I already disinstalled and reinstalled php, but that changed nothing.
from pushok.
from pushok.
Please check phpinfo() again. Do you have intl section?
from pushok.
I did and it is not there in fact: notwithstanding I installed php74-php-intl.x86_64:
Il pacchetto php74-php-intl-7.4.0~rc4-29.el7.remi.x86_64 è già installato e aggiornato all'ultima versione
Niente da fare
What should I install instead? The server is on centos 7.
from pushok.
Maybe this answer will help you
from pushok.
from pushok.
from pushok.
Related Issues (20)
- VoIP pem certificates don't work HOT 1
- Target [Pushok\AuthProviderInterface] is not instantiable while building [Pushok\Client]
- BadDeviceTokenThe specified device token was bad. Verify that the request contains a valid token and that the token matches the environment HOT 3
- Support PHP 8
- Uncaught Exception HOT 3
- Package spomky-labs/jose is abandoned, you should avoid using it. Use web-token/jwt-framework instead. HOT 1
- Deprecation notices with PHP 8.1 HOT 4
- Question: Push Notifications for PkPass Updates HOT 8
- send a notification on a chosen date HOT 1
- Updating a badge HOT 1
- Support for creating WeatherKit JWT tokens
- The `Alert` option is set in the code but there is no Alert on the phone
- Package fgrosse/phpasn1 is abandoned HOT 2
- Started getting InvalidArgumentException "Unable to load the key." HOT 4
- Live Activities Supported? HOT 3
- Laravel Vapor - HTTP/2 stream 15 was not closed cleanly before end of the underlying stream HOT 3
- 0.15.x is no longer compatible with PHP 8.0 HOT 4
- HTTP/2 stream was not closed cleanly: REFUSED STREAM HOT 9
- Sending `Alert` as `Background` due to `content-available` set HOT 1
- php 8.0 via command package not installed
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from pushok.