How I compiled MariaDB and Phidget drivers
Posted: Sun Jul 29, 2012 5:06 pm
This may seem a bit ridiculous, but both MariaDB (fork of mySQL) and the Phidget interface drivers compile with little pain on Raspbian. I say rediculous because MariaDB eats half of the RAM (in 240/16 mode).
To compile MariaDB I did this (commands executed as root) :
Phidgets :
I am by no means an expert when it comes to Linux, so please correct me if you see something I could do better. Also, I had no idea how to set the compile options for Raspbian.
P.S. These are just cleaned up commands from my .bash_history.
To compile MariaDB I did this (commands executed as root) :
Code: Select all
wget "http://downloads.mariadb.org/f/mariadb-5.5.25/kvm-tarbake-jaunty-x86/mariadb-5.5.25.tar.gz/from/http:/download.nus.edu.sg/mirror/mariadb"
tar -xvf mariadb
mv mariadb-5.5.25 maria
cd maria/BUILD
./autorun.sh
cd ..
aptitude install cmake libncurses5-dev bison
./configure
make
make install
adduser mysql
chown -R mysql /usr/local/mysql
cd /usr/local/mysql
scripts/mysql_install_db --user=mysql
cp support-files/mysql.server /etc/init.d/mysqld
/etc/init.d/mysqld start
./bin/mysql_secure_installation
Code: Select all
wget "http://www.phidgets.com/downloads/libraries/libphidget_2.1.8.20120716.tar.gz"
tar -xvf libphidget_2.1.8.20120716.tar.gz
mv libphidget-2.1.8.20120716 libphi
cd libphi
apt-get install libusb-dev
./configure
make
make install
P.S. These are just cleaned up commands from my .bash_history.