Jun 27 2004
無聊的時候
無聊的時候翻翻 server log, 發現這一段怪異的錯誤訊息:
Byte order is not compatible at blib/lib/Storable.pm (autosplit into blib/lib/auto/Storable/thaw.al) line 363, at /da1/www/data/blog/lib/MT/PluginData.pm line 28, referer: http://www.fomokka.net/foxfair/
然後就去查了 PluginData.pm, 才發現了這個問題原來是從 Storable.pm 這邊來的(man Storable):
64 bit data in perl 5.6.0 and 5.6.1 This section only applies to you if you have existing data written out by Storable 2.02 or earlier on perl 5.6.0 or 5.6.1 on Unix or Linux which has been configured with 64 bit integer support (not the default). If you got a precompiled perl, rather than running Configure to build your own perl from source, then it almost certainly does not affect you, and you can stop reading now (unless you’re curious). If you’re using perl on Windows it does not affect you.
於是乎,拜請搜尋引擎的神力加持後,我在 TextDrive 的討論版上看到解法了,所以有了這個 diff:
— lib/MT/PluginData.pm.orig Sun Jun 27 21:45:50 2004 +++ lib/MT/PluginData.pm Sun Jun 27 21:50:37 2004 @@ -7,6 +7,7 @@ use strict; use Storable qw( freeze thaw ); +$Storable::interwork_56_64bit = 1; use MT::Object; @MT::PluginData::ISA = qw( MT::Object );
簡單說:就是修正完畢了,但怕我記姓不好所以再把解法放在這裡
ps: TextDrive 跟他的母 project: TextPattern概念不錯,或許 TextDrive 早有人知道,或把他當成是 MT 跟 TextPad 的競爭者也不一定, 但今天偶然發現它,覺得還不錯. 只不過因為早已先用了 MT, 也沒其他力氣跟時間去試用看看就是了。
ps2: Wiki link note: WikiEngines, 裡面好多有關 wiki 的東西,慢慢看啊!