Skip to content
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

Ubuntu 20.04: can't install Polr #622

Open
Sanookmakmak opened this issue Jun 13, 2022 · 2 comments
Open

Ubuntu 20.04: can't install Polr #622

Sanookmakmak opened this issue Jun 13, 2022 · 2 comments

Comments

@Sanookmakmak
Copy link

PHP 7.4.3

I stuck at the step "Install composer dependencies" of http://docs.polrproject.org/en/latest/user-guide/installation/#installation

How to fix it please?

composer install --no-dev -o

.
.
.
Package jeremeamia/superclosure is abandoned, you should avoid using it. Use opis/closure instead.
Package mtdowling/cron-expression is abandoned, you should avoid using it. Use dragonmantank/cron-expression instead.
Package phpoffice/phpexcel is abandoned, you should avoid using it. Use phpoffice/phpspreadsheet instead.
Package fzaninotto/faker is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/php-token-stream is abandoned, you should avoid using it. No replacement was suggested.
Package phpunit/phpunit-mock-objects is abandoned, you should avoid using it. No replacement was suggested.
Generating optimized autoload files
Class PHPExcel_Polynomial_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/polynomialBestFitClass.php does not comply with psr-0 autoloading standard. Skipping.
Class PHPExcel_Power_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/powerBestFitClass.php does not comply with psr-0 autoloading standard. Skipping.
Class PHPExcel_Exponential_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/exponentialBestFitClass.php does not comply with psr-0 autoloading standard. Skipping.
Class PHPExcel_Logarithmic_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/logarithmicBestFitClass.php does not comply with psr-0 autoloading standard. Skipping.
Class PHPExcel_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/bestFitClass.php does not comply with psr-0 autoloading standard. Skipping.
Class PHPExcel_Linear_Best_Fit located in ./vendor/phpoffice/phpexcel/Classes/PHPExcel/Shared/trend/linearBestFitClass.php does not comply with psr-0 autoloading standard. Skipping.
Carbon 1 is deprecated, see how to migrate to Carbon 2.
https://carbon.nesbot.com/docs/#api-carbon-2
    You can run './vendor/bin/upgrade-carbon' to get help in updating carbon and other frameworks and libraries that depend on it.
10 packages you are using are looking for funding.
Use the `composer fund` command to find out more!

./vendor/bin/upgrade-carbon

.
.
.
Your requirements could not be resolved to an installable set of packages.

  Problem 1
    - composer/composer[2.3.0, ..., 2.3.5] require symfony/console ^5.4.1 || ^6.0 -> found symfony/console[v5.4.1, ..., v5.4.9, v6.0.0, ..., v6.1.1] but the package is fixed to v2.7.51 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - composer/composer[2.3.6, ..., 2.3.7] require symfony/console ^5.4.7 || ^6.0.7 -> found symfony/console[v5.4.7, v5.4.8, v5.4.9, v6.0.7, ..., v6.1.1] but the package is fixed to v2.7.51 (lock file version) by a partial update and that version does not match. Make sure you list it as an argument for the update command.
    - Root composer.json requires composer/composer ^2.3 -> satisfiable by composer/composer[2.3.0, ..., 2.3.7].

Use the option --with-all-dependencies (-W) to allow upgrades, downgrades and removals for packages currently locked to specific versions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require composer/composer:*" to figure out if any version is installable, or "composer require composer/composer:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.
PHP Fatal error:  Uncaught Error: Class 'Composer\Composer' not found in /var/www/clients/client1/web29/web/vendor/nesbot/carbon/src/Carbon/Upgrade.php:131
Stack trace:
#0 /var/www/clients/client1/web29/web/vendor/nesbot/carbon/bin/upgrade-carbon(27): Carbon\Upgrade::upgrade()
#1 /var/www/clients/client1/web29/web/vendor/bin/upgrade-carbon(115): include('/var/www/client...')
#2 {main}
  thrown in /var/www/clients/client1/web29/web/vendor/nesbot/carbon/src/Carbon/Upgrade.php on line 131
@cidrbl0ck
Copy link

Wanted to comment as I'm now worried a bit by this. @Sanookmakmak Did you ever resolve this?

@cidrbl0ck
Copy link

Yup encountered identical problem on fresh install on Ubu 20.04.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants