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

driver not loading in Mamp pro and can run PHP 8.1.13 or PHP 8.2. #1441

Closed
Ravenna opened this issue Feb 24, 2023 · 2 comments
Closed

driver not loading in Mamp pro and can run PHP 8.1.13 or PHP 8.2. #1441

Ravenna opened this issue Feb 24, 2023 · 2 comments

Comments

@Ravenna
Copy link

Ravenna commented Feb 24, 2023

PHP version 8.1 or 8.2
PHP SQLSRV or PDO_SQLSRV version Not sure
Microsoft ODBC Driver version 18
SQL Server version 17
Client operating system OSX Ventura 13.2

Table schema

Problem description
Running my mac m1 on the latest osx. I have Mamp pro and can run PHP 8.1.13 or PHP 8.2.

I followed this: https://learn.microsoft.com/en-us/answers/questions/705302/sql-server-on-mamp?orderby=oldest but replaced everything with my PHP version and odbc v18.

Everything appears to be installed but I have a few issues:

  1. Nothing is added to php.ini with the extension
  2. If I try sudo pecl install sqlsrv
    Password: MYPW
    PHP Warning: Module "sqlsrv" is already loaded in Unknown on line 0

Warning: Module "sqlsrv" is already loaded in Unknown on line 0
PHP Warning: Module "pdo_sqlsrv" is already loaded in Unknown on line 0

Warning: Module "pdo_sqlsrv" is already loaded in Unknown on line 0
PHP Warning: Module "pdo_sqlsrv" is already loaded in Unknown on line 0

Warning: Module "pdo_sqlsrv" is already loaded in Unknown on line 0
pecl/sqlsrv is already installed and is the same as the released version 5.10.1
install failed

--

Been looking through Google, Git, stack. Any ideas?

Expected behavior and actual behavior

Repro code or steps to reproduce

@andremartinez
Copy link

Some recent issues mentioned a problem with unixodbc (or so it seems)

The comment here (#1436 (comment)) suggests installing the version 2.3.7 of unixodbc (and some other dependencies) is a workaround for the problem

See if that helps

@Ravenna
Copy link
Author

Ravenna commented Feb 27, 2023

Thanks @andremartinez. I am on OSX and can't seem it install unixodbc version 2.3.7. Gonna keep digging.

@Ravenna Ravenna closed this as completed Mar 3, 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

2 participants