How to install skf - simple kanji filter#from README Since skf depends on only basic file I/O and provides configure scripts, install should be easy except some switches related to locale features. Here are some supported configure options. Since 1.96, skf needs perl on compile. skf は基本的な入出力機能のみを利用しており、configure スクリプト を提供しているため、インストールは難しくはないはずです。問題があ る場合には、以下のサポートされている (特にロカール関係の) スイッ チを変更してみてください。また、1.96 以降の skf はコンパイル時に perl は必要です。 --enable/disable-getenv --enable/disable-oldnec --enabledisable-debug --enabledisable-dynamic --enabledisable-nls Standard autoconf options, like --prefix and --exec-prefix are also supported. As shown above, skf implements locale features using GNU gettext framework, and the framework is used only to get localized
2.1 Linux, M*cOS X and Un*x-like systems If you are using a kind of modern unices system, just type ./configure and then make. You'll get working binary. Ubuntu 8.04 and NetBSD 5.01 is tested for 1.97. You might need the gettext development package installed to compile.Z Compilation on M*cOS X system (10.5 and 10.6 for 1.97) is tested and supported, but needs gettext package from macport. OS version under 10.4 is not supported. If you are using an other kind of Un*x style system and find compile failures, just report! Or try to adjust locale features (--disable-nls), external table features (--disable-dynamic) and CFLAGS in Makefile for your system. 比較的最近の Un*x 環境では、./configure と make を順に打つことでバイ ナリが作成される。特にテーブルを動的読み出しにした場合は、テーブルの インストールが必要なので、支障ない限り make install を使ってインスト ールすること。ロカール機能を使うには、gettext の開発用環境がインスト ールされている必要がある。 M*cOS X については、1.97 では 10.5 と 10.6 環境でテストされている。 10.4 以下ではコンパイルできなくなっている (と思う) ので注意。 上手くコンパイルできない場合は、Makefile の CFLAG を調整すること。 2.1.1. Create RPM package Use "make srpm" creates a RPM source package in rpm/SRPMS and prepare files to make rpms. Note that ${HOME}/.rpmmacro will be overwritten. You are warned 8-) After that, make rpm creates RPM package in rpm/RPMS/${arch}. "make srpm"、"make rpm" で RPM パッケージが作成される。但し、 ${HOME}/.rpmmacro を勝手に上書きするので注意 8-) Debian 上でしかテストしていないため、それ以外にも動きが怪しい可能性 在り。 RPM パッケージは rpm/RPMS/${arch} に作成される。 2.1.2. Create DEB package Debian package creation is well tested and supported. You can build package using dpkg-buildpackage with debhelper (Yep. You need debhelper to make deb. See debhelper's manual). Debian パッケージは良くテストされているはず。リリース時点で最新の Debian stable と Ubuntu 環境でテストされている。Debian パッケージ生成 には debhelper は必要なため、インストールしておかれたし。 2.2 Wind*ws For cygwin environment, cygwin-version binaries compilation is tested and supported. You will need latest cygwin environment and both gettext and gettext-dev packages for nls feature which will be automatically enabled by configure. Please refer descriptions in Makefile. skf-1.94 and later doesn't support SFU 3.5. Proceeds with cautions :-) cygwin 環境は比較的よくテストされている。gettext/gettext-dev パッケー ジをインストールしておくこと。 SFU 3.5 は最近はテストしていないので、必要な場合は注意。 If you want some detailed or esoteric/cosmetic setting changes, see config.h. Common settings can be handled in Makefile. 基本的に、機能面でのスイッチは config.h に、環境のスイッチは Makefile に集めてある (autoconf 絡みを除いて) ので、何かあった場合は怪しそうな 処を確認願う。 Compilation under Msys environment is partially tested and supposed to work. Note that it is not fully tested. You are warned. Msys 環境は、良くテストされていない。 3. Install SKF plugins (will be enabled in 1.94 or later) Prerequisite: SWIG, Development package of the target LWL. For perl extension, use "make perlext" in skf-root directory. Binary is generated in skf root directory. Requires gcc, and other GNU related stuff besides the script language itself. For ruby, s/perl/ruby/. Extension directory used in installing is system default arch. directory. Created extension will be skf.so(SKF.so in cygwin environment). Note that name of function in perl extension is set to skfc::convert in some cygwin-related environment, not skf::convert in 1.94 or later built under cygwin. 事前に SWIG のインストールが必要。また、対象 LWL の開発用環境が必要。 例えば perl では、"make clean; make perlext; make perlext_install" で プラグインのコンパイルとインストールが行われる。プラグインの関数名は 環境によって変化するので、確認すること。 楽しいハッキングを祝して! |