现在有个需求, 在 mysql里的某个表 ,当新插入记录的时候
,执行这个sql SELECT http_post('http://your_sina_uid:[email protected]/statuses/update.xml?source=1561596835', 'status=Thins is sina weibo test information');括号里的 http 要传入变量?
,执行这个sql SELECT http_post('http://your_sina_uid:[email protected]/statuses/update.xml?source=1561596835', 'status=Thins is sina weibo test information');括号里的 http 要传入变量?
/sbin/ldconfig
wget http://mysql-udf-http.googlecode.com/files/mysql-udf-http-1.0.tar.gz
tar zxvf mysql-udf-http-1.0.tar.gz
cd mysql-udf-http-1.0/
./configure --prefix=/usr/local/webserver/mysql --with-mysql=/usr/local/webserver/mysql/bin/mysql_config
make && make install
cd ../这里有个大问题 的 。 我是rpm安装的 (在线)。
主目录是 /var/lib/mysql 不是上面的 /usr/local/webserver/mysql/b所以我安装的时候死活找不到 -with-mysql=/usr/local/webserver/mysql/bin/mysql_config
请问
./configure --prefix=/usr/local/webserver/mysql --with-mysql=/usr/local/webserver/mysql/bin/mysql_config 这个 命令该如何修改才能执行 ??
ppending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
checking for mysql_config... configure: error: "could not find mysql_config 3"MySQLdb的安装说明,其中一段话"The setup.py script uses mysql_config to find all compiler and linker options"。然后去mysql官网wget了Headers and libraries,应该就是devel rpm包,----------我的mysql 5.045 版本如何找得到 ??
/usr/bin/mysql_config------------------os 能找到 ./configure --prefix=/var/lib/mysql --with-mysql=/usr/bin/mysql_config
checking for a BSD-compatible install... /usr/bin/install -c最后有错误
ree... yes
checking for pkg-config... no
checking for DEPS... configure: error: The pkg-config script could not be found or is too old. Make sure it
is in your PATH or set the PKG_CONFIG environment variable to the full
path to pkg-config.Alternatively, you may set the environment variables DEPS_CFLAGS
and DEPS_LIBS to avoid the need to call pkg-config.
See the pkg-config man page for more details.To get pkg-config, see <http://pkg-config.freedesktop.org/>.
See `config.log' for more details.当前版本是 5.0.45 几乎我强制装上了 rpm -iUvh MySQL-server-community-5.0.45-0.rhel5.i386.rpm
rpm -iUvh MySQL-client-community-5.0.45-0.rhel5.i386.rpm
rpm -iUvh MySQL-devel-community-5.0.45-0.rhel5.i386.rpm
rpm -iUvh MySQL-shared-community-5.0.45-0.rhel5.i386.rpm
rpm -iUvh MySQL-shared-compat-5.0.45-0.rhel5.i386.rpm
还是失败啦