zoukankan      html  css  js  c++  java
  • greenplum 6.7编译安装插件mysql_fdw

    wget https://codeload.github.com/gaos1/mysql_fdw/zip/master
    mv master mysql_fdw-master.zip
    unzip mysql_fdw-master.zip
    cd /opt/gpdb-6.7.0/contrib/
    mv /opt/mysql_fdw-master .
    cd /opt/gpdb-6.7.0/contrib/mysql_fdw-master

    To build on POSIX-compliant systems you need to ensure the pg_config executable is in your path when you run make. This executable is typically in your PostgreSQL installation's bin directory. For example:
    $ export PATH=/usr/local/greenplum-db-6.7.0/bin/:$PATH

    The mysql_config must also be in the path, it resides in the MySQL bin directory.
    $ export PATH=/usr/local/mysql/bin/:$PATH

    Compile the code using make.
    $ make USE_PGXS=1

    Finally install the foreign data wrapper.
    $ make USE_PGXS=1 install

    [root@node1 mysql_fdw-master]# make USE_PGXS=1 install
    /usr/bin/mkdir -p '/usr/local/greenplum-db-6.7.0/lib/postgresql'
    /usr/bin/mkdir -p '/usr/local/greenplum-db-6.7.0/share/postgresql/extension'
    /usr/bin/mkdir -p '/usr/local/greenplum-db-6.7.0/share/postgresql/extension'
    /usr/bin/install -c -m 755 mysql_fdw.so '/usr/local/greenplum-db-6.7.0/lib/postgresql/mysql_fdw.so'
    /usr/bin/install -c -m 644 mysql_fdw.control '/usr/local/greenplum-db-6.7.0/share/postgresql/extension/'
    /usr/bin/install -c -m 644 mysql_fdw--1.0.sql mysql_fdw--1.1.sql mysql_fdw--1.0--1.1.sql '/usr/local/greenplum-db-6.7.0/share/postgresql/extension/'

  • 相关阅读:
    详解java定时任务
    Java之Exception
    Java设计模式
    Java中的static关键字解析
    浅析Java中的final关键字
    深入理解Java的接口和抽象类
    一个故事讲清楚NIO
    Java并发编程:线程池的使用
    Java垃圾回收机制
    ubuntu sublime text 2 破解版
  • 原文地址:https://www.cnblogs.com/zsfishman/p/12740982.html
Copyright © 2011-2022 走看看