-
-
Save parsibox/e5cf0ee4bffe2bf5f215668e52294952 to your computer and use it in GitHub Desktop.
| yum install -y openssl-devel libxml2-devel texlive-* m4 gcc-c++ make | |
| yum-config-manager --disable mysql80-community | |
| yum-config-manager --enable mysql57-community | |
| yum install -y mysql-devel | |
| https://blog.onesconsultants.com/2018/08/how-to-install-kannel-in-centos-7.html | |
| need bison ==2.7 | |
| mkdir /var/www/ | |
| mkdir /var/www/kannel | |
| cd /var/www/kannel | |
| wget https://ftp.gnu.org/gnu/bison/bison-2.7.tar.gz | |
| tar zxvf bison-2.7.tar.gz && cd bison-2.7 && ./configure && make && make install && cd src | |
| rm -rf /usr/local/bin/bison | |
| rm -rf /usr/bin/bison | |
| cp bison /usr/local/bin/bison && cp bison /usr/bin/bison | |
| cd .. && cd .. && rm -rf bison-2.7.tar.gz bison-2.7 | |
| cd /var/www/kannel | |
| wget --no-check-certificate https://www.kannel.org/download/1.4.5/gateway-1.4.5.zip | |
| unzip gateway-1.4.5.zip | |
| rm -rf gateway-1.4.5.zip | |
| mv gateway-1.4.5 gateway | |
| cd gateway/ | |
| ./configure --enable-localtime --prefix=/var/www/kannel --with-mysql --with-mysql-dir=/usr/lib/mysql/ --enable-debug --enable-assertions --with-defaults=speed --disable-localtime --enable-start-stop-daemon --enable-pam | |
| sudo make | |
| sudo make install | |
| sudo mkdir /var/www/kannel/logs | |
| mysql -uroot -p kannel < /var/www/kannel/kannel.sql |
you did not install mysql-devel
./configure --enable-localtime --prefix=/usr/local/gateway-1.4.5 --with-mysql --with-mysql-dir=/usr/lib/mysql/ --enable-debug --enable-assertions --with-defaults=speed --disable-localtime --enable-start-stop-daemon --enable-pam
Getting This error : Configuring DB support ... checking whether to compile with MySQL support... searching checking for mysql_config... no checking for MySQL client support in... /usr checking for "/usr/include/mysql/mysql.h"... no checking for "/usr/include/mysql.h"... no checking for MySQL client support in... /usr/local checking for "/usr/local/include/mysql/mysql.h"... no checking for "/usr/local/include/mysql.h"... no configure: error: Unable to find mysql.h, please provide a --with-mysql-dir=
location
you did not install mysql-devel
./configure --enable-localtime --prefix=/usr/local/gateway-1.4.5 --with-mysql --with-mysql-dir=/usr/lib/mysql/ --enable-debug --enable-assertions --with-defaults=speed --disable-localtime --enable-start-stop-daemon --enable-pam
Getting This error :
locationConfiguring DB support ...
checking whether to compile with MySQL support... searching
checking for mysql_config... no
checking for MySQL client support in... /usr
checking for "/usr/include/mysql/mysql.h"... no
checking for "/usr/include/mysql.h"... no
checking for MySQL client support in... /usr/local
checking for "/usr/local/include/mysql/mysql.h"... no
checking for "/usr/local/include/mysql.h"... no
configure: error: Unable to find mysql.h, please provide a --with-mysql-dir=