Revisions

gist: 222135 Download_button fork
public
Public Clone URL: git://gist.github.com/222135.git
Embed All Files: show embed
Text only #
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
kmarsh@storage_a:~/src/eventmachine-eventmachine-1250ffc$ uname -a
SunOS storage_a 5.11 NexentaOS_20081207 i86pc i386 i86pc Solaris
 
kmarsh@storage_a:~/src/eventmachine-eventmachine-1250ffc$ rake build
(in /export/home/kmarsh/src/eventmachine-eventmachine-1250ffc)
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31: command not found: git ls-files
cd ext
/usr/bin/ruby1.8 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... yes
checking for rb_thread_blocking_region()... no
checking for sys/event.h... no
checking for main() in -lnsl... yes
checking for main() in -lsocket... yes
creating Makefile
cd -
cd ext/fastfilereader
/usr/bin/ruby1.8 extconf.rb
checking for main() in -lnsl... yes
checking for main() in -lsocket... yes
creating Makefile
cd -
cd ext
make
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c pipe.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from pipe.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from pipe.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c cmain.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from cmain.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from cmain.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c rubymain.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from rubymain.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from rubymain.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c ssl.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
^[[HIn file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from ssl.cpp:23:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from ssl.cpp:23:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c page.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from page.cpp:21:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from page.cpp:21:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c kb.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from kb.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from kb.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c files.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from files.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from files.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c emwin.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c cplusplus.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from cplusplus.cpp:21:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from cplusplus.cpp:21:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c em.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from em.cpp:24:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from em.cpp:24:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c ed.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from ed.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from ed.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c sigs.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from sigs.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from sigs.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c epoll.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DHAVE_RB_TRAP_IMMEDIATE -DHAVE_RBTRAP -DOS_UNIX -DOS_SOLARIS8 -DWITH_SSL -KPIC -KPIC -G -c binder.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from em.h:34,
                 from project.h:106,
                 from binder.cpp:20:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from project.h:29,
                 from binder.cpp:20:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
cc -shared -o rubyeventmachine.so pipe.o cmain.o rubymain.o ssl.o page.o kb.o files.o emwin.o cplusplus.o em.o ed.o sigs.o epoll.o binder.o -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -Wl,-E -lruby1.8 -lsocket -lnsl -lssl -lcrypto -lpthread -ldl -lcrypt -lm -lc
cd -
cd ext/fastfilereader
make
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DOS_UNIX -DOS_SOLARIS8 -KPIC -KPIC -G -c rubymain.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
In file included from /usr/lib/ruby/1.8/i386-solaris2.11/ruby.h:24,
                 from rubymain.cpp:26:
/usr/lib/ruby/1.8/i386-solaris2.11/config.h:17:1: warning: "_FILE_OFFSET_BITS" redefined
In file included from /usr/include/iso/locale_iso.h:48,
                 from /usr/include/locale.h:32,
                 from /usr/include/c++/4.2/clocale:51,
                 from /usr/include/c++/4.2/i386-pc-solaris2.11/bits/c++locale.h:47,
                 from /usr/include/c++/4.2/iosfwd:45,
                 from /usr/include/c++/4.2/ios:43,
                 from /usr/include/c++/4.2/ostream:45,
                 from /usr/include/c++/4.2/iostream:45,
                 from rubymain.cpp:22:
/usr/include/sys/feature_tests.h:209:1: warning: this is the location of the previous definition
g++ -I. -I. -I/usr/lib/ruby/1.8/i386-solaris2.11 -I. -DBUILD_FOR_RUBY -DOS_UNIX -DOS_SOLARIS8 -KPIC -KPIC -G -c mapper.cpp
g++: unrecognized option '-KPIC'
g++: unrecognized option '-KPIC'
cc -shared -o fastfilereaderext.so rubymain.o mapper.o -L"." -L"/usr/lib" -L. -Wl,-Bsymbolic-functions -Wl,-E -lruby1.8 -lsocket -lnsl -lpthread -ldl -lcrypt -lm -lc
cd -
mv ext/rubyeventmachine.so lib
mv ext/fastfilereader/fastfilereaderext.so lib
kmarsh@storage_a:~/src/eventmachine-eventmachine-1250ffc$ sudo rake install
(in /export/home/kmarsh/src/eventmachine-eventmachine-1250ffc)
/usr/local/lib/site_ruby/1.8/rubygems/custom_require.rb:31: command not found: git ls-files
/usr/bin/ruby1.8 -r rubygems -e 'require %{rubygems/gem_runner}; Gem::GemRunner.new.run(%w{install pkg/eventmachine-0.12.7.gem })'
Building native extensions. This could take a while...
ERROR: Error installing pkg/eventmachine-0.12.7.gem:
        ERROR: Failed to build gem native extension.
 
/usr/bin/ruby1.8 extconf.rb
checking for rb_trap_immediate in ruby.h,rubysig.h... yes
checking for rb_thread_blocking_region()... no
checking for sys/event.h... no
checking for main() in -lnsl... yes
checking for main() in -lsocket... yes
creating Makefile
 
make
make: Nothing to be done for `all'.
 
make install
make: *** No rule to make target `/usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.7/lib', needed by `install-so'. Stop.
 
 
Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/eventmachine-0.12.7/ext/gem_make.out
kmarsh@storage_a:~/src/eventmachine-eventmachine-1250ffc$
 
kmarsh@storage_a:~/tmp/amqp-0.6.0$ ruby examples/mq/simple.rb
/export/home/kmarsh/tmp/amqp-0.6.0/lib/amqp/client.rb:89:in `add_channel': uninitialized constant AMQP::Client::Mutex (NameError)
        from ./examples/mq/../../lib/mq.rb:144:in `initialize'
        from /usr/local/lib/site_ruby/1.8/em/deferrable.rb:133:in `call'
        from /usr/local/lib/site_ruby/1.8/em/deferrable.rb:133:in `set_deferred_status'
        from /usr/local/lib/site_ruby/1.8/em/deferrable.rb:176:in `set_deferred_success'
        from /usr/local/lib/site_ruby/1.8/em/deferrable.rb:188:in `succeed'
        from /export/home/kmarsh/tmp/amqp-0.6.0/lib/amqp/client.rb:36:in `process_frame'
        from /export/home/kmarsh/tmp/amqp-0.6.0/lib/amqp/client.rb:105:in `receive_data'
        from /usr/local/lib/site_ruby/1.8/eventmachine.rb:990:in `event_callback'
         ... 8 levels...
        from /usr/local/lib/site_ruby/1.8/pr_eventmachine.rb:309:in `run'
        from /usr/local/lib/site_ruby/1.8/pr_eventmachine.rb:64:in `run_machine'
        from /usr/local/lib/site_ruby/1.8/eventmachine.rb:135:in `run'
        from examples/mq/simple.rb:5