debianでzncいれてみる
なんか現在のところ、pkgにそれっぽいもの見つけられなかったし、なんかあっても古いversionしかないって情報をどっかで見たので、本家から落としてきていれることに。
あらかじめ必要っぽいものを入れておく
sudo apt-get install build-essential sudo apt-get install libssl-dev sudo apt-get install libperl-dev sudo apt-get install pkg-config sudo apt-get install libc-ares-dev
最新版おとしてくる
wget http://znc.in/releases/znc-0.206.tar.gz tar zxvf znc-0.206.tar.gz ./configure –enable-extra –-enable-perl –-disable-ipv6
なんかエラーでた
... ... checking for swig... no checking for swig2.0... no configure: WARNING: SWIG is not installed. You should look at http://www.swig.org configure: error: swig was not found. Try --disable-perl --disable-python, or download the necessary sources and use --disable-swig. Please check http://en.znc.in/wiki/Modperl or http://en.znc.in/wiki/Modpython for details.
メッセージにあるとおり、
Modperl - ZNC
ここを開くと、
First, you need to use ./configure with option --enable-perl.
To build modperl, you need some files produced by SWIG. They are not shipped with ZNC because of huge size (several megabytes). There're 2 ways to get them:
Install swig. Needed files will be generated automatically when you run make in znc source dir to compile znc.
Download and unpack these files to/modules/modperl/ (ZNC.pm and modperl.i should be in the same dir), and add option --disable-swig to ./configure
なんてことを言われるので、言われた通りにする。
http://people.znc.in/~darthgandalf/znc/modperl/modperl-znc-0.204.tar.bz2 tar jxf modperl-znc-0.204.tar.bz2
解答してできたものを、zncの解答したdir/modules/modperl/ に移動すればok
configureやりなおし
./configure --enable-extra --disable-ipv6 --disable-swig --enable-perl make make install
続いて、confファイルを作る
znc --makeconf と実行すると、対話的にconfファイルを作れて便利
nickとか、IRC serverとか入力するとして、module系はあとでいれればいいので、今は適当に、default多めにエンター
[ ?? ] What port would you like ZNC to listen on? (1025 to 65535): 6668 //ポート [ ?? ] Username (AlphaNumeric): ryoff [ ?? ] IRC server (host only): irc.hogehoge [ ?? ] Launch ZNC now? (yes/no) [yes]: no
最後に、このまま起動するか? って聞かれるので、とりあえず、noにしておく
confができているので確認する
vim ~/.znc/configs/znc.conf 1 // WARNING 2 // 3 // Do NOT edit this file while ZNC is running! 4 // Use webadmin or *admin instead. 5 // 6 // Buf if you feel risky, you might want to read help on /znc saveconfig and /znc rehash. 7 // Also check http://en.znc.in/wiki/Configuration 8 9 Listener4 = 6668 10 11 <User ryoff> 12 Pass = *** 13 Nick = ryoff 14 AltNick = ryoff 15 Ident = ryoff 16 RealName = Got ZNC? 17 Buffer = 100 18 KeepBuffer = false 19 ChanModes = +n 20 21 Server = irc.hogehoge 22 23 <Chan #hogefuga> 24 </Chan> 25 </User>