diff --git a/extra/udfhack/linux/lib_mysqludf_sys/Makefile b/extra/udfhack/linux/lib_mysqludf_sys/Makefile index 4b15ab590..dfd7b197b 100644 --- a/extra/udfhack/linux/lib_mysqludf_sys/Makefile +++ b/extra/udfhack/linux/lib_mysqludf_sys/Makefile @@ -1,6 +1,9 @@ +# For MySQL < 5.1 LIBDIR=/usr/lib +# For MySQL >= 5.1 +#LIBDIR=/usr/lib/mysql/plugin install: gcc -Wall -I/usr/include/mysql -O1 -shared lib_mysqludf_sys.c -o lib_mysqludf_sys.so strip -sx lib_mysqludf_sys.so - sudo cp -f lib_mysqludf_sys.so $(LIBDIR)/lib_mysqludf_sys.so + cp -f lib_mysqludf_sys.so $(LIBDIR)/lib_mysqludf_sys.so diff --git a/extra/udfhack/linux/lib_mysqludf_sys/install.sh b/extra/udfhack/linux/lib_mysqludf_sys/install.sh index 64ad271a4..ff1080da9 100755 --- a/extra/udfhack/linux/lib_mysqludf_sys/install.sh +++ b/extra/udfhack/linux/lib_mysqludf_sys/install.sh @@ -29,7 +29,7 @@ make if test $? -ne 0; then echo "ERROR: You need libmysqlclient development software installed" echo "to be able to compile this UDF, on Debian/Ubuntu just run:" - echo "apt-get install libmysqlclient15-dev" + echo "apt-get install libmysqlclient-dev" exit 1 else echo "MySQL UDF compiled successfully" diff --git a/extra/udfhack/linux/lib_postgresqludf_sys/install.sh b/extra/udfhack/linux/lib_postgresqludf_sys/install.sh index ed636efcb..53ee1f019 100755 --- a/extra/udfhack/linux/lib_postgresqludf_sys/install.sh +++ b/extra/udfhack/linux/lib_postgresqludf_sys/install.sh @@ -36,9 +36,9 @@ if test $? -ne 0; then if test "${VERSION}" == "8.2"; then echo "apt-get install postgresql-server-dev-8.2" - else if test "${VERSION}" == "8.3"; then + elif test "${VERSION}" == "8.3"; then echo "apt-get install postgresql-server-dev-8.3" - else if test "${VERSION}" == "8.4"; then + elif test "${VERSION}" == "8.4"; then echo "apt-get install postgresql-server-dev-8.4" fi diff --git a/udf/mysql/linux/lib_mysqludf_sys.so b/udf/mysql/linux/lib_mysqludf_sys.so index 699065da3..422bd2c4f 100755 Binary files a/udf/mysql/linux/lib_mysqludf_sys.so and b/udf/mysql/linux/lib_mysqludf_sys.so differ diff --git a/udf/postgresql/linux/8.3/lib_postgresqludf_sys.so b/udf/postgresql/linux/8.3/lib_postgresqludf_sys.so index bb7cfa39c..3b7cebe1c 100755 Binary files a/udf/postgresql/linux/8.3/lib_postgresqludf_sys.so and b/udf/postgresql/linux/8.3/lib_postgresqludf_sys.so differ diff --git a/udf/postgresql/linux/8.4/lib_postgresqludf_sys.so b/udf/postgresql/linux/8.4/lib_postgresqludf_sys.so new file mode 100755 index 000000000..7cb3e6ead Binary files /dev/null and b/udf/postgresql/linux/8.4/lib_postgresqludf_sys.so differ