MariaDB 5.5.47 but cannot Install TokuDB
What I did to get the built in TokuDB was 'remove' mariadb, mariadb.server and reinstall it using the steps here.

This setup even keeps the database files in a different dir rather than /var/lib and it still worked fine as long as you call mysql_upgrade --socket=[your custom socked location]