[LINUX] What to do if you can't find PDO in Laravel or CakePHP

Details of the error

The title error occurred when executing the following framework on AWS EC2 (Amazon Linux). ・ When executing Laravel migrate · When running CakePHP's build-in server

environment

PHP7.2 PostgreSQL 10 series

Workaround

Execute the following command to find the module that suits your environment

$ yum search php-pdo

Then, it will be displayed as follows.

Loaded plugins: extras_suggestions, langpacks, priorities, update-motd
242 packages excluded due to repository priority protections
=========================================================================================================== N/S matched: php-pdo ============================================================================================================
php-pdo.x86_64 : A database access abstraction module for PHP applications
php-pdo-dblib.x86_64 : PDO driver Microsoft SQL Server and Sybase databases
php54-php-pdo.x86_64 : A database access abstraction module for PHP applications
php55-php-pdo.x86_64 : A database access abstraction module for PHP applications
php56-php-pdo.x86_64 : A database access abstraction module for PHP applications
php70-php-pdo.x86_64 : A database access abstraction module for PHP applications
php70-php-pdo-dblib.x86_64 : PDO driver Microsoft SQL Server and Sybase databases
php71-php-pdo.x86_64 : A database access abstraction module for PHP applications
php71-php-pdo-dblib.x86_64 : PDO driver Microsoft SQL Server and Sybase databases
php72-php-pdo.x86_64 : A database access abstraction module for PHP applications
php72-php-pdo-dblib.x86_64 : PDO driver Microsoft SQL Server and Sybase databases
php73-php-pdo.x86_64 : A database access abstraction module for PHP applications
php73-php-pdo-dblib.x86_64 : PDO driver Microsoft SQL Server and Sybase databases
php74-php-pdo.x86_64 : A database access abstraction module for PHP applications
php74-php-pdo-dblib.x86_64 : PDO driver for Microsoft SQL Server and Sybase databases
php74-php-pdo-firebird.x86_64 : PDO driver for Interbase/Firebird databases

  Name and summary matches only, use "search all" for everything.

Since the version of PHP used this time is PHP 7.2, execute the following command to install PDO

$ sudo yum install php72-php-pdo

This eliminates the error. Don't accidentally install another version.

Recommended Posts

What to do if you can't find PDO in Laravel or CakePHP
What to do if you can't log in as root
What to do if you can't use the trash in Lubuntu 18.04.
What to do if you can't pipenv shell
What to do if you can't use scikit grid search in Python
What to do if you can't install with pip in babun environment
What to do if you can't pip install mysqlclient
What to do if you get "coverage unknown" in Coveralls
What to do if you can't sort files with subscripts
What to do if you can't use WiFi on Linux
What to do if you can't hit the arrow keys in the Python interactive console
What to do if you can't install pyaudio with pip #Python
What to do if you get a minus zero in Python
What to do if you can't build your project with Maven
What to do if you get an error when running "certbot renew" in CakePHP environment
What to do if pipreqs results in UnicodeDecodeError
What to do if you get lost in file reference with FileNotFoundError
What to do if you get angry in TensorFlow v2 without attribute'app'
What to do if you get "Python not configured." Using PyDev in Eclipse
What to do if pip install fails in Xcode 5.1
No module named What to do if you get'libs.resources'
ModuleNotFoundError: No module What to do if you get'tensorflow.contrib'
What to do if a UnicodeDecodeError occurs in pip
What you can't do with hstack or vstack with dstack
What to do when you can't bind CaboCha to Python
What to do if you get `No kernel for language python found` in Hydrogen
What to do if you get "(35,'SSL connect error')" in pycurl (one of them)
What to do if you get an error when importing matplotlib in Python (Mac)
How to install and use pyenv, what to do if you can't switch python versions
What to do if you run python in IntelliJ and end with an error
What to do if ʻarguments [0] .scrollIntoView ();` fails in python selenium
What to do if you are addicted to Windows character code
What to do if pip gives a DistributionError in Homebrew
What to do if a 0xC0000005 error occurs in tf.train.start_queue_runners ()
What to do if you lose your EC2 key pair
What to do if yum breaks
What to do if you get Swagger-codegen in python and Import Error: No module named
What to do if you get a Cannot retrieve metalink for repository error in yum
What to do if you get a UnicodeDecodeError with pip install
What to do if "Unnamed: 0" is added in to_csv-> read_csv in pandas
What to do when you get "I can't see the site !!!!"
What to do if you cat or tail a binary file and the terminal is garbled
What to do if you get angry with'vertices' must be a 2D list ... in matplotlib arrow
What to do if you get an error saying c compiler cannot create executables in configure
What to do if you get a must override `get_config` error when trying to model.save in Keras
Let's summarize what you want to do.
What to do if there is a decimal in python json .dumps
What to do if you couldn't send an email to Yahoo with Python.
What to do if you forget your login password on Manjaro Linux
What to do if you get stuck during Anaconda installation on Linux
What to do if No Python documentation found for ... appears in pydoc
What to do if you get a TypeError with numpy min, max
What to do if you get an error when trying to load mnist
If you feel that you can't find the Object Inspector in recent Spyder
What to do if you get Could not fetch URL 443 with pip
What happens if you do "import A, B as C" in Python?
What to do if you get an error when installing Dlib (Ubuntu)
What to do if you get angry with "Value Error: unknown local: UTF-8" in python manage.py syncdb
[Python] What to do if you get a ModuleNotFoundError when importing pandas using Jupyter Notebook in Anaconda
What to do if an error occurs in TensorFlow RNN related import or RNN (LSTM) Cell (v 0.11r ~)
What to do if you get an error when trying to send a message in tasks.loop () immediately after startup