StaticMatic - 0.10.8 - Ruby 1.9 support

6 views
Skip to first unread message

Stephen Bartholomew

unread,
Mar 20, 2010, 8:02:35 PM3/20/10
to StaticMatic
Hey all,

I've just pushed a new version that has fixed a simple bug which has
staticmatic working on 1.9.

I've only tested this on my machine so far so it'd be a great if a few
of you could give it a whirl and let me know how you get on.

Cheers,

Steve

Charles Roper

unread,
Mar 20, 2010, 9:30:48 PM3/20/10
to stati...@googlegroups.com

Hey Steve,

Working great for me on ruby 1.9.1p378 (2010-01-10 revision 26273)
[i386-mingw32]

Thanks for the update - under 1.9, preview is now much snappier. Nice!

Cheers,
Charles

KingCode

unread,
May 18, 2010, 11:06:22 PM5/18/10
to StaticMatic
Hello,

I just installed 1.9 on Windows XP using the installer
rubyinstaller-1.9.1-p378-rc2.exe, then reinstalled gems and
staticmatic.

However I keep getting a '...msvcrt-ruby18.dll not found...' when
running staticmatic 'setup' or 'preview' (probably all others
fail, too).

I also have ruby 1.8.6 in a sibling directory - however my path points
currently at 1.9.1. Also, haml and compass seem to run fine
with the new vesion...

Any suggestion?

Thanks!
--
You received this message because you are subscribed to the Google Groups "StaticMatic" group.
To post to this group, send email to stati...@googlegroups.com.
To unsubscribe from this group, send email to staticmatic...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/staticmatic?hl=en.

KingCode

unread,
May 19, 2010, 10:32:02 AM5/19/10
to StaticMatic
Sorry...I forgot to list the stack trace shown after the pop-error is
closed:

C:\workspaces\static\staticmatic-compass>staticmatic preview bootstrap
C:/Ruby/1.9.1/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5-x86-mingw32/lib/
mongrel.rb:12:
in `require': 126: The specified module could not be found. - C:/
Ruby/1.9.1/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5-x86-mingw32/lib/
http11.so (LoadError)

from C:/Ruby/1.9.1/lib/ruby/gems/1.9.1/gems/mongrel-1.1.5-x86-mingw32/
lib/mongrel.rb:12:in `<top (required)>'
from C:/Ruby/1.9.1/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/
handler/mongrel.rb:1:in `require'
from C:/Ruby/1.9.1/lib/ruby/gems/1.9.1/gems/rack-1.1.0/lib/rack/
handler/mongrel.rb:1:in `<top (required)>'
from C:/Ruby/1.9.1/lib/ruby/gems/1.9.1/gems/staticmatic-0.10.8/lib/
staticmatic.rb:6:in `require'
from C:/Ruby/1.9.1/lib/ruby/gems/1.9.1/gems/staticmatic-0.10.8/lib/
staticmatic.rb:6:in `<top (required)>'
from C:/Ruby/1.9.1/lib/ruby/gems/1.9.1/gems/staticmatic-0.10.8/bin/
staticmatic:3:in `require'
from C:/Ruby/1.9.1/lib/ruby/gems/1.9.1/gems/staticmatic-0.10.8/bin/
staticmatic:3:in `<top (required)>'
from C:/Ruby/1.9.1/bin/staticmatic:19:in `load'
from C:/Ruby/1.9.1/bin/staticmatic:19:in `<main>'

Any comment is appreciated - Thx

KingCode

unread,
May 19, 2010, 10:55:35 AM5/19/10
to StaticMatic
Sorry for reposting so often, but it seems the old ruby install's .dll
is searched for - however I checked my paths and environment variables
and all are pointing to the new install...do I need to uninstall the
old version? (I hope not)

Is this a Ruby, rather than staticmatic, issue?

Thx
Message has been deleted

Ulises

unread,
May 29, 2010, 2:28:37 PM5/29/10
to StaticMatic
I had a similar problem, and the root of the problem was Mongrel, and
it's http11.

This is what worked for me.

Go to where you have Mongrel installed and look for a folder named
http11. Inside it, there should be a file named http11.c, so open it
with your text-editor. The trick is to replace everything that looks
like this

RSTRING(foo)->ptr

RSTRING(foo)->len

with

RSTRING_PTR(foo)

RSTRING_LEN(foo)

respectively.

"Gotta catch e'm all" or it won't be super-effective. In the same
directory, as sudo, run

ruby extconf.rb install mongrel
make
make install

The other file to change around is handlers.rb, and you have to change
all instances of

: false

to

then false

go back to mongrel-1.1.5 and run
ruby setup.rb
gem build mongrel.gemspec
gem install mongrel.gem

Now, I'm running staticmatic without a hitch :cool:

Good luck!

Stephen Bartholomew

unread,
May 29, 2010, 2:49:56 PM5/29/10
to StaticMatic
Great fix but man - it really shouldn't be this complicated.
Seriously considering dropping mongrel in favour of webrick for the
next release.

Steve

Ulises Ramirez-Roche

unread,
Jun 3, 2010, 6:54:40 AM6/3/10
to StaticMatic
Problem gets solved as well if you install mongrel from other sources
like rubyinstaller.

Stephen Bartholomew

unread,
Jun 3, 2010, 7:01:48 AM6/3/10
to StaticMatic
Hey,

As I've said here: http://groups.google.com/group/staticmatic/browse_thread/thread/a6a1c28a23c73115,
I want sm to work as easy out of the box as possible. Webrick will
work fine for most cases and I may add a configuration option for it
if some folks have problems with using webrick.

Steve


On Jun 3, 11:54 am, Ulises Ramirez-Roche
Reply all
Reply to author
Forward
0 new messages