On 05/01/17 22:46, usa ims wrote:
Can you tell me what library file it's looking for so I can manually set
the path? I was able to eliminate the PostgreSQL_INCLUDE_DIR error but
I'm still getting the PostgreSQL_LIBRARY error. I did install the
libraries. Thanks.

You need the devel library, this contains the header files, they tend to be in /usr/include/pgsql/



On Wednesday, January 4, 2017 2:52 PM, Toshaan Bharvani | VanTosh
<tosh...@vantosh.com> wrote:




On 04/01/17 19:52, usa ims wrote:
I did what you told me to do (ICINGA2_WITH_PGSQL=OFF)  thinking that I
can add postgres support after the installation. After I successfully
compiled and started icinga, I created the icinga database and when I
did a 'icinga2 feature enable ido-pgsql' and restarted icinga, I
received the following error:


critical/config: Error: Error while evaluating expression: Could not
load library 'libdb_ido_pgsql.so.2.6.0': libdb_ido_pgsql.so.2.6.0:
cannot open shared object file: No such file or directory
Location: in /usr/local/etc/icinga2/features-enabled/ido-pgsql.conf:
6:1-6:22
/usr/local/etc/icinga2/features-enabled/ido-pgsql.conf(4):  */
/usr/local/etc/icinga2/features-enabled/ido-pgsql.conf(5):
/usr/local/etc/icinga2/features-enabled/ido-pgsql.conf(6): library
"db_ido_pgsql"

 ^^^^^^^^^^^^^^^^^^^^^^
/usr/local/etc/icinga2/features-enabled/ido-pgsql.conf(7):
/usr/local/etc/icinga2/features-enabled/ido-pgsql.conf(8): object
IdoPgsqlConnection "ido-pgsql" {

Any help will be greatly appreciated.
So if you do use the build option ICINGA2_WITH_PGSQL=OFF, you will not
be able to connect to a PostgreSQL, you would be able to connect to a
MySQL based db.
If you do want to use a PostgreSQL db, you will need the postgresql
client devel package of Slackware to build Icinga2 pgsql ido support.




On Wednesday, January 4, 2017 7:22 AM, Toshaan Bharvani | VanTosh
<tosh...@vantosh.com <mailto:tosh...@vantosh.com>> wrote:



On 03/01/17 23:02, usa ims wrote:
Hi,

I'm trying to compile from source Icinga2 on Slackware 14.1.  I followed
the instructions on the INSTALL.md

1. mkdir build && cd build

2. cmake ..

I received a PostgresSQL error that  I do not psql libraries on the
machine. The error is:

-- Could NOT find PostgreSQL (missing:  PostgreSQL_LIBRARY
PostgreSQL_INCLUDE_DIR)
CMake Error at lib/db_ido_pgsql/CMakeLists.txt:71 (message):
 You have selected PostgreSQL support, but PostgreSQL could not be found.
 You can disable the PostgreSQL IDO module using
-DICINGA2_WITH_PGSQL=OFF.

I looked in the CMakeError.log and it indicated this error:



/usr/lib64/gcc/x86_64-slackware-linux/4.8.2/../../../../x86_64-slackware-linux/bin/ld:
cannot find -lexecinfo
collect2: error: ld returned 1 exit status
gmake[1]: *** [cmTryCompileExec4286649564] Error 1

I wanted to find what version of 'ld' that is on this OS,

root@IcingaHQ <mailto:root@IcingaHQ> <mailto:root@IcingaHQ
<mailto:root@IcingaHQ>>:~/icinga2-2.6.0/build/CMakeFiles#

ld --version
GNU ld (Linux/GNU Binutils) 2.23.52.0.1.20130226

I do not know if 'ld' is the issue but I do see the psql files in
lib/db_ido_pgsql of the install directory.

Any help will greatly appreciated.


By default, when you compile Icinga2, the build script will try to build
all default modules, this includes a PostgreSQL IDO and a MySQL IDO, if
you do not have those libraries use the following options when executing
your cmake build

ICINGA2_WITH_PGSQL=OFF

ICINGA2_WITH_MYSQL=OFF
Other values can be found in CMakeList.txt
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users

Reply via email to