Building XtraBackup for Mac OSX


The above source was missing some steps which I thought I'd add as a reminder for future installations for anyone missing the same dependencies as I did.

port install libgcrypt libev

If you get the following error as I did on make

percona-xtrabackup-2.4.1/sql/ error: use of undeclared identifier 'yaSSL_ASN1_TIME_to_string'
return yaSSL_ASN1_TIME_to_string(time, buf, len);
[ 98%] Building CXX object sql/CMakeFiles/sql.dir/
1 error generated.
make[2]: *** [sql/CMakeFiles/sql.dir/] Error 1
make[2]: *** Waiting for unfinished jobs....
make[1]: *** [sql/CMakeFiles/sql.dir/all] Error 2
make: *** [all] Error 2

then you can edit ./sql/ and on line 6404 change



#ifdef HAVE_YASSL2

and run make again, done!


Popular posts from this blog

How to compile Percona XtraDB Cluster 5.6 on Ubuntu 14.04 Trusty Tahr

My custom optimized build of PHP 5.5 & PHP 5.4