Giter VIP home page Giter VIP logo

Comments (26)

edamov avatar edamov commented on May 14, 2024

@fbartolom Is php compiled with that version of cURL?

from pushok.

fbartolom avatar fbartolom commented on May 14, 2024

from pushok.

fbartolom avatar fbartolom commented on May 14, 2024

At any rate my php version is quite new:
PHP 7.3.10 (cli) (built: Sep 24 2019 09:20:18)

from pushok.

edamov avatar edamov commented on May 14, 2024

You can check it in phpinfo().

from pushok.

fbartolom avatar fbartolom commented on May 14, 2024

from pushok.

edamov avatar edamov commented on May 14, 2024

You have curl 7.29.0 - http://i.imgur.com/Y2gCeN6.png
You need to recompile php with new version of curl

from pushok.

fbartolom avatar fbartolom commented on May 14, 2024

from pushok.

edamov avatar edamov commented on May 14, 2024

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.

fbartolom avatar fbartolom commented on May 14, 2024

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.

fbartolom avatar fbartolom commented on May 14, 2024

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.

fbartolom avatar fbartolom commented on May 14, 2024

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.

edamov avatar edamov commented on May 14, 2024

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.

fbartolom avatar fbartolom commented on May 14, 2024

from pushok.

edamov avatar edamov commented on May 14, 2024

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.

fbartolom avatar fbartolom commented on May 14, 2024

from pushok.

ozgurhangisi avatar ozgurhangisi commented on May 14, 2024

@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.

fbartolom avatar fbartolom commented on May 14, 2024

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.

fbartolom avatar fbartolom commented on May 14, 2024

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.

edamov avatar edamov commented on May 14, 2024

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.

fbartolom avatar fbartolom commented on May 14, 2024

The question is how: I already disinstalled and reinstalled php, but that changed nothing.

from pushok.

fbartolom avatar fbartolom commented on May 14, 2024

from pushok.

edamov avatar edamov commented on May 14, 2024

Please check phpinfo() again. Do you have intl section?

from pushok.

fbartolom avatar fbartolom commented on May 14, 2024

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.

edamov avatar edamov commented on May 14, 2024

Maybe this answer will help you

from pushok.

fbartolom avatar fbartolom commented on May 14, 2024

from pushok.

fbartolom avatar fbartolom commented on May 14, 2024

from pushok.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.