librelist archives

« back to archive

gems with native code

gems with native code

From:
Hez Ronningen
Date:
2010-12-08 @ 18:10
Hello,

I've been developing an application that uses Shoes and now I need to 
plugin the serialport gem but seem to be running in to some difficulty.

I've tried getting shoes to compile it, shoes 3.0 waits forever on the 
compiling native code and never completes, shoes 2.0 compiles it ok but 
fails to load the gem after that complaining about the compiled library. 
I've also tried taking the compiled gems from my ruby system and copying 
them in with no luck.

I've noticed that shoes comes with a couple compiled gems out of the box, 
what is the easiest way to build my own ver of shoes with an additional 
gem?

Cheers
Hez

Re: [shoes] gems with native code

From:
Steve Klabnik
Date:
2010-12-08 @ 18:55
And here's the link:
http://librelist.com/browser//shoes/2010/10/1/including-gems-serialport/

> I've noticed that shoes comes with a couple compiled gems out of the box,
what is the easiest way to build my own ver of shoes with an additional gem?

Basically, you'd unpack the gem source into the same directory as those
gems, and then it _should_ (I think) Just Work.

You should give it a try and report back, that'd make a good guide...

Re: [shoes] gems with native code

From:
Cecil Coupe
Date:
2010-12-09 @ 01:56
I think you might have to tweak the rakefile to include the new gem.

On Wed, 2010-12-08 at 13:55 -0500, Steve Klabnik wrote:
> And here's the
> link: http://librelist.com/browser//shoes/2010/10/1/including-gems-serialport/
> 
> 
> > I've noticed that shoes comes with a couple compiled gems out of the
> box, what is the easiest way to build my own ver of shoes with an
> additional gem?
> 
> 
> 
> Basically, you'd unpack the gem source into the same directory as
> those gems, and then it _should_ (I think) Just Work.
> 
> 
> You should give it a try and report back, that'd make a good guide...

Re: [shoes] gems with native code

From:
Zachary Scott
Date:
2010-12-08 @ 18:45
On Wed, 2010-12-08 at 10:10 -0800, Hez Ronningen wrote:
> Hello,
> 
> I've been developing an application that uses Shoes and now I need to 
plugin the serialport gem but seem to be running in to some difficulty.
> 
> I've tried getting shoes to compile it, shoes 3.0 waits forever on the 
compiling native code and never completes, shoes 2.0 compiles it ok but 
fails to load the gem after that complaining about the compiled library. 
I've also tried taking the compiled gems from my ruby system and copying 
them in with no luck.
> 
> I've noticed that shoes comes with a couple compiled gems out of the 
box, what is the easiest way to build my own ver of shoes with an 
additional gem?
> 
> Cheers
> Hez

There was a thread on this not too long ago.