This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# extract code (download from mydns-ng site first) | |
cd /tmp | |
tar zxvf mydns-1.2.8.31.tar.gz | |
cd mydns-1.2.8.31 | |
# depeding on your architecture, provide different lib paths | |
if [ -d /usr/lib/x86_64-linux-gnu ] | |
then | |
./configure — with-mysql-lib=/usr/lib/x86_64-linux-gnu — with-zlib=/lib/x86_64-linux-gnu | |
else |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# install needed packages | |
apt-get install build-essential libmysqlclient-dev | |
if [ -d /usr/lib/x86_64-linux-gnu ] | |
then | |
mkdir -p /usr/local/mysql | |
ln -s /usr/lib/x86_64-linux-gnu /usr/local/mysql/lib | |
ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0 /usr/lib/x86_64-linux-gnu/libmysqlclient.so | |
ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient.so.18.0.0 /usr/lib/x86_64-linux-gnu/libmysqlclient.a | |
ln -s /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so.18 /usr/lib/x86_64-linux-gnu/libmysqlclient_r.so |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
/** | |
* | |
* Last version: https://gist.github.com/josecanciani/ff535426bd5d453ef9c2 | |
* | |
* Credits (adapted from): https://gist.github.com/doubleking/6117215 | |
* | |
**/ |
NewerOlder