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

Tips to compile plugin on CentOS 7.6 #71

Open
maretodoric opened this issue Jul 23, 2019 · 0 comments
Open

Tips to compile plugin on CentOS 7.6 #71

maretodoric opened this issue Jul 23, 2019 · 0 comments

Comments

@maretodoric
Copy link

I would like to point out something that would need to be added to Requirements to compile this plugin.
Beside the regular Development Tools (yum groupinstall "Development Tools"), re2c, openldap-devel and openvpn-devel I also needed to install following packages: openssl-devel gcc-objc gcc-objc++
It would not finish "configure" without it.

Also, with above installed, the process to build is next:

mkdir -p /opt/openvpn-ldap-auth
autoconf
autoheader
./configure --prefix=/opt/openvpn-ldap-auth --with-openvpn=/usr/include CFLAGS="-fPIC" OBJCFLAGS="-std=gnu11"

And of course, build directory can be something else if chosen.

I would just like to add since it would be nice to mention it since there is installation procedure and script written specifically for ubuntu, and not CentOS.

Built and tested this on:
CentOS Linux release 7.6.1810 (Core)
gcc (GCC) 4.8.5 20150623 (Red Hat 4.8.5-36)
OpenVPN 2.4.7
OpenSSL 1.0.2
OpenLDAP 2.4.44

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

1 participant