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

Unable to install ext-PDO with Composer. #836

Closed
PaulTGG opened this issue Dec 5, 2023 · 4 comments
Closed

Unable to install ext-PDO with Composer. #836

PaulTGG opened this issue Dec 5, 2023 · 4 comments
Assignees

Comments

@PaulTGG
Copy link
Contributor

PaulTGG commented Dec 5, 2023

🐛 Bugreport

Unable to use composer to install ext-PDO for database connections. Composer acts like ext-PDO is already installed, but still suggests that it be installed. I've also tried installing Postgres and Maria, with all their dependencies, and what I think are all the available php modules that connect to either Maria or Postgres. I also don't know if Composer is just lying, and a database connection would still work. (If I uncomment the database extension lines in php.ini, Composer says that PDO is already enabled, even though it still says that ext-PDO is suggested.)

Version & Environment

Rev: a8d6826 (Latest master as of December 5, 2023.)

OS: Debian 12.2..0
PHP 8.2.7
Composer: 2.5.5

Steps to reproduce

  1. Install some fresh Debian
  2. As root: apt install php composer php-curl php-redis php-gd php-memcached php-gnupg php-imagick php-bcmath php-soap php-xdebug php-xml
  3. mkdir cypht-test
  4. cd cypht-test
  5. wget https://github.com/cypht-org/cypht/archive/master.zip
  6. unzip master.zip
  7. cd cypht-master
  8. composer suggest <-- this shows that ext-PDO is not installed
  9. composer require ext-PDO <-- this installs a bunch of stuff, then throws into a bunch of looping "composer suggest" commands.
  10. composer suggest <-- still shows that ext-PDO is not installed.
@marclaporte
Copy link
Member

@Yannick243 Please use one of the lab servers to solve this. And please also review docs about usage with MariaDB and PostgreSQL.

@Yannick243
Copy link
Member

Yannick243 commented Dec 9, 2023

This has been adjusted in composer suggestions; however, you should just ensure that the different drivers are installed before enabling the extensions in php.ini for MariaDB and/or PostgreSQL;

apt install php8.2-mysql php8.2-pgsql

and finally check if the extension is enabled with phpinfo();
phpinfo-screen

@marclaporte
Copy link
Member

@PaulTGG Can we close this?

@PaulTGG
Copy link
Contributor Author

PaulTGG commented Dec 12, 2023

Yep, my bad!

@PaulTGG PaulTGG closed this as completed Dec 12, 2023
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

3 participants