«前の日記(2013-04-19) 最新 次の日記(2013-05-05)» 編集

echo.createdb.net

https://echo.createdb.net/fts4p/
[PHPマニュアル検索] [PGSQLマニュアル検索]

2013-05-02

_ [tDiary] tDiary-3.2.2 Ruby2.0.0-p0

tDiaryとRubyもアップグレードする。
tDiaryはいつものようにコピーだけ。
Rubyはaptの1.8.7-p302からsrcの2.0.0-p0に上げる。

wget ftp://ftp.ruby-lang.org/pub/ruby/2.0/ruby-2.0.0-p0.tar.bz2

tar jxvf ruby-2.0.0-p0.tar.bz2
cd ruby-2.0.0-p0
./configure
make
make install

apt-get purge ruby1.8

するとこんなエラーがでた。
500 Internal Server Error

(eval):6: invalid multibyte char (UTF-8)
(eval):6: invalid multibyte char (UTF-8) (SyntaxError)

(tdiary.conf):6:in `eval'
(tdiary.conf):6:in `configure_attrs'
/home/www/htdata/tdiary/tdiary/config.rb:120:in `eval'
/home/www/htdata/tdiary/tdiary/config.rb:120:in `configure_attrs'
/home/www/htdata/tdiary/tdiary/config.rb:12:in `initialize'
/home/www/htdata/tdiary/tdiary/dispatcher/index_main.rb:14:in `new'
/home/www/htdata/tdiary/tdiary/dispatcher/index_main.rb:14:in `initialize'
/home/www/htdata/tdiary/tdiary/dispatcher/index_main.rb:6:in `new'
/home/www/htdata/tdiary/tdiary/dispatcher/index_main.rb:6:in `run'
/home/www/htdata/tdiary/tdiary/dispatcher.rb:21:in `dispatch_cgi'
/home/www/vhost/echo.dip.jp/htdocs/index.rb:31:in `<main>'

UTF-8以外の文字で怒っているらしい。
/home/www/htdata/tdiary.confがEUC-JPになっていたのでUTF-8に修正する。


«前の日記(2013-04-19) 最新 次の日記(2013-05-05)» 編集