まずはaptitudeで確認、インストール。
# aptitude search weechat i weechat - Fast, light and extensible IRC client i A weechat-common - Common files for WeeChat i A weechat-curses - Fast, light and extensible IRC client i A weechat-plugins - Plugins for WeeChat p weechat-scripts - script collection for the WeeChat IRC client # aptitude install weechat
バージョンを確認すると0.2.6だ。このバーションにはiso-2022-jpが化けるというバグがあるらしいので、apritude経由で導入したweechatは使えないな。まぁ今時iso-2022-jpを使うなという気もしますが。ではbackportを使うのがいいかというとそうでも無いと思う。backport-stableとstableの混在はunstableよりも危険なので(libcとかアップグレードされたらどうすんだという話)。ということで、自前でコンパイルしましょう。
$ mkdir tmp $ cd tmp $ wget 'http://www.weechat.org/files/src/weechat-0.3.0.tar.bz2' $ tar jxf weechat-0.3.0.tar.bz2 $ cd weechat-0.3.0/
解凍されたファイルを確認するとINSTALLがあるのでこいつを読む。
$ less INSTALL WeeChat Installation instructions ================================= You can build WeeChat with cmake (recommended way) or autotools. With cmake ---------- ------------------------------------------------------------------ mkdir build cd build cmake .. -DPREFIX=/where/you/want/install -DCMAKE_BUILD_TYPE=Debug make make install (as root for installation in system directories) ------------------------------------------------------------------ With autotools -------------- ---------------------------------------------------------------------- ./autogen.sh (for cloned git repository only, not .tar.XX package) ./configure --prefix=/where/you/want/install make make install (as root for installation in system directories) ---------------------------------------------------------------------- If you want to report bugs/crashs to developers, please: - compile with debug info (type "Debug" for cmake build, default for autotools), - enable core files (for bash shell, add "ulimit -c unlimited" to your ~/.bashrc). See AUTHORS for support, feel free to contact us for any problem.
どうやらtarファイルからインストールするにはcmakeが必要らしいので導入する。
$ su - Password: # aptitude search cmake p cmake - A cross-platform, open-source make system p icmake - Intelligent C-like MAKEr, or the ICce MAKE utility # aptitude install cmake Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done The following NEW packages will be installed: cmake 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 6888kB of archives. After unpacking 17.7MB will be used. Writing extended state information... Done Get:1 http://ftp.jp.debian.org lenny/main cmake 2.6.0-6 [6888kB] Fetched 6888kB in 10s (642kB/s) Selecting previously deselected package cmake. (Reading database ... 57513 files and directories currently installed.) Unpacking cmake (from .../cmake_2.6.0-6_i386.deb) ... Processing triggers for man-db ... Setting up cmake (2.6.0-6) ... install/cmake: Byte-compiling for emacs22 Wrote /usr/share/emacs22/site-lisp/cmake/cmake-mode.elc Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done # exit logout
後はINSTALLのガイドに従ってインストールする。自分でコンパイルしたプログラムのパスは/usr/localにしている。これは私のルール。
$ mkdir build $ cd build/ $ cmake .. -DPREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug -- The C compiler identification is GNU -- The CXX compiler identification is GNU -- Check for working C compiler: /usr/bin/gcc -- Check for working C compiler: /usr/bin/gcc -- works -- Detecting C compiler ABI info -- Detecting C compiler ABI info - done -- Check for working CXX compiler: /usr/bin/c++ -- Check for working CXX compiler: /usr/bin/c++ -- works -- Detecting CXX compiler ABI info -- Detecting CXX compiler ABI info - done -- Looking for include files HAVE_ARPA_INET_H -- Looking for include files HAVE_ARPA_INET_H - found -- Looking for include files HAVE_LIMITS_H -- Looking for include files HAVE_LIMITS_H - found -- Looking for include files HAVE_LOCALE_H -- Looking for include files HAVE_LOCALE_H - found -- Looking for include files HAVE_NETDB_H -- Looking for include files HAVE_NETDB_H - found -- Looking for include files HAVE_NETINET_IN_H -- Looking for include files HAVE_NETINET_IN_H - found -- Looking for include files HAVE_STDLIB_H -- Looking for include files HAVE_STDLIB_H - found -- Looking for include files HAVE_STRING_H -- Looking for include files HAVE_STRING_H - found -- Looking for include files HAVE_SYS_SOCKET_H -- Looking for include files HAVE_SYS_SOCKET_H - found -- Looking for include files HAVE_SYS_TIME_H -- Looking for include files HAVE_SYS_TIME_H - found -- Looking for include files HAVE_SYS_TYPES_H -- Looking for include files HAVE_SYS_TYPES_H - found -- Looking for include files HAVE_UNISTD_H -- Looking for include files HAVE_UNISTD_H - found -- Looking for include files HAVE_PWD_H -- Looking for include files HAVE_PWD_H - found -- Looking for include files HAVE_ERRNO_H -- Looking for include files HAVE_ERRNO_H - found -- Looking for include files HAVE_WCHAR_H -- Looking for include files HAVE_WCHAR_H - found -- Looking for include files HAVE_LANGINFO_CODESET -- Looking for include files HAVE_LANGINFO_CODESET - found -- Looking for gethostbyname -- Looking for gethostbyname - found -- Looking for gethostname -- Looking for gethostname - found -- Looking for getsockname -- Looking for getsockname - found -- Looking for gettimeofday -- Looking for gettimeofday - found -- Looking for inet_ntoa -- Looking for inet_ntoa - found -- Looking for memset -- Looking for memset - found -- Looking for mkdir -- Looking for mkdir - found -- Looking for select -- Looking for select - found -- Looking for setlocale -- Looking for setlocale - found -- Looking for socket -- Looking for socket - found -- Looking for strcasecmp -- Looking for strcasecmp - found -- Looking for strchr -- Looking for strchr - found -- Looking for strdup -- Looking for strdup - found -- Looking for strndup -- Looking for strndup - found -- Looking for strncasecmp -- Looking for strncasecmp - found -- Looking for strpbrk -- Looking for strpbrk - found -- Looking for strrchr -- Looking for strrchr - found -- Looking for strstr -- Looking for strstr - found -- Looking for include files HAVE_LIBINTL_H -- Looking for include files HAVE_LIBINTL_H - found -- Looking for dgettext -- Looking for dgettext - found Package gnutls was not found in the pkg-config search path. Perhaps you should add the directory containing `gnutls.pc' to the PKG_CONFIG_PATH environment variable No package 'gnutls' found Package gnutls was not found in the pkg-config search path. Perhaps you should add the directory containing `gnutls.pc' to the PKG_CONFIG_PATH environment variable No package 'gnutls' found -- Looking for iconv_open -- Looking for iconv_open - found -- Performing Test ICONV_2ARG_IS_CONST -- Performing Test ICONV_2ARG_IS_CONST - Failed -- Looking for include files HAVE_SYS_FILE_H -- Looking for include files HAVE_SYS_FILE_H - found -- Looking for flock -- Looking for flock - found -- Looking for backtrace -- Looking for backtrace - found -- Looking for include files HAVE_REGEX_H -- Looking for include files HAVE_REGEX_H - found -- Looking for regexec -- Looking for regexec - found -- Could NOT find Tclsh -- Looking for include files NCURSESW_HEADERS -- Looking for include files NCURSESW_HEADERS - not found. -- Looking for include files NCURSES_HEADERS -- Looking for include files NCURSES_HEADERS - found -- Configuring done -- Generating done -- Build files have been written to: /***********/weechat-0.3.0/build
gnutlsが無いといわれたので探す。前にaptitudeからweechatをインストールしているんだから、足りないのはヘッダーファイルだろうと思う。多分gnutls-devとかlibgnutls-devだろうな。
$ su - Password: # aptitude search gnutls p gnutls-bin - the GNU TLS library - commandline utilities v gnutls-dev - p gnutls-doc - the GNU TLS library - documentation and examples p guile-gnutls - the GNU TLS library - GNU Guile bindings p libapache2-mod-gnutls- Apache2 module for SSL and TLS encryption using GnuTLS i libcurl3-gnutls - Multi-protocol file transfer library (GnuTLS) v libcurl3-gnutls-dev - p libcurl4-gnutls-dev - Development files and documentation for libcurl (GnuTLS) p libgnutls-dev - the GNU TLS library - development files c libgnutls13 - the GNU TLS library - runtime library i A libgnutls26 - the GNU TLS library - runtime library p libgnutls26-dbg - GNU TLS library - debugger symbols p libneon26-gnutls - An HTTP and WebDAV client library (GnuTLS enabled) p libneon26-gnutls-dbg - Detached symbols for libneon26 (GnuTLS enabled) p libneon26-gnutls-dev - Header and static library files for libneon26 (GnuTLS enabled) p libneon27-gnutls - An HTTP and WebDAV client library (GnuTLS enabled) p libneon27-gnutls-dbg - Detached symbols for libneon27 (GnuTLS enabled) p libneon27-gnutls-dev - Header and static library files for libneon27 (GnuTLS enabled) p libxmlsec1-gnutls - Gnutls engine for the XML security library p python-gnutls - Python wrapper for the GNUTLS library v python2.4-gnutls - v python2.5-gnutls -
安全のためにもう少し確認しておく。せっかくweechatがaptitudeで用意されているのでビルドに必要なパッケージを確認できる。ということで、多分libgnutls-devが正解。でもこれだけたくさん依存パッケージがあるならついでに導入しておく。後々めんどくさいことにならないためにも。
# aptitude build-dep weechat Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done The following NEW packages will be installed: cdbs libaspell-dev libgcrypt11-dev{a} libgnutls-dev libgpg-error-dev{a} libltdl3-dev{a} liblua5.1-0-dev libncursesw5-dev libreadline5-dev{a} libtasn1-3-dev{a} libtool python-dev python2.5-dev{a} ruby ruby1.8{a} ruby1.8-dev 0 packages upgraded, 16 newly installed, 0 to remove and 0 not upgraded. Need to get 6780kB of archives. After unpacking 17.5MB will be used. Do you want to continue? [Y/n/?] y Writing extended state information... Done Get:1 http://ftp.jp.debian.org lenny/main cdbs 0.4.52 [921kB] Get:2 http://ftp.jp.debian.org lenny/main libaspell-dev 0.60.6-1 [49.8kB] Get:3 http://ftp.jp.debian.org lenny/main libgpg-error-dev 1.4-2 [33.6kB] Get:4 http://security.debian.org lenny/updates/main libgnutls-dev 2.4.2-6+lenny2 [539kB] Get:5 http://ftp.jp.debian.org lenny/main libgcrypt11-dev 1.4.1-1 [320kB] Get:6 http://ftp.jp.debian.org lenny/main libtasn1-3-dev 1.4-1 [374kB] Get:7 http://ftp.jp.debian.org lenny/main libreadline5-dev 5.2-3.1 [222kB] Get:8 http://ftp.jp.debian.org lenny/main liblua5.1-0-dev 5.1.3-1 [102kB] Get:9 http://ftp.jp.debian.org lenny/main libncursesw5-dev 5.7+20081213-1 [478kB] Get:10 http://ftp.jp.debian.org lenny/main python2.5-dev 2.5.2-15 [1898kB] Get:11 http://ftp.jp.debian.org lenny/main python-dev 2.5.2-3 [928B] Get:12 http://ftp.jp.debian.org lenny/main ruby1.8 1.8.7.72-3lenny1 [284kB] Get:13 http://ftp.jp.debian.org lenny/main ruby 4.2 [20.6kB] Get:14 http://ftp.jp.debian.org lenny/main ruby1.8-dev 1.8.7.72-3lenny1 [825kB] Get:15 http://security.debian.org lenny/updates/main libltdl3-dev 1.5.26-4+lenny1 [372kB] Get:16 http://security.debian.org lenny/updates/main libtool 1.5.26-4+lenny1 [340kB] Fetched 6780kB in 5s (1258kB/s) Selecting previously deselected package cdbs. (Reading database ... 57917 files and directories currently installed.) Unpacking cdbs (from .../archives/cdbs_0.4.52_all.deb) ... Selecting previously deselected package libaspell-dev. Unpacking libaspell-dev (from .../libaspell-dev_0.60.6-1_i386.deb) ... Selecting previously deselected package libgpg-error-dev. Unpacking libgpg-error-dev (from .../libgpg-error-dev_1.4-2_i386.deb) ... Selecting previously deselected package libgcrypt11-dev. Unpacking libgcrypt11-dev (from .../libgcrypt11-dev_1.4.1-1_i386.deb) ... Selecting previously deselected package libtasn1-3-dev. Unpacking libtasn1-3-dev (from .../libtasn1-3-dev_1.4-1_i386.deb) ... Selecting previously deselected package libgnutls-dev. Unpacking libgnutls-dev (from .../libgnutls-dev_2.4.2-6+lenny2_i386.deb) ... Selecting previously deselected package libltdl3-dev. Unpacking libltdl3-dev (from .../libltdl3-dev_1.5.26-4+lenny1_i386.deb) ... Selecting previously deselected package libreadline5-dev. Unpacking libreadline5-dev (from .../libreadline5-dev_5.2-3.1_i386.deb) ... Selecting previously deselected package liblua5.1-0-dev. Unpacking liblua5.1-0-dev (from .../liblua5.1-0-dev_5.1.3-1_i386.deb) ... Selecting previously deselected package libncursesw5-dev. Unpacking libncursesw5-dev (from .../libncursesw5-dev_5.7+20081213-1_i386.deb) ... Selecting previously deselected package libtool. Unpacking libtool (from .../libtool_1.5.26-4+lenny1_i386.deb) ... Selecting previously deselected package python2.5-dev. Unpacking python2.5-dev (from .../python2.5-dev_2.5.2-15_i386.deb) ... Selecting previously deselected package python-dev. Unpacking python-dev (from .../python-dev_2.5.2-3_all.deb) ... Selecting previously deselected package ruby1.8. Unpacking ruby1.8 (from .../ruby1.8_1.8.7.72-3lenny1_i386.deb) ... Selecting previously deselected package ruby. Unpacking ruby (from .../apt/archives/ruby_4.2_all.deb) ... Selecting previously deselected package ruby1.8-dev. Unpacking ruby1.8-dev (from .../ruby1.8-dev_1.8.7.72-3lenny1_i386.deb) ... Processing triggers for doc-base ... Processing 2 added doc-base file(s)... Processing triggers for man-db ... Setting up cdbs (0.4.52) ... Setting up libaspell-dev (0.60.6-1) ... Setting up libgpg-error-dev (1.4-2) ... Setting up libgcrypt11-dev (1.4.1-1) ... Setting up libtasn1-3-dev (1.4-1) ... Setting up libgnutls-dev (2.4.2-6+lenny2) ... Setting up libltdl3-dev (1.5.26-4+lenny1) ... Setting up libreadline5-dev (5.2-3.1) ... Setting up liblua5.1-0-dev (5.1.3-1) ... Setting up libncursesw5-dev (5.7+20081213-1) ... Setting up libtool (1.5.26-4+lenny1) ... Setting up python2.5-dev (2.5.2-15) ... Setting up python-dev (2.5.2-3) ... Setting up ruby1.8 (1.8.7.72-3lenny1) ... Setting up ruby (4.2) ... Setting up ruby1.8-dev (1.8.7.72-3lenny1) ... Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done # exit logout
で、もう一回cmakeする。
$ cmake .. -DPREFIX=/usr/local -DCMAKE_BUILD_TYPE=Debug -- Could NOT find Tclsh -- Configuring done -- Generating done -- Build files have been written to: /***********/weechat-0.3.0/build
今度はtclshがないといわれる。再度aptitudeで導入。どうやらバージョンを選択しなければいけないようだ。
# aptitude search tclsh v tclsh - # aptitude install tclsh Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done "tclsh" is a virtual package provided by: tcl8.5 tcl8.4 tcl8.3 You must choose one to install. No packages will be installed, upgraded, or removed. 0 packages upgraded, 0 newly installed, 0 to remove and 0 not upgraded. Need to get 0B of archives. After unpacking 0B will be used. Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done
tclshはパッケージ的にはweechat-pluginsが必要としている。たしかに、lennyのweechat-pluginsでは依存パッケージに上げられていなかったが、backportやsqeez、sidでweechat-pluginsを検索してみると、tcl8.4が依存パッケージとして上げられている。そのため、ここではtcl8.4を導入する。
# aptitude install tcl8.4 Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Reading task descriptions... Done The following NEW packages will be installed: tcl8.4 0 packages upgraded, 1 newly installed, 0 to remove and 0 not upgraded. Need to get 1175kB of archives. After unpacking 3297kB will be used. Writing extended state information... Done Get:1 http://ftp.jp.debian.org lenny/main tcl8.4 8.4.19-2 [1175kB] Fetched 1175kB in 2s (539kB/s) Selecting previously deselected package tcl8.4. (Reading database ... 58483 files and directories currently installed.) Unpacking tcl8.4 (from .../tcl8.4_8.4.19-2_i386.deb) ... Processing triggers for man-db ... Setting up tcl8.4 (8.4.19-2) ... Reading package lists... Done Building dependency tree Reading state information... Done Reading extended state information Initializing package states... Done Writing extended state information... Done Reading task descriptions... Done # exit logout
で、再度cmake。これでエラー無く終了。
$ cmake .. -DPREFIX=/usr/local/ -DCMAKE_BUILD_TYPE=Debug -- Found Tclsh: /usr/bin/tclsh -- Configuring done -- Generating done -- Build files have been written to: /***********/weechat-0.3.0/build
やっとmeke、make install
$ make Scanning dependencies of target translations [ 0%] Generating PO template file [ 0%] Compiling locales (fr) [ 0%] Compiling locales (es) [ 0%] Compiling locales (cs) [ 0%] Compiling locales (hu) [ 0%] Compiling locales (de) [ 0%] Compiling locales (ru) [ 0%] Compiling locales (pl) [ 7%] Built target translations Scanning dependencies of target weechat_core [ 8%] Building C object src/core/CMakeFiles/weechat_core.dir/weechat.o [ 9%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-backtrace.o [ 10%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-command.o [ 11%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-config.o [ 12%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-config-file.o [ 13%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-debug.o [ 14%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-hook.o [ 15%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-infolist.o [ 16%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-input.o [ 17%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-list.o [ 18%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-log.o [ 19%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-network.o [ 20%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-proxy.o [ 20%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-string.o [ 21%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-upgrade.o [ 22%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-upgrade-file.o [ 23%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-utf8.o [ 24%] Building C object src/core/CMakeFiles/weechat_core.dir/wee-util.o Linking C static library libweechat_core.a [ 24%] Built target weechat_core Scanning dependencies of target weechat_plugins [ 25%] Building C object src/plugins/CMakeFiles/weechat_plugins.dir/plugin.o [ 26%] Building C object src/plugins/CMakeFiles/weechat_plugins.dir/plugin-api.o [ 27%] Building C object src/plugins/CMakeFiles/weechat_plugins.dir/plugin-config.o Linking C static library libweechat_plugins.a [ 27%] Built target weechat_plugins Scanning dependencies of target alias [ 28%] Building C object src/plugins/alias/CMakeFiles/alias.dir/alias.o [ 29%] Building C object src/plugins/alias/CMakeFiles/alias.dir/alias-info.o Linking C shared module alias.so [ 29%] Built target alias Scanning dependencies of target aspell [ 30%] Building C object src/plugins/aspell/CMakeFiles/aspell.dir/weechat-aspell.o [ 31%] Building C object src/plugins/aspell/CMakeFiles/aspell.dir/weechat-aspell-config.o [ 32%] Building C object src/plugins/aspell/CMakeFiles/aspell.dir/weechat-aspell-speller.o Linking C shared module aspell.so [ 32%] Built target aspell Scanning dependencies of target charset [ 33%] Building C object src/plugins/charset/CMakeFiles/charset.dir/charset.o Linking C shared module charset.so [ 33%] Built target charset Scanning dependencies of target fifo [ 34%] Building C object src/plugins/fifo/CMakeFiles/fifo.dir/fifo.o [ 35%] Building C object src/plugins/fifo/CMakeFiles/fifo.dir/fifo-info.o Linking C shared module fifo.so [ 35%] Built target fifo Scanning dependencies of target irc [ 36%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc.o [ 37%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-bar-item.o [ 38%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-buffer.o [ 39%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-channel.o [ 40%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-color.o [ 40%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-command.o [ 41%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-completion.o [ 42%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-config.o [ 43%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-debug.o [ 44%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-display.o [ 45%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-ignore.o [ 46%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-info.o [ 47%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-input.o [ 48%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-mode.o [ 49%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-nick.o [ 50%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-protocol.o [ 51%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-raw.o [ 52%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-server.o [ 53%] Building C object src/plugins/irc/CMakeFiles/irc.dir/irc-upgrade.o Linking C shared module irc.so [ 53%] Built target irc Scanning dependencies of target logger [ 54%] Building C object src/plugins/logger/CMakeFiles/logger.dir/logger.o [ 55%] Building C object src/plugins/logger/CMakeFiles/logger.dir/logger-buffer.o [ 56%] Building C object src/plugins/logger/CMakeFiles/logger.dir/logger-config.o [ 57%] Building C object src/plugins/logger/CMakeFiles/logger.dir/logger-info.o [ 58%] Building C object src/plugins/logger/CMakeFiles/logger.dir/logger-tail.o Linking C shared module logger.so [ 58%] Built target logger Scanning dependencies of target weechat_scripts [ 59%] Building C object src/plugins/scripts/CMakeFiles/weechat_scripts.dir/script.o [ 60%] Building C object src/plugins/scripts/CMakeFiles/weechat_scripts.dir/script-callback.o [ 60%] Building C object src/plugins/scripts/CMakeFiles/weechat_scripts.dir/script-api.o Linking C static library libweechat_scripts.a [ 60%] Built target weechat_scripts Scanning dependencies of target perl [ 61%] Building C object src/plugins/scripts/perl/CMakeFiles/perl.dir/weechat-perl.o [ 62%] Building C object src/plugins/scripts/perl/CMakeFiles/perl.dir/weechat-perl-api.o Linking C shared module perl.so [ 62%] Built target perl Scanning dependencies of target python [ 63%] Building C object src/plugins/scripts/python/CMakeFiles/python.dir/weechat-python.o [ 64%] Building C object src/plugins/scripts/python/CMakeFiles/python.dir/weechat-python-api.o Linking C shared module python.so [ 64%] Built target python Scanning dependencies of target ruby [ 65%] Building C object src/plugins/scripts/ruby/CMakeFiles/ruby.dir/weechat-ruby.o [ 66%] Building C object src/plugins/scripts/ruby/CMakeFiles/ruby.dir/weechat-ruby-api.o Linking C shared module ruby.so [ 66%] Built target ruby Scanning dependencies of target lua [ 67%] Building C object src/plugins/scripts/lua/CMakeFiles/lua.dir/weechat-lua.o [ 68%] Building C object src/plugins/scripts/lua/CMakeFiles/lua.dir/weechat-lua-api.o Linking C shared module lua.so [ 68%] Built target lua Scanning dependencies of target xfer [ 69%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer.o [ 70%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-buffer.o [ 71%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-chat.o [ 72%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-command.o [ 73%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-completion.o [ 74%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-config.o [ 75%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-dcc.o [ 76%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-file.o [ 77%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-info.o [ 78%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-network.o [ 79%] Building C object src/plugins/xfer/CMakeFiles/xfer.dir/xfer-upgrade.o Linking C shared module xfer.so [ 79%] Built target xfer Scanning dependencies of target weechat_gui_common [ 80%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-bar.o [ 80%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-bar-item.o [ 81%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-bar-window.o [ 82%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-buffer.o [ 83%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-chat.o [ 84%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-color.o [ 85%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-filter.o [ 86%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-completion.o [ 87%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-history.o [ 88%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-hotlist.o [ 89%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-input.o [ 90%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-keyboard.o [ 91%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-layout.o [ 92%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-line.o [ 93%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-nicklist.o [ 94%] Building C object src/gui/CMakeFiles/weechat_gui_common.dir/gui-window.o Linking C static library libweechat_gui_common.a [ 94%] Built target weechat_gui_common Scanning dependencies of target weechat-curses [ 95%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-bar-window.o [ 96%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-chat.o [ 97%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-color.o [ 98%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-keyboard.o [ 99%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-main.o [100%] Building C object src/gui/curses/CMakeFiles/weechat-curses.dir/gui-curses-window.o Linking C executable weechat-curses [100%] Built target weechat-curses
rootになってmake install
$ su Password: # make install [ 7%] Built target translations [ 24%] Built target weechat_core [ 27%] Built target weechat_plugins [ 29%] Built target alias [ 32%] Built target aspell [ 33%] Built target charset [ 35%] Built target fifo [ 53%] Built target irc [ 58%] Built target logger [ 60%] Built target weechat_scripts [ 62%] Built target perl [ 64%] Built target python [ 66%] Built target ruby [ 68%] Built target lua [ 79%] Built target xfer [ 94%] Built target weechat_gui_common [100%] Built target weechat-curses Install the project... -- Install configuration: "Debug" -- Installing: /usr/local/lib/pkgconfig/weechat.pc -- Installing: /usr/local/share/locale/fr/LC_MESSAGES/weechat.mo -- Installing: /usr/local/share/locale/es/LC_MESSAGES/weechat.mo -- Installing: /usr/local/share/locale/cs/LC_MESSAGES/weechat.mo -- Installing: /usr/local/share/locale/hu/LC_MESSAGES/weechat.mo -- Installing: /usr/local/share/locale/de/LC_MESSAGES/weechat.mo -- Installing: /usr/local/share/locale/ru/LC_MESSAGES/weechat.mo -- Installing: /usr/local/share/locale/pl/LC_MESSAGES/weechat.mo -- Installing: /usr/local/include/weechat/weechat-plugin.h -- Installing: /usr/local/lib/weechat/plugins/alias.so -- Installing: /usr/local/lib/weechat/plugins/aspell.so -- Installing: /usr/local/lib/weechat/plugins/charset.so -- Installing: /usr/local/lib/weechat/plugins/fifo.so -- Installing: /usr/local/lib/weechat/plugins/irc.so -- Installing: /usr/local/lib/weechat/plugins/logger.so -- Installing: /usr/local/lib/weechat/plugins/perl.so -- Installing: /usr/local/lib/weechat/plugins/python.so -- Installing: /usr/local/lib/weechat/plugins/ruby.so -- Installing: /usr/local/lib/weechat/plugins/lua.so -- Installing: /usr/local/lib/weechat/plugins/xfer.so -- Installing: /usr/local/bin/weechat-curses -- Installing: /usr/local/share/man/man1/weechat-curses.1 # exit exit
一回シェルを終了して、再度ログイン。ひとまずバージョンチェック。0.3.0になっているようなので起動。
$ exit $ weechat-curses -v 0.3.0 $ weechat-curses
起動したら接続、エンコードを設定して、/motdを再表示上手く表示されているね。
/connect irc.example.net /charset iso-2022-jp /motd
メモリの使用量見たらirssiに比べて10分の1くらいになってる。単純に比較してはいけないと思うけどね。だって、irssiは1月くらい起動しっぱなしだし、さらにperlのスクリプトで色々やってるから。