FindPostgreSQL.cmake won't work on ubuntu

前端 未结 4 1396
抹茶落季
抹茶落季 2021-02-07 14:44
  • Ubuntu 12.04
  • CMake 2.8.9
  • Postgresql 9.2.2

I\'m trying to get the FindPostgreSQL module to find /usr/include/postgre

4条回答
  •  猫巷女王i
    2021-02-07 15:20

    Make sure you've installed both libpq-dev\ and postgresql-server-dev-all (or specific version e.g. postgresql-server-dev-9.4)

    $ dpkg --get-selections | grep -e "libpq-dev\|postgresql-server-dev"
    

    in case you're missing some package

    apt-get install libpq-dev postgresql-server-dev-all
    

    should fix it.

提交回复
热议问题