【问题标题】:Where is libpq-fe.h on a Travis-CI instance?Travis-CI 实例上的 libpq-fe.h 在哪里?
【发布时间】:2015-04-25 15:20:22
【问题描述】:

我正在尝试构建一个 postgres 数据库适配器 (luapgsql) 作为我设置的一部分:

install:
  - sudo luarocks install --server=http://rocks.moonscript.org/dev luapgsql

但是构建找不到libpq-fe.h

Error: Could not find expected file libpq-fe.h, or libpq-fe.h for PQ --
you may have to install PQ in your system and/or pass PQ_DIR or
PQ_INCDIR to the luarocks command. Example: luarocks install luapgsql
PQ_DIR=/usr/local

我已经尝试了上面的建议,apt-get install libpq-devfind \ -name libpq-fe.h。到目前为止没有运气。有什么想法吗?

【问题讨论】:

    标签: postgresql travis-ci


    【解决方案1】:

    事实证明,将pg_config 作为install: 的一部分运行就是答案。我可以读取日志中的输出。

    最后,对我在 travis 上安装 luapgsql 有用的行是:

    sudo luarocks install --server=http://rocks.moonscript.org/dev luapgsql PQ_INCDIR=/usr/include/postgresql PQ_LIBDIR=/usr/lib/x86_64-linux-gnu
    

    【讨论】:

      猜你喜欢
      • 2020-03-16
      • 1970-01-01
      • 1970-01-01
      • 2016-11-28
      • 2012-10-16
      • 1970-01-01
      • 1970-01-01
      • 2010-11-17
      相关资源
      最近更新 更多