Error 1 ERROR: `make 'failed installing sqlsrv

I am trying to install sqlsrv using commands from this page. However, when running

pecl install sqlsrv-4.2.0preview

      

I get an error: Error 1 ERROR: 'make' failed

.

I did my best:

apt-get update
apt-get install build-essential
apt-get install libpcre3-dev 
apt-get install make

      

They are all installed in the latest version.

I am starting a container using php image: 7.0-apache. Running apachectl -V

returns Apache/2.4.10 (Debian)

.

Here is the complete log output from the command I ran: https://pastebin.com/MYDY3xwU

+5


source to share


1 answer


I had this exact error.

/tmp/pear/temp/sqlsrv/shared/xplat.h:30:17: fatal error: sql.h: No such file or directory
 #include <sql.h>

      

Obviously, the header file it is looking for is only in the unixODBC-devel package.



I installed this package and was able to complete the build successfully. yum install unixODBC-devel

...

Perhaps the best explanation is here. fooobar.com/questions/407573 / ...

+15


source







All Articles