This is an old revision of the document!


Mac OS X へのインストール(草稿)

POPFile v1.1.0 には初めての公式な Mac OS X インストーラが追加されました! あなたの Mac に簡単に POPFile をインストールすることができます。

必要な環境

Mac OS X で POPFile を動かすためにいくつかの条件があります。

  • Mac OS X 10.3.9 以降
  • An e-mail account that uses the POP3 protocol (most accounts do, although you can't use POPFile with web-based services like Hotmail and Yahoo! Mail without extra software. See Configuring Proxies & Firewalls).
  • Approximately 10.2MB free disk space is required for the default installation created by the Mac OS X installer.
  • POPFile itself occupies about 3.8MB.
  • POPFile is written in Perl and requires some extra Perl modules so the installer installs the modules which occupies approximately 4.4MB. These modules are compiled in the Universal binary format, which means that POPFile will run natively on both PPC and Intel Macs.
  • The installer installs the 'Nihongo' parser used to analyse the Japanese text.
  • The installer also installs XMLRPC module, NNTP/SMTP proxies and IMAP module.
  • If you need the optional SSL Support, you can install it using POPFile-addssl.pkg installer. The module will allow POPFile to use SSL when connecting to a mail server, an additional 1.1MB of disk space is required for the extra Perl components and SSL libraries.
  • The word lists (called the corpus) used to classify your email will take some additional space depending on how much mail you use to train POPFile and how many buckets you create. POPFile keeps a temporary copy of recent mail (the Message History) for a few days to make it easy to correct any classification errors so some extra space is required for these recent messages. For some users only a few extra MB will be sufficient for the corpus and Message History, for others an additional 100 MB may be required.

インストール

  1. Download the Mac OS X installer from the POPFile Download Page. (not yet)
  2. Run POPFile-x.x.x.pkg and follow the installation instructions.
  3. POPFile will be installed in /Library/POPFile/ and it will be automatically launched in background.
    Important note: Nothing will appear on your screen! To check if it's running correctly, read the “Accessing POPFile” section below.
  4. Configura buckets. See Bucket Setup.
    Important note: The Mac OS X installer does not create any bucket on your installation unlike the Windows installer. You need to make at least two buckets before using it.
  5. Configure your email client. See Configuring Specific Mail Clients.

POPFile へのアクセス

  • POPFile doesn't have a traditional interface like most programs - you access it through your web browser. Don't worry - unless you say otherwise, no-one outside your machine can access it.
  • If you get an error message, check that POPFile is really running, and that you have the port number correct (it should be 8080, but if you changed it, you'll also need to change that in the web address you're going to.)

インストーラパッケージに含まれる便利なスクリプト

The installer package includes several utility scripts written in AppleScript. You can copy them to your hard drive.

  • start-popfile - Launch POPFile (in background). Requires root privilege.
  • stop-popfile - Stop POPFile. Requires root privilege.
  • open-popfile-ui - Open POPFile UI with your default web browser.
  • start-popfile-with-console - Lanuch POPFile in the Terminal.app. Useful for debugging.

MAC OS X へのインストール(手動インストール編)

Mac OS X のユーザは POPFile のクロスプラットフォーム版をダウンロードすべきです。さらに、いくつかの Perl モジュールと SQLite パッケージを追加インストールする必要があるでしょう。(SQLite の情報については、http://www.sqlite.org を参照)

一番簡単なインストール方法(0.21 以降)は CPAN だけを使って Perl モジュールをインストールすることです。 Fink パッケージマネージャを使っても Perl モジュールをインストールすることができます。ただし、SQLite は Fink には含まれていません。

訳注:このインストール手順を実行するためには、Xcode (Panther 以降) あるいは Developer Tools をインストールしてある必要があります。

日本語環境で使用するための注意

POPFile では、日本語を処理するために、Encode というモジュールを使用していますが、このモジュールは Perl 5.7.3 以降でないと使用できません。Mac OS X 10.3.x (Panther) には Perl 5.8.1 が含まれているため問題なく使用できますが、それ以前のバージョン(Jaguar など)には古いバージョンの Perl が含まれているため、そのままでは POPFile を使用することができません。このため、Jaguar などで利用する場合には、まず Perl をバージョンアップする必要があります。Jaguar で Perl をバージョンアップする方法は、 Installing Perl 5.8 on Jaguar などが参考になります(英語)。また、インストーラ形式になったものが CPAN/ports などから入手可能です。

また、日本語の文章の分かち書き(文章を単語ごとに分割する処理)を行うために Kakasi と Perl から Kakasi を使用するためのモジュール Text::Kakasi をインストールする必要があります。

インストール手順

  • クロスプラットフォーム版の POPFile をダウンロードします。
  • Kakasi (辞書つきのソースコード)をダウンロードします。
  • Terminal で、Kakasi を展開、インストールします。configure 時に、「–host=powerpc-apple-bsd」オプションをつけることを忘れずに。
  tar xzf (ダウンロードした Kakasi アーカイブへのパス)
  cd kakasi-2.3.4
  ./configure --host=powerpc-apple-bsd
  make
  sudo make install
  (パスワードを入力)
  • Terminal で、root (管理者) モードになります。以下のすべてのコマンドを実行する前に、このコマンドを実行します。
  sudo -s
  (パスワードを入力)
  • /Library/POPFile ディレクトリを作り、その中に zip アーカイブを展開します:
  mkdir /Library/POPFile
  cd /Library/POPFile
  unzip (ダウンロードした POPFile パッケージへのパス)
  • CPAN を利用して、必要な Perl モジュールをインストールします (それぞれの “install” ステップのあと、パッケージをダウンロード、インストールしている間にいくつかのフィードバックがあるでしょう):
  perl -MCPAN -e shell
  install DBI
  install M/MS/MSERGEANT/DBD::SQLite-0.31.tar.gz
  install MIME::Base64 ( 訳注 : Panther では不要 )
  install MIME::QuotedPrint( 訳注 : Panther では不要 )
  install HTML::Tagset
  install Date::Parse
  install HTML::Template
  install Text::Kakasi ( 訳注 : 日本語環境で使用する場合には必要 )
  install Net::SSLeay ( ( 訳注 : SSL を使用する場合のみ ) テストがうまくいかなかった場合、"force install Net::SSLeay" としなければならなくなるかもしれません。)
  install IO::Socket::SSL ( 訳注 : SSL を使用する場合のみ )
  quit

(代わりに、SQLite のソースを http://www.sqlite.org からダウンロードすることもできますが、自分でビルドしなければいけません。) ダウンロードが終わると、ディスクイメージがマウントされます。Terminal で以下を実行します (root のまま):

  cp /Volumes/SQLite-2.8.13/libsqlite.a /usr/local/lib/
  cp /Volumes/SQLite-2.8.13/sqlite /usr/local/bin
  cp /Volumes/SQLite-2.8.13/sqlite.h /usr/local/include/
  • こちら の ステップ 4.5 以下の手順をもとに、StartupItem を作成します。
  • テストのため、POPFile をシェル(Terminal)から実行することをおすすめします。これにより、(POPFile を実行したときに)起こるかもしれないエラーを確認することができます:
  cd /Library/POPFile
  perl popfile.pl
  • http://127.0.0.1:8080 を開いて設定しましょう!
  • 現在(2004 年 9 月 11 日)、POPFile と DBD::SQLite Perl モジュールのバージョン 1.0 以降には互換性がありません。このため、上記手順では、互換性のある古いバージョンの 0.31 をインストールしています。

すばらしい Mac OS X へのインストール方法は、 こちら にあります。

POPFile をアプリケーション化したパッケージ

POPFile を Mac OS X 上で利用しやすいようにパッケージ化した PopfileMgr というアプリケーションも公開されています。メニューバーに常駐して、メニューから UI の表示や起動・終了などを簡単に行うことができるとても使いやすいアプリケーションです。

原文

 
jp/howtos/macosx.1215277858.txt.gz · Last modified: 2008/07/05 19:10 (external edit)

Should you find anything in the documentation that is incomplete, unclear, outdated or just plain wrong, please let us know and leave a note in the Documentation Forum.

Recent changes RSS feed Donate Driven by DokuWiki
The content of this wiki is protected by the GNU Fee Documentation License