Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

I cannot install mongodb in my laravel . my php version is 8.2. and i am using UBUNTU 22.04. PLEASE HELP ME #2544

Unanswered
knightterris asked this question in General
Discussion options

whenever i run
composer require jenssegers/mongodb or composer require jenssegers/mongodb:3.6.1 something like this, i got errors.
st.org could not be fully loaded (The "https://repo.packagist.org/packages.json" file could not be downloaded: Failed to open stream: Connection timed out), package information was loaded from the local cache and may be out of date
Using version ^3.9 for jenssegers/mongodb
./composer.json has been updated
Running composer update jenssegers/mongodb
Loading composer repositories with package information
https://repo.packagist.org could not be fully loaded (The "https://repo.packagist.org/packages.json" file could not be downloaded: Failed to open stream: Connection timed out), package information was loaded from the local cache and may be out of date
Updating dependencies
Your requirements could not be resolved to an installable set of packages.

Problem 1
- laravel/pint is locked to version v1.10.2 and an update of this package was not requested.
- laravel/pint v1.10.2 requires ext-xml * -> it is missing from your system. Install or enable PHP's xml extension.
Problem 2
- phpunit/phpunit is locked to version 9.6.9 and an update of this package was not requested.
- phpunit/phpunit 9.6.9 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
Problem 3
- spatie/laravel-ignition is locked to version 1.6.4 and an update of this package was not requested.
- spatie/laravel-ignition 1.6.4 requires ext-curl * -> it is missing from your system. Install or enable PHP's curl extension.
Problem 4
- tijsverkoyen/css-to-inline-styles 2.2.6 requires ext-dom * -> it is missing from your system. Install or enable PHP's dom extension.
- laravel/framework v9.52.9 requires tijsverkoyen/css-to-inline-styles ^2.2.5 -> satisfiable by tijsverkoyen/css-to-inline-styles[2.2.6].
- laravel/framework is locked to version v9.52.9 and an update of this package was not requested.

To enable extensions, verify that they are enabled in your .ini files:
- /etc/php/8.2/cli/php.ini
- /etc/php/8.2/cli/conf.d/10-mysqlnd.ini
- /etc/php/8.2/cli/conf.d/10-opcache.ini
- /etc/php/8.2/cli/conf.d/10-pdo.ini
- /etc/php/8.2/cli/conf.d/20-bz2.ini
- /etc/php/8.2/cli/conf.d/20-calendar.ini
- /etc/php/8.2/cli/conf.d/20-ctype.ini
- /etc/php/8.2/cli/conf.d/20-exif.ini
- /etc/php/8.2/cli/conf.d/20-ffi.ini
- /etc/php/8.2/cli/conf.d/20-fileinfo.ini
- /etc/php/8.2/cli/conf.d/20-ftp.ini
- /etc/php/8.2/cli/conf.d/20-gettext.ini
- /etc/php/8.2/cli/conf.d/20-iconv.ini
- /etc/php/8.2/cli/conf.d/20-mongodb.ini
- /etc/php/8.2/cli/conf.d/20-mysqli.ini
- /etc/php/8.2/cli/conf.d/20-pdo_mysql.ini
- /etc/php/8.2/cli/conf.d/20-phar.ini
- /etc/php/8.2/cli/conf.d/20-posix.ini
- /etc/php/8.2/cli/conf.d/20-readline.ini
- /etc/php/8.2/cli/conf.d/20-shmop.ini
- /etc/php/8.2/cli/conf.d/20-sockets.ini
- /etc/php/8.2/cli/conf.d/20-sysvmsg.ini
- /etc/php/8.2/cli/conf.d/20-sysvsem.ini
- /etc/php/8.2/cli/conf.d/20-sysvshm.ini
- /etc/php/8.2/cli/conf.d/20-tokenizer.ini
You can also run php --ini in a terminal to see which files are used by PHP in CLI mode.
Alternatively, you can run Composer with --ignore-platform-req=ext-xml --ignore-platform-req=ext-dom --ignore-platform-req=ext-curl to temporarily ignore these required extensions.
You can also try re-running composer require with an explicit version constraint, e.g. "composer require jenssegers/mongodb:*" to figure out if any version is installable, or "composer require jenssegers/mongodb:^2.1" if you know which you need.

Installation failed, reverting ./composer.json and ./composer.lock to their original content.

You must be logged in to vote

Replies: 0 comments

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

AltStyle によって変換されたページ (->オリジナル) /