caiwang / board2ihost

0 stars 0 forks source link

chilli 不启动 #63

Open unissoft-bj opened 9 years ago

unissoft-bj commented 9 years ago

按正常步骤生成coova-chilli_1.3.0_armhf.deb,安装,不能正常启动 sysylog或者chilli --fg --debug 报错: redir.c: 1708: 92 (Protocol not available) setsockopt(SO_REUSEPORT) 类似问题:http://talk.radxa.com/topic/475/solved-setsockopt-with-so_reuseport-doesn-t-work-on-linux-kernel-3-0-36

google搜索发现 coova github上的changlelog == ChangeLog (CoovaChilli-v1.3.1 git2763bb5) == Now SO_REUSEPORT socket flag is checked at runtime

操作

cd /usr/src/coova.test/

git clone https://github.com/coova/coova-chilli.git

apt-get install -y libtool automake autoconf gengetopt

cd coova-chilli

root@ihost:/usr/src/coova.test/coova-chilli# sh bootstrap libtoolize: putting auxiliary files in .'. libtoolize: copying file./ltmain.sh' libtoolize: putting macros in AC_CONFIG_MACRO_DIR, m4'. libtoolize: copying filem4/libtool.m4' libtoolize: copying file m4/ltoptions.m4' libtoolize: copying filem4/ltsugar.m4' libtoolize: copying file m4/ltversion.m4' libtoolize: copying filem4/lt~obsolete.m4' configure.ac:15: installing './compile' configure.ac:19: installing './config.guess' configure.ac:8: installing './install-sh' configure.ac:8: installing './missing' bstring/Makefile.am: installing './depcomp' root@ihost:/usr/src/coova-chilli#

./configure --prefix=/usr --mandir=\$${prefix}/share/man --infodir=\$${prefix}/share/info \ --sysconfdir=/etc --localstatedir=/var --enable-largelimits \ --enable-binstatusfile --enable-statusfile --enable-chilliproxy \ --enable-chilliradsec --enable-chilliredir --with-openssl --with-curl \ --with-poll --enable-dhcpopt --enable-sessgarden --enable-dnslog \ --enable-ipwhitelist --enable-redirdnsreq --enable-miniconfig \ --enable-libjson --enable-layer3 --enable-proxyvsa --enable-miniportal \ --enable-chilliscript --enable-eapol --enable-uamdomainfile \ --enable-modules --enable-multiroute

dpkg-buildpackage -us -uc -d

cd ..

root@ihost:/usr/src/coova.test# dpkg -i coova-chilli_1.3.0_armhf.deb (Reading database ... 34995 files and directories currently installed.) Preparing to unpack coova-chilli_1.3.0_armhf.deb ... Shutting down chilli: No process in pidfile '/var/run/chilli.pid' found running; none killed.

Unpacking coova-chilli (1.3.0) over (1.3.0) ... dpkg: dependency problems prevent configuration of coova-chilli: coova-chilli depends on haserl; however: Package haserl is not installed.

dpkg: error processing package coova-chilli (--install): dependency problems - leaving unconfigured Processing triggers for man-db (2.6.7.1-1) ... Processing triggers for ureadahead (0.100.0-16) ... Errors were encountered while processing: coova-chilli root@ihost:/usr/src/coova.test#

此时再启动chilli chilli --fg -d 正常

service chilli start 正常(屏幕上多出几行信息)

version

root@ihost:~# chilli --version coova-chilli[1707]: (Re)processing options [/var/run/chilli.1707.cfg.bin] coova-chilli[1708]: running chilli_opt on /var/run/chilli.1707.cfg.bin coova-chilli 1.3.1-svn root@ihost:~#

harsel

coova-chilli 1.3.1-svn 似乎不用单独装harsel。root@ihost:/usr/src/coova.test# dpkg -i coova-chilli_1.3.0_armhf.deb 之后,harsel就可以使用了