<div dir="ltr">I am attempting to create my own docker image on Centos 7.  During the build, I get the following error message during the "make all" phase.<div>----------------------------------------------------------------------</div><div>CC (gcc) [kamailio]             core/cfg.tab.o<br>LD (gcc) [kamailio]             kamailio<br>make[1]: which: Command not found<br>make[1]: which: Command not found<br>make[1]: which: Command not found<br>make[1]: which: Command not found<br>make[1]: which: Command not found<br>make[1]: which: Command not found<br>CC (gcc) [M db_mysql.so]                km_dbase.o<br>km_dbase.c:36:19: fatal error: mysql.h: No such file or directory<br> #include <mysql.h><br>                   ^<br>compilation terminated.<br>make[1]: *** [km_dbase.o] Error 1<br>make: *** [modules] Error 1</div><div>------------------------------------------------------------------------</div><div><br></div><div>I checked and the mysql.h exists in the /usr/include/mysql directory.</div><div><br></div><div>Any thoughts?</div><div><br></div><div>FYI, here is my Dockerfile</div><div><br></div><div>FROM centos:7<br>MAINTAINER “Sam D Ware” <a href="mailto:sware@o1.com">sware@o1.com</a><br>ENV container docker<br>RUN (cd /lib/systemd/system/sysinit.target.wants/; for i in ; do [ $i == systemd-tmpfiles-setup.service ] || rm -f $i; done);<br>RUN rm -rf /lib/systemd/system/multi-user.target.wants/ \<br>    && rm -rf /etc/systemd/system/.wants/ \<br>    && rm -rf /lib/systemd/system/local-fs.target.wants/ \<br>    && rm -f /lib/systemd/system/sockets.target.wants/udev \<br>    && rm -f /lib/systemd/system/sockets.target.wants/initctl \<br>    && rm -rf /lib/systemd/system/basic.target.wants/ \<br>    && rm -f /lib/systemd/system/anaconda.target.wants/*<br>VOLUME [ “/sys/fs/cgroup”]<br>RUN yum -y install epel-release<br>RUN yum -y update<br>RUN yum -y install git-core gcc gcc-c++ flex bison mysql-devel<br>RUN yum -y install mariadb-devel hiredis hiredis-devel curl nss make<br>WORKDIR /usr/local/src/<br>RUN git clone --depth 1 --no-single-branch <a href="https://github.com/kamailio/kamailio">https://github.com/kamailio/kamailio</a> kamailio  <br>WORKDIR /usr/local/src/kamailio/  <br>RUN git checkout -b 5.3 origin/5.3<br>RUN make cfg<br>COPY modules.lst /usr/local/src/kamailio/src/ <br>RUN make all<br>RUN make install<br>RUN groupadd kamailio<br>RUN adduser --system -g kamailio --shell /bin/false -c "Kamailio" --home /var/run/kamailio kamailio<br>RUN cp /usr/local/src/kamailio/pkg/kamailio/obs/kamailio.sysconfig /etc/sysconfig/kamailio<br>COPY kamailio.service /etc/systemd/system/kamailio.service<br>RUN yum clean all; systemctl enable kamailio<br>CMD ["/usr/sbin/init"]<br clear="all"><div><br></div>-- <br><div dir="ltr" class="gmail_signature" data-smartmail="gmail_signature">Sam  D Ware<br><br></div></div></div>