R.A. Epigonos et al.

[weechat] 開発版をgitレポジトリからコンパイルしてインストール、ついでに翻訳



$ git-clone git://git.sv.gnu.org/weechat.git
Initialized empty Git repository in /***************************************/weechat/.git/
remote: Counting objects: 37554, done.
remote: Compressing objects: 100% (9658/9658), done.
remote: Total 37554 (delta 31300), reused 33412 (delta 27864)
Receiving objects: 100% (37554/37554), 14.76 MiB | 625 KiB/s, done.
Resolving deltas: 100% (31300/31300), done.
Checking out files: 100% (480/480), done.

コピーされたディレクトリに移動して、INSTALLファイルを参照。gitレポジトリから持って来た場合は"With autotools"の項目を参照

$ cd weechat/
$ ls
AUTHORS         INSTALL      UPGRADE_0.3     configure.in  src
CMakeLists.txt  Makefile.am  autogen.sh      debian        weechat.pc.in
COPYING         NEWS         cmake           doc           weechat.spec
ChangeLog       README       config.h.cmake  po            weechat_icon_32.png
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 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 install     (as root for installation in system directories)

If you want to report bugs/crashes 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.

autogen.shとconfigure。この間に、rootになって必要なパッケージのインストールしてたと思う。cvsが無いとか、aclocalが無いとか、 error: possibly undefined macro: AM_PATH_GTK_2_0とか言われてたので。

# aptitude install cvs
# aptitude install automake
# aptitude install libgtk2.0-0
# aptitude install libgtk2.0-dev


$ ./autogen.sh
Running "rm -rf config"                                              [OK]
Running "rm -f config.h.in"                                          [OK]
Running "rm -f aclocal.m4 configure config.log config.status"        [OK]
Running "rm -rf autom4te*.cache"                                     [OK]
Running "rm -f libtool"                                              [OK]
Running "rm -f ABOUT-NLS"                                            [OK]
Running "rm -rf intl"                                                [OK]
Running "mkdir -p config/m4"                                         [OK]
Running "mkdir intl"                                                 [OK]
Running "autopoint -f"                                               [OK]
Running "libtoolize --automake --force --copy"                       [OK]
Running "aclocal --force -I config/m4"                               [OK]
Running "autoheader"                                                 [OK]
Running "autoconf"                                                   [OK]
Running "automake --add-missing --copy --gnu"                        [OK]

でconfigure、make、make install。prefixをユーザディレクトリ以下にしたのでそのままinstall。出力は長いのでほとんど割愛。

$ ./configure --prefix=/*******/local
$ make
$ make install
Libraries have been installed in:

If you ever happen to want to link against installed libraries
in a given directory, LIBDIR, you must either use libtool, and
specify the full pathname of the library, or use the `-LLIBDIR'
flag during linking and do at least one of the following:
   - add LIBDIR to the `LD_LIBRARY_PATH' environment variable
     during execution
   - add LIBDIR to the `LD_RUN_PATH' environment variable
     during linking
   - use the `-Wl,--rpath -Wl,LIBDIR' linker flag
   - have your system administrator add LIBDIR to `/etc/ld.so.conf'

See any operating system documentation about shared libraries for
more information, such as the ld(1) and ld.so(8) manual pages.


$ LD_LIBRARY_PATH=/*******/local/lib/weechat/plugins ./weechat-curses --help

WeeChat 0.3.3-dev (c) Copyright 2003-2010, compiled on May 22 2010 14:05:58
Developed by FlashCode <flashcode@flashtux.org> - http://www.weechat.org/

Usage: ./weechat-curses [option...] [plugin:option...]

  -a, --no-connect  disable auto-connect to servers at startup
  -d, --dir <path>  set WeeChat home directory (default: ~/.weechat)
  -h, --help        this help
  -k, --keys        display WeeChat default keys
  -l, --license     display WeeChat license
  -p, --no-plugin   don't load any plugin at startup
  -s, --no-script   don't load any script at startup
  -v, --version     display WeeChat version
  plugin:option     option for plugin
                    for example, irc plugin can connect
                    to server with url like:
                    (look at plugins documentation for more information
                    about possible options)


$ git-clone git://git.sv.gnu.org/weechat.git
$ find -print0 | xargs -0 grep fr | grep pl | grep es | grep cs | grep hu
./weechat/configure.in:ALL_LINGUAS="fr es cs hu de ru pl it"
$ cd weechat/po
$ find -print0 | xargs -0 grep fr.po
./CMakeLists.txt:  fr.po
$ msginit -i weechat.pot -l ja -o ja.po_org
The new message catalog should contain your email address, so that users can
give you feedback about the translations, and so that maintainers can contact
you in case of unexpected technical problems.

Is the following your email address?
Please confirm by pressing Return, or enter your email address.
A translation team for your language (ja) does not exist yet.
If you want to create a new translation team for ja, please visit

Created ja.po.
$ sed 's#Content-Type: text/plain; charset=ASCII#Content-Type: text/plain; charset=UTF-8#' ja.po_org > ja.po
$ vi ja.po
$ diff ja.po ja.po_org
< "Content-Type: text/plain; charset=UTF-8\n"
> "Content-Type: text/plain; charset=ASCII\n"
< msgstr "使用法: %s [オプション...] [プラグイン:オプション...]\n"
> msgstr ""
< msgstr "プロクシが定義されていません。"
> msgstr ""
< msgstr "    ライセンス \"%2$s\", 開発者: %1$s"
> msgstr ""
$ make ja.gmo
$ cd ..
$ make install
$ cd /*******/local/bin
$ LANG=ja_JP.UTF-8 LD_LIBRARY_PATH=/*******/local/lib/weechat/plugins ./weechat-curses --dir /*******/.weechat-dev/


  1. WeeChat, the extensible chat client
  2. Gettextによるウェブアプリケーションの国際化と地域化(2/4):CodeZine
  3. gettext msgstr "%2$s" "%1$s" - Google 検索
  4. 表示の多言語化
  5. po gmo - Google 検索
  6. WeeChat translator guide - FlashTux
  7. 高度な Makefile
  8. make distclean - Google 検索
  9. Search: weechat - GitHub
  10. MinGW環境でSylpheedのtrunkをビルドしてみる - ひとりしずかに。
  11. error: possibly undefined macro: AM_PATH_GTK_2_0 - Google 検索
  12. GTK+/インストール試行錯誤編 - PukiWiki
  13. AM_PATH_GTK_2_0 aclocal - Google 検索
  14. cmake1 - プログラミングTipsWiki - livedoor Wiki(ウィキ)
  15. CMakeLists.txt - Google 検索
  16. CMake - Cross Platform Make
  17. GNU `gettext' utilities
  18. Debian -- Package Contents Search Results -- aclocal


  1. はてなブックマーク
  2. Google Bookmarks
  3. del.icio.us


  1. Posted: 2009-05-17T00:08:14+09:00
  2. Modified: 2009-05-17T00:08:14+09:00
  3. Generated: 2023-08-27T23:09:12+09:00