Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

FreeBSD 11.1 install error (libconfig.h) #117

Open
kirush0280 opened this issue Apr 11, 2018 · 3 comments
Open

FreeBSD 11.1 install error (libconfig.h) #117

kirush0280 opened this issue Apr 11, 2018 · 3 comments

Comments

@kirush0280
Copy link

checking libconfig.h usability... no
checking libconfig.h presence... no
checking for libconfig.h... no
configure: error: "Unable to locate libconfig development headers."

pkg info | grep libconfig

libconfig-1.4.9_1 Simple library for manipulating structured configuration files

pkg search libconfig

libconfig-1.4.9_1 Simple library for manipulating structured configuration files
wand-libconfig-1.0.5_1 C library for parsing config files

uname -a

FreeBSD mysql 11.1-RELEASE FreeBSD 11.1-RELEASE #0 r321309: Fri Jul 21 02:08:28 UTC 2017 [email protected]:/usr/obj/usr/src/sys/GENERIC amd64

What package I need to add?

@cavaliercoder
Copy link
Collaborator

I'm not familiar with FreeBSD, but typically there are additional packages containing source headers. For example, RedHat uses libconfig-devel, Debian uses libconfig-dev. I don't see anything to this effect in your pkg search libconfig output though...

@cavaliercoder
Copy link
Collaborator

Alternatively, you could just download the libconfig source tarball, extract it somewhere and pass the location to your ./configure script.

@thechile
Copy link

hi @cavaliercoder @kirush0280

I just installed this on FreeBSD 12.x and had same problem... here is my solution for Zabbix 4.x which works well for me so far.

grab the precious
wget http://cdn.cavaliercoder.com/libzbxpgsql/libzbxpgsql-1.1.0.tar.gz
tar xzvf libzbxpgsql-1.1.0.tar.gz
unpack zabbix source from ports
cd /usr/ports/net-mgmt/zabbix4-server/
make fetch extract
mmm how to improve ?

i don't know how to include module.h in the ./configure search path so just added it where it was looking for it.

cd /usr/ports/net-mgmt/zabbix4-server/
ln -s work/zabbix-4.0.3/include/module.h .
compile time
cd /path/to/libzbxpgsql
./configure --with-zabbix=/usr/ports/net-mgmt/zabbix4-server/ CFLAGS="-I/usr/local/include" LDFLAGS="-L/usr/local/lib"
make && sudo make install
fixup zabbix
mkdir /usr/local/etc/zabbix4/modules
cp  /usr/local/lib/libzbxpgsql.so /usr/local/etc/zabbix4/modules/
vim /usr/local/etc/zabbix4/zabbix_agentd.conf
LoadModulePath  =   /usr/local/etc/zabbix4/modules
LoadModule      =   libzbxpgsql.so

@cavaliercoder question about /usr/local/etc/zabbix/libzbxpgsql.conf.. is it a fixed path ? The agent failed to start because this was missing. I just created an empty file here and it's fine but how can i change this path to be in /usr/local/etc/zabbix4/ and fit with the rest of freebsd ?

Thanks,

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants