Skip to content

Instantly share code, notes, and snippets.

@kamermans
Created January 22, 2012 20:28
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save kamermans/1658660 to your computer and use it in GitHub Desktop.
Save kamermans/1658660 to your computer and use it in GitHub Desktop.
Install MySQL PCRE (Perl-Compatible Regular Expression) UDF on Amazon Linux / CentOS / RedHat / Fedora
#!/bin/bash -e
# UDF Documentation: http://www.mysqludf.org/lib_mysqludf_preg/
yum -y install pcre-devel gcc make automake mysql-devel
wget http://www.mysqludf.org/lib_mysqludf_preg/lib_mysqludf_preg-1.0.1.tar.gz
tar -zxvf lib_mysqludf_preg-1.0.1.tar.gz
cd lib_mysqludf_preg-1.0.1
./configure
make install
echo "You'll need to enter your MySQL password a few times to install the UDFs and test them"
mysql -p < installdb.sql
make test
@santushet
Copy link

santushet commented May 13, 2016

@cakyus
Copy link

cakyus commented Feb 8, 2018

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment