外で開発する場合に、マウスがないと不便なので、
vimouseをMacに移植するためにMacRubyをインストールしてみる事にしました。
最初はインストーラを以下のサイトから落としてきて普通にインストールしました。

インストール自体は非常に簡単に終了したのですが、
macirbを実行しようとすると以下のようなエラーが出て、
入力をいっさい受け付けなくなるという悲しい状況に。

pre>>
% macirb
dyld: lazy symbol binding failed: Symbol not found: _rb_enc_find_index
Referenced from: /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/universal-darwin9.0/nkf.bundle
Expected in: flat namespace

dyld: Symbol not found: _rb_enc_find_index
Referenced from: /Library/Frameworks/MacRuby.framework/Versions/0.3/usr/lib/ruby/1.9.0/universal-darwin9.0/nkf.bundle
Expected in: flat namespace
<<--

どうやら今のバージョン(0.3.1)のMacRubyには、
NKFに問題があって、日本語環境でmacirbを実行しようとすると問題があるようでした。

という事で、最新版なら直ってるかもしれないという望みにかけて、
trunkから切り出してきたMacRubyも試してみました。

pre>>
% git svn clone http://svn.macosforge.org/repository/ruby/MacRuby -T trunk
% cd MacRuby
% rake
% sudo rake install
% macruby -v
MacRuby version 0.4 (ruby 1.9.0 2008-06-03) [universal-darwin9.0]
<<--

しかし残念ながら、上記の問題はまだ直っていないようです。

posted by genki genki on Mon 22 Sep 2008 at 15:31 with 3 comments
xibbar xibbar 09/22 15:36
LANG=C macirb
ではいかが?
瀧内元気 瀧内元気 09/22 16:14
LANGを指定すればOkですね。しかし気になる。
どうやら encoding.c の中に rb_enc_find_index の定義が無いのが原因のような気がしますね。
瀧内元気 瀧内元気 09/22 16:28
rb_enc_find_indexに加えて、rb_enc_***系の関数で存在してないものがいくつかある感じですね。
Ticketを見ると、MacRuby-0.4のリリース時には用意される予定なのかも。

とりあえずはLANG=Cで対処したら良いですね。
Contents rssrss
光ファイバーを二次元振動させて走査するAR用ディスプレイ
因果の取り違え
Swift2's defer for CoffeeScript
mongodb-3.0からcreateIndexのdropDupsが無くなったらしい
mongodb-3.0以降のWiredTigerの設定を動的に変更する方法
一般楕円の高速生成アルゴリズムへの道標
farro mantecatoのレシピ
Droonga関連の記事のまとめ
RuntimeErrorの特定のメッセージに限定してrescueする方法
jQueryでscriptタグを実行せずにappendする
Tags
coffeescriptdefergroongajsmemonodenodejs
Comments rssrss
https://meros.ir https://meros.ir: وقت بخیر، بنده امروز در حال جستجو تو اینترنت با ... 04/26 09:37
https://businessrost.ru/bitrix/redirect.php?goto=http%3A%2F%2Feximha.ch%2Fblog%2Findex.php%3Fid%3Dz85yj914%26abuse%3D1636 https://businessrost.ru/bitrix/redirect.php?goto=http%3A%2F%2Feximha.ch%2Fblog%2Findex.php%3Fid%3Dz85yj914%26abuse%3D1636: I have to thank you for the efforts you have put ... 04/26 06:43
http://ldm.sakura.ne.jp/balu+bbbs/album/album.cgi?mode=detail&no=210 http://ldm.sakura.ne.jp/balu+bbbs/album/album.cgi?mode=detail&no=210: Aw, this was an incredibly good post. Taking the t... 04/25 18:19
https://www.bigbeargum.com/2019/02/15/ambrose-redmoon/ https://www.bigbeargum.com/2019/02/15/ambrose-redmoon/: Hello would you mind letting me know which hosting... 04/25 17:39
http://zeroken.jp/1978td/album/album.cgi?mode=detail&no=20 http://zeroken.jp/1978td/album/album.cgi?mode=detail&no=20: Asking questions are genuinely fastidious thing if... 04/25 17:26
https://natucci-estetica.com/?attachment_id=1376 https://natucci-estetica.com/?attachment_id=1376: Hello there, You have done a fantastic job. I wi... 04/25 17:05
https://www.waimaoz.com/23019.html?unapproved=5151&moderation-hash=a14b2a811444fc3059edb7c1441d076e https://www.waimaoz.com/23019.html?unapproved=5151&moderation-hash=a14b2a811444fc3059edb7c1441d076e: Good day! Do you use Twitter? I'd like to follow y... 04/25 16:50
https://bysystem.ru/process-proizvodstva-kartonnyh-korobok-i/ https://bysystem.ru/process-proizvodstva-kartonnyh-korobok-i/: Требовалось производство картонных коробок в сжа... 04/25 15:33