2010-07-01から1ヶ月間の記事一覧

Ubuntu10.04/i686でRuby1.9.1p429がビルドできない件について

make 途中で minruby が Segmentation fault で落ちてしまうというもの。 ./miniruby -I./lib -I.ext/common -I./- -r./ext/purelib.rb ./tool/generic_erb.rb -c -o encdb.h ./template/encdb.h.tmpl ./enc enc /home/suzumura/ruby-1.9.1-p429/lib/optpars…

firefox-3.6が起動できない件について

環境は CentOS5.5/x86_64 ですが、多分SELinuxが有効なら無関係かな。こんな感じで [ ~]$ firefox /usr/local/bin/firefox-3/firefox-bin: error while loading shared libraries: /usr/local/bin/firefox-3/libxul.so: cannot restore segment prot after r…

Ruby GServer を叩いてみる

GServer自体は簡単で良い物なんだけど、多少気になる挙動があるのでメモ。 echos.rb #!/usr/bin/env ruby require 'gserver' class EchoServer < GServer def self.start s = self.new(10001, '0.0.0.0', 1000) trap(:INT) { s.stop } s.start s end def ini…