おのたく日記 YouTubeも始めました→
2006-06-16(Fri) [長年日記]
■ [amd64] p2を動くようにする。
Debian 3.1(sarge)から、Debian amd64 testing(etch)へ、単にpublic_html以下をCopyしてきたら。
Warning: main(Net/UserAgent/Mobile.php): failed to open stream: No such file or directory in /home/www/p2_1x/conf/conf.inc.php on line 134
p2 error: PEAR の Net_UserAgent_Mobile がインストールされていません
と出た、「前にあったよなぁ」って日記を検索した。
#ここで、namazuが動かなかったので、namazu debian packageをインストール(まだ、ファイルはx86と兼用なので、32bitでnamazu.cgiが動くので、dchroot i386にもnamazuをインストール)して、日記を検索できるようにする。
その結果、2005年9月4日の日記「Debian] php4-pearをインストール」を見つけたので、
pear install Net_UserAgent_Mobile-beta
downloading Net_UserAgent_Mobile-0.26.0.tgz ...
Starting to download Net_UserAgent_Mobile-0.26.0.tgz (29,543 bytes)
.........done: 29,543 bytes
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 7680 bytes) in /usr/share/php/PEAR/PackageFile/v2.php on line 832
Fatal error: Allowed memory size of 8388608 bytes exhausted (tried to allocate 64 bytes) in /usr/share/php/System.php on line 145
mirara:/var/www# pear install Net_UserAgent_Mobile-beta
Skipping package "pear/Net_UserAgent_Mobile", already installed as version 0.26.0
昔やった通りにやるとメモリが足りないとエラーだった。
[ロ]PEARのアップデートが失敗する件について(PHP)より、情報を得て
memory_limit = 16M ; Maximum amount of memory a script may consume (8MB)
[/etc/php5/cli/php.iniより引用]
と修正することにより、PHP_CompatとNet_UserAgent_Mobileをインストールして無事に動くようになった。
って、いまはp2じゃなくてrep2と呼ぶんですね。
|