:: Re: [DNG] OT: Install laravel on de…
Kezdőlap
Delete this message
Reply to this message
Szerző: al3xu5
Dátum:  
Címzett: dng
Tárgy: Re: [DNG] OT: Install laravel on devuan
Mon, 24 Jun 2024 11:37:19 -0400 - "Ismael L. Donis Garcia"
<slibre@???>:

> Until now I have always decided to program desktop applications, since I am
> not that young and I live in a country that is behind in time. But it has
> already begun to evolve and I have decided to jump into web programming.
>
> I'm trying to install Laravel but I haven't succeeded, I don't see very
> clear how to install the framework itself, I've tried to follow
> explanations on the web but I can't find the correct steps.
>
> For these reasons I am asking to see if someone can explain to me better
> how to install the framework so that it works on my PC.
>
> I live in CUBA and I don't know if that is a limitation for it. Below I
> explain the errors it gives me:
>
> root@clt-iyc-03:/var/www/html/testapp# sudo -u www-data composer
> create-project laravel/laravel. Creating a "laravel/laravel." project at
> "./laravel." The following exception probably indicates you have
> misconfigured DNS resolver(s)
>
> In CurlDownloader.php line 365:
>
> curl error 6 while downloading https://repo.packagist.org/packages.json:
> Could not resolve host: repo.packagis t.org
>
> create-project [-s|--stability STABILITY] [--prefer-source] [--prefer-dist]
> [--prefer-install PREFER-INSTALL] [--repository REPOSITORY]
> [--repository-url REPOSITORY-URL] [--add-repository] [--dev] [--no-dev]
> [--no-custom-installers] [--no-scripts] [--no-progress] [--no-secure-http]
> [--keep-vcs] [--remove-vcs] [--no-install] [--no-audit] [--audit-format
> AUDIT-FORMAT] [--ignore-platform-req IGNORE-PLATFORM-REQ]
> [--ignore-platform-reqs] [--ask] [--] [<package> [<directory> [<version>]]]
>
> But as you can see if I have access to the internet
>
> root@clt-iyc-03:/var/www/html/testapp# ping 8.8.8.8
> PING 8.8.8.8 (8.8.8.8) 56(84) bytes of data.
> 64 bytes from 8.8.8.8: icmp_seq=1 ttl=111 time=83.0 ms
> 64 bytes from 8.8.8.8: icmp_seq=2 ttl=111 time=82.7 ms
> root@clt-iyc-03:/var/www/html/testapp# wget
> https://repo.packagist.org/packages.json --2024-06-24 11:01:51--
> https://repo.packagist.org/packages.json Conectando con
> 192.168.0.70:3128... conectado. Petición Proxy enviada, esperando
> respuesta... 200 OK Longitud: no especificado [application/json]
> Grabando a: «packages.json»
> packages.json                    [ <=>
>     ]   2,52K  --.-KB/s    en 0s 2024-06-24 11:01:52 (103 MB/s) -
> «packages.json» guardado [2584]

>
> root@clt-iyc-03:/var/www/html/testapp#




Hum... It seems a common issue: searching the web for
'laravel composer "curl error 6 while downloading"'
gives a lot of results... like:

curl error 6 after updating,l this problem will not go away as it seems -.- ·
Issue #11397 · composer/composer · GitHub
https://github.com/composer/composer/issues/11397

Could not connect to packagist.org · Issue #5825 · composer/composer · GitHub
https://github.com/composer/composer/issues/5825

php - curl error 6 while downloading https://flex.symfony.com/versions.json:
Could not resolve host: flex.symfony.com - Stack Overflow
https://stackoverflow.com/questions/73770767/curl-error-6-while-downloading-https-flex-symfony-com-versions-json-could-not

The following exception probably indicates you have misconfigured DNS
resolver(s) - Questions - Slim Framework
https://discourse.slimframework.com/t/the-following-exception-probably-indicates-you-have-misconfigured-dns-resolver-s/4782


More, the problem is referenced also with the symphony and slim frameworks...

So I suspect it could be related with curl (you could try a newer or
different curl release), or with your DNS servers, or your firewall/proxy, or
with some "filtering" from your provider (and in that case maybe you could try
to torify curl...).

Regards
alexus


--
The only way humans have learned to survive brings them to extinction.
______________________________________________________________________
Public GPG/PGP key: 8FC2 3121 2803 86E9 F7D8 B624 DA50 835B 2624 A36B