librelist archives

« back to archive

Sqlite and Shoes

Sqlite and Shoes

From:
Steve Klabnik
Date:
2010-07-03 @ 23:01
Hey guys-

Just trying to build the latest Shoes on Snow Leopard... and with a few
modifications to the Rakefile, pulled it off. But. One issue: it crashes,
due to this:

Dyld Error Message:

  Symbol not found: _STR2CSTR

  Referenced from:
> 
/Users/steveklabnik/Documents/src/shoes/Shoes.app/Contents/MacOS/ruby/gems/1.9.1/gems/sqlite3-ruby-1.2.5-x86-mswin32/lib/sqlite3_api.bundle

  Expected in: flat namespace


 ... so, sqlite3-ruby ... mswin? Is this right? Is that still okay anyway?

Re: [shoes] Sqlite and Shoes

From:
ashbb
Date:
2010-07-04 @ 08:16
Ohhh, sorry. This is my fault. I've not noticed that.

Look at sqlite3-ruby download page:
http://rubyforge.org/frs/?group_id=254&release_id=43811

And a tiny note:
http://github.com/ashbb/shoes_hack_note/blob/master/md/hack008.md

I'd used Windows gem file for extracting source code and gemspec file.
But after that, I forgot to modify gemspec file.

I think that the directory name
`dist/ruby/gems/1.9.1/gems/sqlite3-ruby-1.2.5-x86-mswin32` is bad, but not
so serious problem for Linux... hopefully.

Because sqlite3-ruby is a Ruby interface for the SQLite database engine.

The latest Shoes uses SQLite database engine:

- Windows: sqlitedll-3_6_11

http://github.com/ashbb/rubyinstaller/blob/master/config/ruby_installer.rb#L257

- Linux: libsqlite3-dev (3.6.10-1)
  http://packages.ubuntu.com/jaunty/libsqlite3-dev

I'm going to update sqlite3-ruby to 1.3.0 and revise this problem for Linux.

ashbb

Re: [shoes] Sqlite and Shoes

From:
ashbb
Date:
2010-07-04 @ 08:19
ps. Sorry, I don't know anything about Mac. :(

ashbb

Re: [shoes] Sqlite and Shoes

From:
Devyn Cairns
Date:
2010-07-04 @ 17:22
For this part of Shoes, they're similar enough. (class OSX < UNIX, class
Linux < UNIX) :D

On Sun, Jul 4, 2010 at 1:19 AM, ashbb <ashbbb@gmail.com> wrote:

> ps. Sorry, I don't know anything about Mac. :(
>
> ashbb
>



-- 
   ~devyn

Re: [shoes] Sqlite and Shoes

From:
ashbb
Date:
2010-07-04 @ 10:48
Updated sqlite3-ruby to 1.3.0 on my github repo:
http://github.com/ashbb/shoes/commit/a027d5a7e52137bf887d05e0b09badaa6163056a

Please confirm. If there is no problem for all platforms, I'll send pull
request to official repo (shoes/shoes).

ps. Look at this release note:
http://rubyforge.org/forum/forum.php?forum_id=37179
    `Prevent mkmf interfere with Mighty Snow Leopard` ... Is this helpful
for Shoes?

ashbb

Re: [shoes] Sqlite and Shoes

From:
Cecil Coupe
Date:
2010-07-05 @ 03:12
Ashbb,

  It works for me (Linux X64)

--Cecil

On Sun, 2010-07-04 at 19:48 +0900, ashbb wrote:
> Updated sqlite3-ruby to 1.3.0 on my github repo:
> http://github.com/ashbb/shoes/commit/a027d5a7e52137bf887d05e0b09badaa6163056a
> 
> Please confirm. If there is no problem for all platforms, I'll send
> pull request to official repo (shoes/shoes).
> 
> ps. Look at this release note:
> http://rubyforge.org/forum/forum.php?forum_id=37179
>     `Prevent mkmf interfere with Mighty Snow Leopard` ... Is this
> helpful for Shoes?
> 
> ashbb
> 

Re: [shoes] Sqlite and Shoes

From:
ashbb
Date:
2010-07-05 @ 13:23
Cecil,

Good news! Thank you for taking time.
Okay, I'm going to send a pull request. :)

ashbb