[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Ruby 1.9.1, Test/Unit, and EventMachine

elliottcable

2/1/2009 6:48:00 PM

I'm trying to install my second gem after updating to Ruby 1.9.1, and
I'm having problems.

First of all, I found that I couldn't install EventMachine as it was,
because it depended on Test/Unit which is apparently not bundled with
Ruby as of 1.9; so I ran `sudo gem install test-unit`. Everything
appeared to go smoothly.

However, having cloned EventMachine from GitHub and built the gem, I
get this error when trying to `gem install` the .gem file:

--------------------------------
<Sun Feb 01 - 09:39:54><elliottcable - Geoffrey><~/Code/src/
eventmachine/><master - ae1f407>
? gem install pkg/eventmachine-0.12.3.gem
WARNING: Installing to ~/.gem since /usr/local/lib/ruby/gems/1.9.1
and
/usr/local/bin aren't both writable.
WARNING: You don't have /Users/elliottcable/.gem/ruby/1.9.1/bin in
your PATH,
gem executables will not run.
Building native extensions. This could take a while...
ERROR: Error installing pkg/eventmachine-0.12.3.gem:
ERROR: Failed to build gem native extension.

rake RUBYARCHDIR=/Users/elliottcable/.gem/ruby/1.9.1/gems/
eventmachine-0.12.3/lib RUBYLIBDIR=/Users/elliottcable/.gem/ruby/1.9.1/
gems/eventmachine-0.12.3/lib
cd ext
(in /Users/elliottcable/.gem/ruby/1.9.1/gems/eventmachine-0.12.3)
checking for rb_thread_blocking_region()... yes
checking for RB_UBF_DFL in ruby.h... no
checking for sys/event.h... yes
checking for sys/queue.h... yes
creating Makefile
cd -
cd ext
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o binder.o -c
binder.cpp
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o cmain.o -c
cmain.cpp
cmain.cpp:501:2: warning: "/*" within comment
cmain.cpp: In function ‘int evma_send_file_data_to_connection(const
char*, const char*)’:
cmain.cpp:527: warning: comparison between signed and unsigned integer
expressions
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o cplusplus.o
-c cplusplus.cpp
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o ed.o -c
ed.cpp
ed.cpp: In constructor ‘DatagramDescriptor::DatagramDescriptor(int,
EventMachine_t*)’:
ed.cpp:1058: warning: unused variable ‘sob’
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o em.o -c
em.cpp
em.h: In constructor ‘EventMachine_t::EventMachine_t(void (*)(const
char*, int, const char*, int))’:
em.h:144: warning: ‘EventMachine_t::bKqueue’ will be initialized after
em.h:142: warning: ‘int EventMachine_t::epfd’
em.cpp:73: warning: when initialized here
em.cpp: In static member function ‘static int
EventMachine_t::SetRlimitNofile(int)’:
em.cpp:252: warning: comparison between signed and unsigned integer
expressions
em.cpp: In member function ‘bool EventMachine_t::_RunKqueueOnce()’:
em.cpp:580: warning: comparison between signed and unsigned integer
expressions
em.cpp: In member function ‘const char*
EventMachine_t::InstallOneshotTimer(int)’:
em.cpp:881: warning: comparison between signed and unsigned integer
expressions
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o emwin.o -c
emwin.cpp
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o epoll.o -c
epoll.cpp
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o files.o -c
files.cpp
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o kb.o -c
kb.cpp
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o page.o -c
page.cpp
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o pipe.o -c
pipe.cpp
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o rubymain.o -
c rubymain.cpp
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o sigs.o -c
sigs.cpp
g++ -I. -I/usr/local/include/ruby-1.9.1/i386-darwin9.6.0 -I/usr/local/
include/ruby-1.9.1/ruby/backward -I/usr/local/include/ruby-1.9.1 -I. -
DBUILD_FOR_RUBY -DHAVE_RB_THREAD_BLOCKING_REGION -DOS_UNIX -
DHAVE_SYS_EVENT_H -DHAVE_SYS_QUEUE_H -DHAVE_KQUEUE -DWITH_SSL -
D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-
parentheses -pipe -fno-common -I/opt/local/include -o ssl.o -c
ssl.cpp
g++ -dynamic -bundle -undefined suppress -flat_namespace -o
rubyeventmachine.bundle binder.o cmain.o cplusplus.o ed.o em.o emwin.o
epoll.o files.o kb.o page.o pipe.o rubymain.o sigs.o ssl.o -L. -L/usr/
local/lib -L. -L/usr/local/lib -L/opt/local/lib -lssl -lcrypto -
lz -lpthread -ldl -lobjc
cd -
mv ext/rubyeventmachine.bundle lib
Loaded suite tests/testem
Started
.........................................................................../
usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/unit/ui/
console/testrunner.rb:141:in `flush': Bad file descriptor
(Errno::EBADF)
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/ui/console/testrunner.rb:141:in `output_single'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/ui/console/testrunner.rb:129:in `output'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/ui/console/testrunner.rb:124:in `nl'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/ui/console/testrunner.rb:93:in `finished'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/util/observable.rb:78:in `call'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/util/observable.rb:78:in `block in notify_listeners'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/util/observable.rb:78:in `each'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/util/observable.rb:78:in `notify_listeners'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/ui/testrunnermediator.rb:55:in `ensure in run_suite'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/ui/testrunnermediator.rb:55:in `run_suite'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/ui/console/testrunner.rb:74:in `start_mediator'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/ui/console/testrunner.rb:46:in `start'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/ui/testrunnerutilities.rb:24:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/autorunner.rb:269:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit/autorunner.rb:44:in `run'
from /usr/local/lib/ruby/gems/1.9.1/gems/test-unit-2.0.2/lib/test/
unit.rb:340:in `block in <top (required)>'
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -Ilib -Iext -
Ijava tes...]

(See full trace by running task with --trace)


Gem files will remain installed in /Users/elliottcable/.gem/ruby/1.9.1/
gems/eventmachine-0.12.3 for inspection.
Results logged to /Users/elliottcable/.gem/ruby/1.9.1/gems/
eventmachine-0.12.3/gem_make.out
Updating class cache with 1318 classes...
--------------------------------

I wouldn't post this on this list, except that I'm not sure if the
problem originates in EventMachine or Test/Unit or in changes
introduced in 1.9.1. Any help is appreciated!
6 Answers

Phlip

2/1/2009 8:48:00 PM

0

elliottcable wrote:

> I'm trying to install my second gem after updating to Ruby 1.9.1, and
> I'm having problems.

Reports of Ruby 1.8's death were greatly exaggerated. Go back!

--
Ruby 1.8

Dimitrios Paskoudniakis

3/25/2011 10:21:00 PM

0


"Dimitrios Paskoudniakis" <greekgod@yeahright.com> wrote in message
news:imj48b$p3u$1@dont-email.me...
>
> "Dimitrios Paskoudniakis" <greekgod@yeahright.com> wrote in message
> news:imj452$ogc$1@dont-email.me...
>>
>> "ermitano" <maikelburgue@gmail.com> wrote in message
>> news:71fe93e9-20fa-4600-a0ff-f113d5a9f027@l2g2000prg.googlegroups.com...
>>> anyone knows something about it?
>>
>> http://www.andina.com.pe/Ingles/Noticia.aspx?Id=0R...
>
> For some reason the above link did not work correctly. The "=" must be
> included at the end of the web address.
>
>
9 May confirmed in Lima, Peru.

http://www.andina.com.pe/Ingles/Noticia.aspx?id=ET...

Again don't click on the link, but copy the entire link with "=" at the end
into your browser. I don't know why my email is excluding the "=" when
creating a link from the web address.

Free Assange!

3/26/2011 3:32:00 AM

0

On Mar 25, 6:20 pm, "Dimitrios Paskoudniakis" <greek...@yeahright.com>
wrote:
> "Dimitrios Paskoudniakis" <greek...@yeahright.com> wrote in message
>
> news:imj48b$p3u$1@dont-email.me...
>
> > "Dimitrios Paskoudniakis" <greek...@yeahright.com> wrote in message
> >news:imj452$ogc$1@dont-email.me...
>
> >> "ermitano" <maikelbur...@gmail.com> wrote in message
> >>news:71fe93e9-20fa-4600-a0ff-f113d5a9f027@l2g2000prg.googlegroups.com...
> >>> anyone knows something about it?
>
> >>http://www.andina.com.pe/Ingles/Noticia.aspx?Id=0R...
>
> > For some reason the above link did not work correctly.  The "=" must be
> > included at the end of the web address.
>
> 9 May confirmed in Lima, Peru.
>
> http://www.andina.com.pe/Ingles/Noticia.aspx?id=ET...
>
> Again don't click on the link, but copy the entire link with "=" at the end
> into your browser.  I don't know why my email is excluding the "=" when
> creating a link from the web address.

?

I clicked the link and it redirected just fine. Firefox, of course.

Michael Burgueño

3/26/2011 4:20:00 AM

0

On 25 mar, 18:20, "Dimitrios Paskoudniakis" <greek...@yeahright.com>
wrote:
> "Dimitrios Paskoudniakis" <greek...@yeahright.com> wrote in message
>
> news:imj48b$p3u$1@dont-email.me...
>
> > "Dimitrios Paskoudniakis" <greek...@yeahright.com> wrote in message
> >news:imj452$ogc$1@dont-email.me...
>
> >> "ermitano" <maikelbur...@gmail.com> wrote in message
> >>news:71fe93e9-20fa-4600-a0ff-f113d5a9f027@l2g2000prg.googlegroups.com...
> >>> anyone knows something about it?
>
> >>http://www.andina.com.pe/Ingles/Noticia.aspx?Id=0R...
>
> > For some reason the above link did not work correctly.  The "=" must be
> > included at the end of the web address.
>
> 9 May confirmed in Lima, Peru.
>
> http://www.andina.com.pe/Ingles/Noticia.aspx?id=ET...
>
> Again don't click on the link, but copy the entire link with "=" at the end
> into your browser.  I don't know why my email is excluding the "=" when
> creating a link from the web address.

thanks! the link worked fine. i'm hoping he comes to Chile this time.

there's a video in that page of Paul playing Obladi Oblada.. besides
Paul's weak high notes, it seems that the drummer only knows to hit
hard the drums.

Free Assange!

3/26/2011 4:33:00 AM

0

On Mar 26, 12:19 am, ermitano <maikelbur...@gmail.com> wrote:
> there's a video in that page of Paul playing Obladi Oblada.. besides
> Paul's weak high notes, it seems that the drummer only knows to hit
> hard the drums.

Abe Laboriel's not flashy, just a solid drummer.

BTW, try "it seems that the drummer only knows *how* to hit the drums
hard"; think 'hit,
*hit what*, *how*'. As in, 'the dog runs fast' instead of 'the dog
fast runs'.

OK, English lesson is over. I'm an American, but I speak English too.
As George Bernard Shaw once wrote, "England and America are two
countries separated by the same language".

Michael Burgueño

3/26/2011 5:06:00 AM

0

On 26 mar, 00:33, King Size Johnson <bellyfl...@yahoo.com> wrote:
> On Mar 26, 12:19 am, ermitano <maikelbur...@gmail.com> wrote:
>
> > there's a video in that page of Paul playing Obladi Oblada.. besides
> > Paul's weak high notes, it seems that the drummer only knows to hit
> > hard the drums.
>
> Abe Laboriel's not flashy, just a solid drummer.
>
> BTW, try "it seems that the drummer only knows *how* to hit the drums
> hard"; think 'hit,
> *hit what*, *how*'. As in, 'the dog runs fast' instead of 'the dog
> fast runs'.
>
> OK, English lesson is over. I'm an American, but I speak English too.
> As George Bernard Shaw once wrote, "England and America are two
> countries separated by the same language".

ha, thanks.. it makes no difference in spanish, but i know what you
mean.
i think he doesn't know how to control his dynamics, please listen to
the drums intro in this Obladi Oblada performance:
http://www.youtube.com/watch?v=B...

well, maybe his drums are very compressed