2006-05-28 (日)
■ Debian に Ethna をインストール
フレームワークというものを試してみたくなり、手始めに、 Ethna を手元の環境にインストールしてみた。 Debian で Ethna を試す場合、以下のようにするのが楽なようだ。
- Ethna 0.2.0 を使用
- Ethna は /usr/share/php/Ethna にインストール
- Smarty は /usr/share/php/Smarty にインストール
以下、そこに至るまでの作業記録。
まず、必要なパッケージをインストール。
# pear install DB # aptitude install smarty
さて、Ethna はどこのディレクトリにインストールすれば良いか? phpinfo() の表示を見てみると、以下のような設定になっていた。
include_path .:/usr/share/php
ということで、/usr/share/php 以下にインストールしてみる。
# cd /usr/share/php # tar xvfz Ethna-0.2.0.tar.gz # ln -s Ethna-0.2.0 Ethna
実は最初、Ethna-2.1.0-preview1.tgz をインストールしたが、 チュートリアルで使う generate_project_skelton.php というファイルが入っていなかった。 まぁ、preview 版だからなぁ。 ということで、バージョン 0.2.0 をインストールし直した。
次に、チュートリアルに従い、以下のコマンドを実行してみた。
$ php /usr/share/php/Ethna/bin/generate_project_skelton.php ~/Ethna sample
ところが、こんな Warning が。
Warning: include_once(Smarty/Smarty.class.php): failed to open stream: No such file or directory in /usr/share/php/Ethna-0.2.0/Ethna.php on line 19 Warning: include_once(): Failed opening 'Smarty/Smarty.class.php' for inclusion (include_path='.:/usr/share/php:/usr/share/php') in /usr/share/php/Ethna-0.2.0/Ethna.php on line 19
調べてみると、Smarty が /usr/share/php/smarty/libs という、 ちょっと妙なディレクトリにインストールされていた。 Ethna の設定をこれに合わせて書き換えても良いが、 とりあえず、シンボリックリンクを張ってごまかす。
# cd /usr/share/php # ln -s smarty/libs Smarty
これで、あとはチュートリアル通りに進められた。
[コメントを書く]
本日のリンク元
- 8 google検索(debian smarty)
- 5 google検索(debian smarty)
- 4 http://www.google.co.jp/url?sa=t&rct=j&q=debian sm...
- 4 google検索(debian ethna)
- 3 google検索(ethna インストール debian)
- 3 google検索(debian smarty)
- 3 google検索(debian pear インストール)
- 3 google検索(smarty html_emoji)
- 3 http://blog.chew.jp/result/php/php smarty
- 2 google検索(ethna インストール)
- 2 google検索(smarty debian インストール)
- 2 google検索(php usr/share)
- 2 google検索(include_path smarty etch)
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=1&v...
- 2 http://www.google.co.jp/url?sa=t&source=web&cd=1&v...
- 2 http://www.google.co.jp/url?sa=t&rct=j&q=smarty de...
- 2 google検索(Zend インストール)
- 2 google検索(smarty インストール debian)
- 2 google検索(t)
- 2 google検索(share プラグイン設定)
- 2 google検索(ethna インストール ディレクトリ)
- 2 google検索(debian smarty)
- 2 google検索(debian smarty)
- 2 google検索(debian smarty)
- 2 google検索(debian ethna)
- 2 google検索(Ethna インストール)
- 2 google検索(debian smarty)
- 2 google検索(debian Smarty)
- 2 google検索(smarty html_emoji)
- 2 google検索(share Ver.1.0)
- 2 google検索(pear インストール debian)
- 2 google検索(ethna generate_project_skelton)
- 2 google検索(ethna debian)
- 2 google検索(ethna インストール debian)
- 2 google検索(debian smarty)
- 2 google検索(Smarty centos)
- 2 google検索(PHP APC Debian)
- 2 google検索(Ethna インストール)
- 2 google検索("/usr/share/php")
- 2 google検索(debian smarty)
- 2 google検索(smarty インストール debian)
- 2 http://www.google.co.jp/hws/search?hl=ja&q=Ethna r...
- 2 http://72.14.235.104/search?q=cache:neMi_y0LXbcJ:w...
- 1 http://www.google.nl/url?sa=t&source=web&ct=res&cd...
- 1 google検索(ethna smarty プラグイン)
- 1 google検索(debian ZendFramework インストール)
- 1 google検索(t)
- 1 google検索(php failed to open stream: No such file or directory Exception)
- 1 google検索(ethna smarty 設定)
- 1 google検索(ethna debian)
- 1 google検索(ethna cookie)
- 1 google検索(debian zend インストール)
- 1 google検索(debian zend インストール)
- 1 google検索(debian smarty)
- 1 google検索(debian pukiwiki plus インストール)
- 1 google検索(debian pear インストール)
- 1 google検索(debian シェル ethna)
- 1 google検索(centos pear インストール)
- 1 google検索(Zend Framework PHP インストール)
- 1 google検索(debian smarty インストール)
- 1 google検索(Zend Framework 1.0 インストール)
- 1 google検索(Debian smarty インストール)
- 1 google検索(smarty install)
- 1 google検索(php Ethna インストール)
- 1 google検索(ethna bind)
- 1 google検索(Ethna php mysql)
- 1 google検索(Zend Framework php Ethna)
- 1 google検索(smarty プラグイン インストール Ethna)
- 1 google検索(php include_once failed to open stream include_path)
- 1 google検索(Ethna debian)
- 1 google検索(ethna 公開 ディレクトリ)
- 1 google検索(smarty インストール ethna)
- 1 google検索(php Ethna インストール)
- 1 google検索(lenny smarty)
- 1 google検索(lenny smarty)
- 1 google検索(ethna インストール エラー)
- 1 google検索(ethna debian)
- 1 google検索(debian smarty)
- 1 google検索(usr/share/php smarty)
- 1 google検索(smarty debian)
- 1 google検索(php smarty debian)
- 1 google検索(php APC debian)
- 1 google検索(pear::pager インストール)
- 1 google検索(ethna xrea インストール)
- 1 google検索(ethna 正規表現)
- 1 google検索(ethna インストール)
- 1 google検索(ethna)
- 1 google検索(Smarty インストール)
- 1 google検索(HTML_Emoji smarty)
- 1 google検索(smarty プラグイン Ethna)
- 1 google検索(debian php include_path)
- 1 google検索(debian pear インストール)
- 1 google検索(HTML_Emoji smarty)
- 1 google検索(smarty インストール /usr/share)
- 1 google検索(debian smarty インストール)
- 1 google検索(smarty debian インストール)
- 1 google検索(debian smarty インストール)
- 1 google検索(debian smarty)
- 1 google検索(debian Smarty)
- 1 google検索(debian smarty)
