To enable extensions verify that they are enabled in your ini files etc php ini

Saved searches

Use saved searches to filter your results more quickly

You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session.

geerlingguy / drupal-vm Public archive

Installing with php7.2 fails at composer install, referencing 7.3 extensions #1903

Installing with php7.2 fails at composer install, referencing 7.3 extensions #1903

Comments

Issue Type

Your Environment

Vagrant 2.0.2 bash: vboxmanage: command not found VirtualBox bash: ansible: command not found 

Your OS

Full console output

TASK [geerlingguy.drupal : Generate Drupal project with composer package in /tmp/composer-project (this may take a while).] *** fatal: [localhost-discourseanalysis]: FAILED! => DrupalProject\\composer\\ScriptHandler::checkComposerVersion\nLoading composer repositories with package information\nUpdating dependencies (including require-dev)\nYour requirements could not be resolved to an installable set of packages.\n\n Problem 1\n - drupal/core 8.7.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.0-rc1 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.0-beta2 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.0-beta1 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.0-alpha1 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - drupal/core 8.6.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.\n - Installation request for drupal/core ^8.6.0 -> satisfiable by drupal/core[8.6.0, 8.6.0-alpha1, 8.6.0-beta1, 8.6.0-beta2, 8.6.0-rc1, 8.6.1, 8.6.10, 8.6.2, 8.6.3, 8.6.4, 8.6.5, 8.6.6, 8.6.7, 8.6.8, 8.6.9, 8.6.x-dev, 8.7.x-dev].\n\n To enable extensions, verify that they are enabled in your .ini files:\n - /etc/php/7.3/cli/php.ini\n - /etc/php/7.3/cli/conf.d/10-opcache.ini\n - /etc/php/7.3/cli/conf.d/10-pdo.ini\n - /etc/php/7.3/cli/conf.d/20-apcu.ini\n - /etc/php/7.3/cli/conf.d/20-calendar.ini\n - /etc/php/7.3/cli/conf.d/20-ctype.ini\n - /etc/php/7.3/cli/conf.d/20-exif.ini\n - /etc/php/7.3/cli/conf.d/20-fileinfo.ini\n - /etc/php/7.3/cli/conf.d/20-ftp.ini\n - /etc/php/7.3/cli/conf.d/20-gettext.ini\n - /etc/php/7.3/cli/conf.d/20-iconv.ini\n - /etc/php/7.3/cli/conf.d/20-json.ini\n - /etc/php/7.3/cli/conf.d/20-phar.ini\n - /etc/php/7.3/cli/conf.d/20-posix.ini\n - /etc/php/7.3/cli/conf.d/20-readline.ini\n - /etc/php/7.3/cli/conf.d/20-shmop.ini\n - /etc/php/7.3/cli/conf.d/20-sockets.ini\n - /etc/php/7.3/cli/conf.d/20-sysvmsg.ini\n - /etc/php/7.3/cli/conf.d/20-sysvsem.ini\n - /etc/php/7.3/cli/conf.d/20-sysvshm.ini\n - /etc/php/7.3/cli/conf.d/20-tokenizer.ini\n - /etc/php/7.3/cli/conf.d/20-yaml.ini\n You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.", "stderr_lines": ["Error: \"curl\" PHP extension not loaded; Prestissmo Composer plugin disabled.", "Error: \"curl\" PHP extension not loaded; Prestissmo Composer plugin disabled.", "Installing drupal-composer/drupal-project (8.x-dev 4229acea4bb6181f421e8dd0e72a02ccdc98df1d)", " - Installing drupal-composer/drupal-project (8.x-dev 4229ace): Downloading (connecting. )\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\b\bDownloading (100%) \b\b\b\b\b\b\b\b\b", "Created project in /tmp/composer-project", "Error: \"curl\" PHP extension not loaded; Prestissmo Composer plugin disabled.", "> DrupalProject\\composer\\ScriptHandler::checkComposerVersion", "Loading composer repositories with package information", "Updating dependencies (including require-dev)", "Your requirements could not be resolved to an installable set of packages.", "", " Problem 1", " - drupal/core 8.7.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.x-dev requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.9 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.8 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.7 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.6 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.5 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.4 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.3 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.2 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.10 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.1 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.0-rc1 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.0-beta2 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.0-beta1 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.0-alpha1 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - drupal/core 8.6.0 requires ext-dom * -> the requested PHP extension dom is missing from your system.", " - Installation request for drupal/core ^8.6.0 -> satisfiable by drupal/core[8.6.0, 8.6.0-alpha1, 8.6.0-beta1, 8.6.0-beta2, 8.6.0-rc1, 8.6.1, 8.6.10, 8.6.2, 8.6.3, 8.6.4, 8.6.5, 8.6.6, 8.6.7, 8.6.8, 8.6.9, 8.6.x-dev, 8.7.x-dev].", "", " To enable extensions, verify that they are enabled in your .ini files:", " - /etc/php/7.3/cli/php.ini", " - /etc/php/7.3/cli/conf.d/10-opcache.ini", " - /etc/php/7.3/cli/conf.d/10-pdo.ini", " - /etc/php/7.3/cli/conf.d/20-apcu.ini", " - /etc/php/7.3/cli/conf.d/20-calendar.ini", " - /etc/php/7.3/cli/conf.d/20-ctype.ini", " - /etc/php/7.3/cli/conf.d/20-exif.ini", " - /etc/php/7.3/cli/conf.d/20-fileinfo.ini", " - /etc/php/7.3/cli/conf.d/20-ftp.ini", " - /etc/php/7.3/cli/conf.d/20-gettext.ini", " - /etc/php/7.3/cli/conf.d/20-iconv.ini", " - /etc/php/7.3/cli/conf.d/20-json.ini", " - /etc/php/7.3/cli/conf.d/20-phar.ini", " - /etc/php/7.3/cli/conf.d/20-posix.ini", " - /etc/php/7.3/cli/conf.d/20-readline.ini", " - /etc/php/7.3/cli/conf.d/20-shmop.ini", " - /etc/php/7.3/cli/conf.d/20-sockets.ini", " - /etc/php/7.3/cli/conf.d/20-sysvmsg.ini", " - /etc/php/7.3/cli/conf.d/20-sysvsem.ini", " - /etc/php/7.3/cli/conf.d/20-sysvshm.ini", " - /etc/php/7.3/cli/conf.d/20-tokenizer.ini", " - /etc/php/7.3/cli/conf.d/20-yaml.ini", " You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode."], "stdout": "", "stdout_lines": []> 

Summary

A fresh vargant up, with php_version: «7.2» in config fails to get past the composer install. When I run php -v , I get PHP 7.3.2-3+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Feb 8 2019 15:43:26) ( NTS ) Obviously, this one misses packages (at least the php-dom ).

alias php='/usr/bin/php7.2' php -v cd /tmp/composer-project composer install 

does not resolve the issue, error remains, addressing /etc/php/7.3 modules.

sudo apt-get install php7.3 php7.3-cli php7.3-common php7.3-curl php7.3-dev php7.3-dom php7.3-fpm php7.3-gd php7.3-imap php7.3-json php7.3-mbstring php7.3-opcache php7.3-sqlite3 php7.3-xml php7.3-yaml composer install 

gets the composer install running. But this was not supposed to happen at all and I am unsure how to proceed — if the state is clean.

Читайте также:  Однослойные нейронные сети python

Afterwards, vagrant provision runs all the way through. php -v resolves to an expected PHP 7.2.15-1+ubuntu16.04.1+deb.sury.org+1 (cli) (built: Feb 8 2019 15:37:29) ( NTS ) .

The text was updated successfully, but these errors were encountered:

Источник

Laravel не создается папка Vendor и нет возможности работать с новым проектом. Ошибка Artisan. Что делать?

(Windows) Создаю новый проект на Larevel 8 в папке с сайтами. После чего ввожу команду
composer create-project laravel/laravel NEW_NAME
NEW_NAME — имя проекта.

После чего в консоле выкидает

Your requirements could not be resolved to an installable set of packages. Problem 1 - laravel/framework[v8.12.0, . 8.x-dev] require league/flysystem ^1.1 -> satisfiable by league/flysystem[1.1.0, . 1.x-dev]. - league/flysystem[1.1.0, . 1.x-dev] require ext-fileinfo * -> it is missing from your system. Install or enable PHP's fileinfo extension. - Root composer.json requires laravel/framework ^8.12 -> satisfiable by laravel/framework[v8.12.0, . 8.x-dev]. To enable extensions, verify that they are enabled in your .ini files: - C:\Program Files\PHP\php-7.4.11\php.ini You can also run `php --ini` inside terminal to see which files are used by PHP in CLI mode.

и в итоге ничего не работает. Если вводить PHP ARTISAN выдается ошибка.

PS D:\openserver\ospanel\domains\shop> php artisan serve PHP Warning: require(D:\OpenServer\OSPanel\domains\shop/vendor/autoload.php): failed to open stream: No such file or directory in D:\OpenServer\OSP anel\domains\shop\artisan on line 18 Warning: require(D:\OpenServer\OSPanel\domains\shop/vendor/autoload.php): failed to open stream: No such file or directory in D:\OpenServer\OSPanel\ domains\shop\artisan on line 18 PHP Fatal error: require(): Failed opening required 'D:\OpenServer\OSPanel\domains\shop/vendor/autoload.php' (include_path='.;C:\php\pear') in D:\O penServer\OSPanel\domains\shop\artisan on line 18 Fatal error: require(): Failed opening required 'D:\OpenServer\OSPanel\domains\shop/vendor/autoload.php' (include_path='.;C:\php\pear') in D:\OpenSe rver\OSPanel\domains\shop\artisan on line 18

При том что старый проект работает корректно, тоже на laravel 8. Если со старого проекта перекинуть папку VENDOR, то новый проект тоже работает. То есть не создается папка Vendor.

Я уже не понимаю что делать)
Вроде все перепробовал. Смотрел файл php.ini , там все корректно, т.к. если была бы ошибка, то не работал бы старый проект.

Простой 10 комментариев

Источник

Оцените статью