osx - unixODBC in Mac OS PHP7 driver error file not found (although file is there) -


after installing php7 , sql driver homebrew when trying use error fired:

sqlstate[01000]: [unixodbc][driver manager]can't open lib '/usr/local/lib/libmsodbcsql.13.dylib' : file not found

the file exists , driver configured in odbcinst.ini:

[odbc driver 13 sql server] description=microsoft odbc driver 13 sql server driver=/usr/local/lib/libmsodbcsql.13.dylib usagecount=1 

also using otool -l checked dependencies exist.

also checked similar questions in , none seems help. out of option , have no idea can be.

update:

i managed install on different machine 1 having problem. followed these steps:

https://github.com/microsoft/msphpsql

this time installed version 7.1 (instead of 7.0) , when installing msodbcsql installed no-sandbox (otherwise error)

brew install --no-sandbox msodbcsql 

in new machine worked perfectly. on machine problems difference user had root privileges. new version localhost run default on port 8080 instead of port 80 (which give connection refused)

i still try update other machine php 7.1 check if fix problem , update post


Comments

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -