{"action":"created","issue":{"url":"https://api.github.com/repos/Microsoft/msphpsql/issues/373","repository_url":"https://api.github.com/repos/Microsoft/msphpsql","labels_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/373/labels{/name}","comments_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/373/comments","events_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/373/events","html_url":"https://github.com/Microsoft/msphpsql/issues/373","id":224167049,"number":373,"title":"Mac install \"fatal error: 'sql.h' file not found\"","user":{"login":"anderly","id":573151,"avatar_url":"https://avatars1.githubusercontent.com/u/573151?v=3","gravatar_id":"","url":"https://api.github.com/users/anderly","html_url":"https://github.com/anderly","followers_url":"https://api.github.com/users/anderly/followers","following_url":"https://api.github.com/users/anderly/following{/other_user}","gists_url":"https://api.github.com/users/anderly/gists{/gist_id}","starred_url":"https://api.github.com/users/anderly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anderly/subscriptions","organizations_url":"https://api.github.com/users/anderly/orgs","repos_url":"https://api.github.com/users/anderly/repos","events_url":"https://api.github.com/users/anderly/events{/privacy}","received_events_url":"https://api.github.com/users/anderly/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"assignees":[],"milestone":null,"comments":6,"created_at":"2017-04-25T14:54:56Z","updated_at":"2017-04-26T01:47:44Z","closed_at":null,"body":"Trying to following install steps for Mac here under Step 2: https://www.microsoft.com/en-us/sql-server/developer-get-started/php-mac\r\n\r\n- Driver Version: sqlsrv-4.1.7preview pdo_sqlsrv-4.1.7preview\r\n- OS Version and Distro: macOS Sierra 10.12\r\n- Can you connect to SQL Server via sqlcmd: NO\r\n- Environment details: PHP 7.1.0 installed via Laravel Valet (https://laravel.com/docs/5.4/valet)\r\n\r\nSteps to Reproduce:\r\n\r\n```\r\nbrew tap microsoft/mssql-preview https://github.com/Microsoft/homebrew-mssql-preview\r\nbrew update\r\nbrew install unixodbc\r\nbrew install msodbcsql\r\nbrew install mssql-tools\r\nbrew install llvm --with-clang --with-clang-extra-tools\r\nbrew install autoconf\r\nsudo pecl install sqlsrv-4.1.7preview pdo_sqlsrv-4.1.7preview\r\nsudo echo \"extension= pdo_sqlsrv.so\" >> `php --ini | grep \"Loaded Configuration\" | sed -e \"s|.*:\\s*||\"`\r\nsudo echo \"extension= sqlsrv.so\" >> `php --ini | grep \"Loaded Configuration\" | sed -e \"s|.*:\\s*||\"`\r\n```\r\n\r\nReceive the following error running `sudo pecl install sqlsrv-4.1.7preview pdo_sqlsrv-4.1.7preview` command: `fatal error: 'sql.h' file not found`\r\n\r\nFull log from that step: http://ander.ly/A9Zr+\r\n\r\nThe `sql.h` file is indeed there: http://ander.ly/kMVV\r\n\r\nTried uninstalling all packages and installing again and unlinking unixodbc and relinking to no avail. Further info in this comment thread: https://www.microsoft.com/en-us/sql-server/developer-get-started/php-mac#comment-3272933953\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/Microsoft/msphpsql/issues/comments/297214139","html_url":"https://github.com/Microsoft/msphpsql/issues/373#issuecomment-297214139","issue_url":"https://api.github.com/repos/Microsoft/msphpsql/issues/373","id":297214139,"user":{"login":"anderly","id":573151,"avatar_url":"https://avatars1.githubusercontent.com/u/573151?v=3","gravatar_id":"","url":"https://api.github.com/users/anderly","html_url":"https://github.com/anderly","followers_url":"https://api.github.com/users/anderly/followers","following_url":"https://api.github.com/users/anderly/following{/other_user}","gists_url":"https://api.github.com/users/anderly/gists{/gist_id}","starred_url":"https://api.github.com/users/anderly/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/anderly/subscriptions","organizations_url":"https://api.github.com/users/anderly/orgs","repos_url":"https://api.github.com/users/anderly/repos","events_url":"https://api.github.com/users/anderly/events{/privacy}","received_events_url":"https://api.github.com/users/anderly/received_events","type":"User","site_admin":false},"created_at":"2017-04-26T01:47:44Z","updated_at":"2017-04-26T01:47:44Z","body":"I had previously used freetds, but uninstalled it."}}
{"actor":{"display_login":"anderly"}}