-
-
Notifications
You must be signed in to change notification settings - Fork 85
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
Install fails with a missing class #252
Comments
What PHP version are you running? |
|
Could you run or you see lines like
|
My guess is, that your PHP comes without INTL extension and then the Symphony If you can confirm you do not have the |
Yes, you're correct, my PHP doesn't have the |
Can you give the PHAR file from this beta release page a try? |
I'm not sure what's going on now, but the link on that release page seems a bit weird, showing the same version I got with $ wget --quiet https://github.com/captainhookphp/captainhook/releases/download/5.23.4-beta/captainhook.phar
$ php ./captainhook.phar --version
CaptainHook version 5.23.3 2024-07-07 #StandWithUkraine
$ ./vendor/bin/captainhook --version
CaptainHook version 5.23.3 2024-07-07 #StandWithUkraine
$ php ./captainhook.phar install
PHP Fatal error: Uncaught Error: Class "Normalizer" not found in phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/string/AbstractUnicodeString.php:29
Stack trace:
#0 phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/console/Helper/Helper.php(57): [constant expression]()
#1 phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/console/Application.php(731): CaptainHook\Phar\Symfony\Component\Console\Helper\Helper::width()
#2 phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/console/Application.php(704): CaptainHook\Phar\Symfony\Component\Console\Application->doRenderThrowable()
#3 phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/console/Application.php(142): CaptainHook\Phar\Symfony\Component\Console\Application->renderThrowable()
#4 phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/console/Application.php(162): CaptainHook\Phar\Symfony\Component\Console\Application->CaptainHook\Phar\Symfony\Component\Console\{closure}()
#5 phar:///home/omni/code/slack/captainhook.phar/bin/captainhook(63): CaptainHook\Phar\Symfony\Component\Console\Application->run()
#6 phar:///home/omni/code/slack/captainhook.phar/bin/captainhook(64): CaptainHook\Phar\{closure}()
#7 /home/omni/code/slack/captainhook.phar(17): require('...')
#8 {main}
thrown in phar:///home/omni/code/slack/captainhook.phar/vendor/symfony/string/AbstractUnicodeString.php on line 29 |
With a brand new repository, trying to run
./vendor/bin/captainhook install
fails with a missing class if you haven't done the configure step:Using the non-.phar version tells the user to create the configuration file instead of dying.
The text was updated successfully, but these errors were encountered: