php / php/php-src

Failed to install extension: pdo_mysql

Open
#16,962 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Bug Category: Build System Extension: pdo_mysql OS: macOS Status: Needs Triage
Dominant language
C
Stars
40.4k
Forks
8.1k
Avg merge
2d 13h
Merged PRs (30d)
96

Description

Description

I'm not sure whether my command is correct:

cd /opt/homebrew/Cellar/php/8.4.1/include/php/ext/pdo_mysql
/opt/homebrew/bin/phpize
./configure --with-php-config=/opt/homebrew/bin/php-config --with-pdo-mysql
make
make install

Then it returned: make: *** no rule to make target " ".stop

PHP Version

PHP 8.4.1

Operating System

macOS Sonoma 14.2.1

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the phpize, configure, make, and make install commands from /opt/homebrew/Cellar/php/8.4.1/include/php/ext/pdo_mysql on macOS. Check the pdo_mysql extension build entry point and determine whether the reported make error comes from the command sequence or the extension sources. Done means identifying the cause and a supported installation path.

Written by the indexing model from the issue text.

Assessment

Tech stack
mysql, php
Domain
build-system, databases
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
30/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.