-
Notifications
You must be signed in to change notification settings - Fork 157
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
Bug: Can't install on Arch Linux #402
Comments
I have the same problem, has anyone been able to solve it? OS: Arch Linux - 6.0.12-arch1-1 |
If it helps anyone, i solved it using 81 instead of 8.1, like this: valet use 81 |
if you don't use multiple php version. you can just return your php version directly on |
On Arch Linux, you only have the packages |
Could you test this PR? #378 I am using Arch/Manjaro and have the same issue. |
Faced same issue. I am using Manjaro. $ valet install
Nginx was already enabled
Stopping nginx...
[php8.2-fpm] is not installed, installing it now via Pacman... 🍻
error: target not found: php8.2-fpm I have installed $ php --version
PHP 8.2.2 (cli) (built: Feb 1 2023 08:33:04) (NTS)
Copyright (c) The PHP Group
Zend Engine v4.2.2, Copyright (c) Zend Technologies |
As a workaround, I've changed return 'php-fpm'; // from return "php{$version}-fpm also at line 48 if (!$this->pm->installed("php-fpm")) { // instead of installed("php{$this->getPhpVersion}-fpm")
$this->pm->ensureInstalled("php-fpm"); // instead of ensureInstalled("php{$this->getPhpVersion}-fpm")
$this->sm->enable($this->fpmServiceName());
} |
For temporary fixing, what I did was To:
i.e., I just removed Still waiting for permanent solution |
I've managed to manually fix this whilst maintaining the php switching feature. First I've added a new Arch AUR repository to provide php packages named with a similar scheme So I ended up changing the public static function normalizePhpVersion($version)
{
return substr(preg_replace('/(?:php@?)?([0-9+])(?:.)?([0-9+])/i', '$1$2', (string)$version), 0, 2);
} All in all it's a pretty minor change in the code base. Works fine for the time being. Will report back if I end up facing issues with it in the future, but for now I was able to successfully install |
Basic info
Unable to install. EndeavourOS is plain Arch Linux. Installer demands php8.1-fpm but Arch only has php-fpm. Install fails.
The text was updated successfully, but these errors were encountered: