windows 2000にEthnaをいれる・つづき

もう1週間も間が空いてしまった…。ということで前回の続きです。

データベースはmysql

あいかわらず慣れているという理由で、mysql4.1を使うことにします。

つづいてconfiguration。

  • とりあえずDeveloper MachineでしばらくNextを押す。
  • charactor setのところは "Manual Selected Defult Character Sec / Collation" で ujis にしておこう。
  • "Install As Windows Service" の画面で下の "Include Bin Directory in Windows PATH" はチェックをいれておく。
  • その次の画面でrootのパスワード入力。
  • そしてようやく execute 。

これでコマンドプロンプトから

C:\Documents and Settings\ichii386>mysql -uroot -p
Enter password:さっきのパスワード
Welcome to the MySQL monitor.  Commands end with ; or \g.
Your MySQL connection id is 3 to server version: 4.1.22-community-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql>

というかんじでmysqlが動くようになりました。

PEARを使えるようにしておく

mysqlのインストールを先にやる必要がないことにふと気づいた。まあいいや。

コマンドプロンプトから、phpにくっついてたgo-pear.batを実行します。

C:\Documents and Settings\ichii386>cd \php
C:\php>go-pear.bat

なんかいろいろ言ってくるけど、enter連打。ってなんかよくわかんないエラーでてるよ。

Bootstrapping: PEAR...................(remote) <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
<!-- ViewVC :: http://www.viewvc.org/ -->
<head>
<title>ViewVC Exception</title>
</head>
<body>
<h3>An Exception Has Occurred</h3>


<h4>Python Traceback</h4>
<p><pre>
Traceback (most recent call last):
  File "/usr/local/viewvc-1.1-dev/lib/viewvc.py", line 3623, in main
    request.run_viewvc()
  File "/usr/local/viewvc-1.1-dev/lib/viewvc.py", line 388, in run_viewvc
    self.view_func(self)
  File "/usr/local/viewvc-1.1-dev/lib/viewvc.py", line 2122, in view_checkout
    fp, revision = request.repos.openfile(path, rev)
  File "/usr/local/viewvc-1.1-dev/lib/vclib/bincvs/__init__.py", line 134, in openfile
    filename, revision = _parse_co_header(fp)
  File "/usr/local/viewvc-1.1-dev/lib/vclib/bincvs/__init__.py", line 549, in _parse_co_header
    raise COMalformedOutput, "Unable to find revision in co output stream"
COMalformedOutput: Unable to find revision in co output stream

</pre></p>
</body>
</html>
ok

えー、なにがokだよ、まったく。php入れたときに付属してたPEARは1.3.6か…、なんかはまりそうな予感がするので、http://go-pear.org/ にアクセスして表示された画面を名前を付けて保存、C:\php\go-pear.org.php とかにしておく。そんで以下を実行して、ゼロから最新のを取り直す。

C:\php>php go-pear.org.php

同じようにenter連打。ダウンロードにちょっと時間かかってる様子。途中でinclude_pathが変だよ!ってメッセージ。そういえば先週は C:\php\includes とかにしたんだった。勝手に追加してくれてるようなので、よしとする。

これで

C:\php>pear config-show
C:\php>pear config-show
CONFIGURATION (CHANNEL PEAR.PHP.NET):
=====================================
Auto-discover new Channels     auto_discover    
Default Channel                default_channel  pear.php.net
HTTP Proxy Server Address      http_proxy       
PEAR server [DEPRECATED]       master_server    pear.php.net
Default Channel Mirror         preferred_mirror pear.php.net
Remote Configuration File      remote_config    
PEAR executables directory     bin_dir          C:\php
PEAR documentation directory   doc_dir          C:\php\pear\docs
PHP extension directory        ext_dir          c:\php4
PEAR directory                 php_dir          C:\php\pear
PEAR Installer cache directory cache_dir        C:\\DOCUME~1\\ichii386\\LOCALS~1\\Temp\pear\cache
PEAR data directory            data_dir         C:\php\pear\data
PEAR Installer download        download_dir     C:\php\temp/download
directory
PHP CLI/CGI binary             php_bin          C:\php\cli\php.exe
PEAR Installer temp directory  temp_dir         C:\php\temp
PEAR test directory            test_dir         C:\php\pear\tests
Cache TimeToLive               cache_ttl        3600
Preferred Package State        preferred_state  stable
Unix file mask                 umask            0
Debug Log Level                verbose          1
PEAR password (for             password         
maintainers)
Signature Handling Program     sig_bin          c:\gnupg\gpg.exe
Signature Key Directory        sig_keydir       C:\WINNT\pearkeys
Signature Key Id               sig_keyid        
Package Signature Type         sig_type         gpg
PEAR username (for             username         
maintainers)
User Configuration File        Filename         C:\WINNT\pear.ini
System Configuration File      Filename         C:\WINNT\pearsys.ini

と表示され、めでたくPEARもインストール完了です。