Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1febdca

Browse files
committed
Added support for takeover functionalities on PgSQL 8.4 running on Linux too.
Recompilation of MySQL shared object with MySQL 5.1 development libraries on Debian 5.3. Tweaked the UDF compilation/installation files for both MySQL and PgSQL.
1 parent d4d26b5 commit 1febdca

6 files changed

Lines changed: 7 additions & 4 deletions

File tree

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
1+
# For MySQL < 5.1
12
LIBDIR=/usr/lib
3+
# For MySQL >= 5.1
4+
#LIBDIR=/usr/lib/mysql/plugin
25

36
install:
47
gcc -Wall -I/usr/include/mysql -O1 -shared lib_mysqludf_sys.c -o lib_mysqludf_sys.so
58
strip -sx lib_mysqludf_sys.so
6-
sudo cp -f lib_mysqludf_sys.so $(LIBDIR)/lib_mysqludf_sys.so
9+
cp -f lib_mysqludf_sys.so $(LIBDIR)/lib_mysqludf_sys.so

extra/udfhack/linux/lib_mysqludf_sys/install.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ make
2929
if test $? -ne 0; then
3030
echo "ERROR: You need libmysqlclient development software installed"
3131
echo "to be able to compile this UDF, on Debian/Ubuntu just run:"
32-
echo "apt-get install libmysqlclient15-dev"
32+
echo "apt-get install libmysqlclient-dev"
3333
exit 1
3434
else
3535
echo "MySQL UDF compiled successfully"

extra/udfhack/linux/lib_postgresqludf_sys/install.sh

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,9 +36,9 @@ if test $? -ne 0; then
3636

3737
if test "${VERSION}" == "8.2"; then
3838
echo "apt-get install postgresql-server-dev-8.2"
39-
else if test "${VERSION}" == "8.3"; then
39+
elif test "${VERSION}" == "8.3"; then
4040
echo "apt-get install postgresql-server-dev-8.3"
41-
else if test "${VERSION}" == "8.4"; then
41+
elif test "${VERSION}" == "8.4"; then
4242
echo "apt-get install postgresql-server-dev-8.4"
4343
fi
4444

-3.66 KB
Binary file not shown.
-964 Bytes
Binary file not shown.
4.41 KB
Binary file not shown.

0 commit comments

Comments
 (0)