On 06/01/17 17:44, usa ims wrote:
Hi,
I installed the Postgres libraries, it is located at:
usr/lib64/libpqxx.a
usr/lib64/libpqxx.la
In FindPostgreSQL.cmake it says:
# You may need to manually set:
# PostgreSQL_INCLUDE_DIR - the path to where the PostgreSQL include
files are.
This is also required, to compile against, it is mostly located at
/usr/include/pgsql/ and contains the header files for c compiling
# PostgreSQL_LIBRARY_DIR - The path to where the PostgreSQL library
files are.
# If FindPostgreSQL.cmake cannot find the include files or the library
files.
so I set PostgreSQL_LIBRARY_DIR
# PostgreSQL_LIBRARY_DIR=/usr/lib64
For verfication, I echoed it in the command line
root@IcingaHQ:~/icinga2-2.6.0/build# echo $PostgreSQL_LIBRARY_DIR
/usr/lib64
When I run 'cmake .. -DICINGA2_WITH_PGSQL=ON'
I get
-- Could NOT find PostgreSQL (missing: PostgreSQL_LIBRARY)
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.
-- Configuring incomplete, errors occurred!
See also "/root/icinga2-2.6.0/build/CMakeFiles/CMakeOutput.log".
See also "/root/icinga2-2.6.0/build/CMakeFiles/CMakeError.log".
But the log files are empty, look at size:
-rwxrwxrwx 1 root root 0 Jan 5 16:34 CMakeError.log*
-rwxrwxrwx 1 root root 0 Jan 5 16:33 CMakeOutput.log*
Any help will be greatly appreciated.
On Tuesday, January 3, 2017 5:02 PM, usa ims <usa...@yahoo.com> 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:~/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.
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users
--
--
Toshaan Bharvani
+32-(0)476-66.70.55
tosh...@vantosh.com
--
__ __ _____ _
\ \ / /_ _ _ _|_ _|__ ___| |__
\ \ / / _` | '_ \| |/ _ \/ __| '_ \
\ V / (_| | | | | | (_) \__ \ | | |
\_/ \__,_|_| |_|_|\___/|___/_| |_|
http://www.vantosh.com
Quinten Matsijslei 38 bus 20
B-2018 Antwerpen, Belgium
--
_______________________________________________
icinga-users mailing list
icinga-users@lists.icinga.org
https://lists.icinga.org/mailman/listinfo/icinga-users