coova / coova-chilli

CoovaChilli is an open-source software access controller for captive portal hotspots.
Other
518 stars 260 forks source link

Compilation error in Centos 7.1 with nfcoova #187

Closed drkhosla closed 8 years ago

drkhosla commented 8 years ago

When I try to compile coova-chilli with option --with-nfcoova I get following error.

Making all in src
make[2]: Entering directory `/root/coova-chilli/src'
Making all in linux
make[3]: Entering directory `/root/coova-chilli/src/linux'
make -C /usr/src/linux-headers-3.10.0-229.20.1.el7.x86_64 M=$PWD;
make: Entering an unknown directory
make: *** /usr/src/linux-headers-3.10.0-229.20.1.el7.x86_64: No such file or directory.  Stop.
make: Leaving an unknown directory
make[3]: *** [all] Error 2
make[3]: Leaving directory `/root/coova-chilli/src/linux'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/root/coova-chilli/src'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/root/coova-chilli'
make: *** [all] Error 2

In Centos 7.1 I think there is no linux-headers, it is kernel-headers.

./configure --prefix=/usr --exec-prefix=/usr --sysconfdir=/etc --localstatedir=/var --libdir=/usr/lib64 --enable-largelimits --enable-chilliredir --enable-chilliproxy --enable-chilliscript --with-poll --enable-libjson --with-openssl --enable-chilliradsec --enable-layer3 --enable-redirinject --enable-useragent --enable-proxyvsa --enable-gardenext --enable-ipwhitelist --enable-uamdomainfile --enable-location --with-nfcoova
sevan commented 8 years ago

Edit src/linux/Makefile& amend accordingly