[MacRuby-devel] µgem (notice I am using your Greek character!) question

Eloy Duran eloy.de.enige at gmail.com
Fri Feb 13 12:59:11 PST 2009


Hi Tim,

I think you meant to direct your question at me rather then Matt, but  
since you're using the Greek character you are forgiven for anything ;-)

So the problem with sqlite3 is that it requires a C extension, which  
is one of the things not yet supported by MicroGem.
I don't think it's perticualiary hard to get that to work though.  
However, I won't have much time to look at it these coming days,
so if you would like to get this to work you'll have to get your hands  
dirty.

Since MicroGem is all about achieving goals in a as simple as possible  
way, I guess you could see what kind of commands
you'd have to execute in the terminal to install the sqlite3-ruby  
library by hand and adding a compile method to Gem::MicroGem::Installer
which executes these commands.

I hope this helps you further, let me know if you have any questions.

Cheers,
Eloy

On 13 feb 2009, at 18:35, Tim Rand wrote:

> Hi Matt,
> First of all, thank you so much for working on the gem issue with  
> macruby.
> There is no more important work in the world, er universe, right now  
> than this--I mean it, from the bottom of my frustrated-at-not-being- 
> able-to-use-sqlite3-heart.
> I am hoping you could comment on why sqlite3-ruby seems to install,  
> but still isn't functional.
>
> Here is how I did with my first try at using µgem.
> 1. Installing rake via µgem appears to have worked! (this is hard to  
> verify because "require 'rake'" works in macirb even before  
> installing with µgem).
> 2. Installing sqlite3 via µgem seems to have worked! (BUT "require  
> 'sqlite3'" STILL FAILS in macirb).
>
> How do you test gems installed via µgem? Where do they install to?  
> Does that path need to be added to the $: for macirb to find them?  
> Sorry for the basic questions...
> Thanks, Tim
>
>
> Here is my terminal screen:
>
> Tim:~/Documents/References/Technical/Ruport Book and pics/microgem/ 
> bin> sudo ./µgem install rake
> [info] Installing `rake-0.8.3'
> Tim:~/Documents/References/Technical/Ruport Book and pics/microgem/ 
> bin> which rake
> /usr/bin/rake
> Tim:~/Documents/References/Technical/Ruport Book and pics/microgem/ 
> bin> macgem which rake
> /Library/Frameworks/MacRuby.framework/Versions/0.4/usr/lib/ruby/ 
> 1.9.0/rake.rb
> Tim:~/Documents/References/Technical/Ruport Book and pics/microgem/ 
> bin> sudo ./µgem install sqlite3-ruby
> Password:
> [info] Installing `sqlite3-ruby-1.2.4'
> Tim:~/Documents/References/Technical/Ruport Book and pics/microgem/ 
> bin> macgem which sqlite3
> Can't find sqlite3
> Tim:~/Documents/References/Technical/Ruport Book and pics/microgem/ 
> bin> macgem which sqlite3-ruby
> Can't find sqlite3-ruby
> Tim:~/Documents/References/Technical/Ruport Book and pics/microgem/ 
> bin> macgem query --local
>
> *** LOCAL GEMS ***
>
> alloy-microgem (0.2.0)
>
> _______________________________________________
> MacRuby-devel mailing list
> MacRuby-devel at lists.macosforge.org
> http://lists.macosforge.org/mailman/listinfo.cgi/macruby-devel



More information about the MacRuby-devel mailing list