merb -i problem with 1.0.9

14 views
Skip to first unread message

IndianGuru

unread,
Feb 16, 2009, 8:48:53 AM2/16/09
to merb
I am using merb 1.0.9 on Windows.

When I type:
---------------
E:\ruby_simple_app> merb -i
Loading init file from E:/ruby_simple_app/config/init.rb
Loading E:/ruby_simple_app/config/environments/development.rb
~
~ ←[1;31;47mFATAL: The gem dm-types (= 0.9.10, runtime), [] was not
found←[0m
~
E:\ruby_simple_app>
----------------

I get the above error - The gem dm-types (= 0.9.10, runtime), [] was
not found

My dependencies.rb has:
merb_gems_version = "1.0.9"
dm_gems_version = "0.9.10"
do_gems_version = "0.9.11"

amongst other things.

When I type:
----------------

E:\ruby_simple_app> gem install dm-types
Building native extensions. This could take a while...
ERROR: Error installing dm-types:
ERROR: Failed to build gem native extension.

e:/ruby/bin/ruby.exe extconf.rb install dm-types
creating Makefile

nmake
'nmake' is not recognized as an internal or external command,
operable program or batch file.


Gem files will remain installed in e:/ruby/lib/ruby/gems/1.8/gems/
bcrypt-ruby-2.
0.3 for inspection.
Results logged to e:/ruby/lib/ruby/gems/1.8/gems/bcrypt-ruby-2.0.3/ext/
gem_make.
out
E:\ruby_simple_app>
----------------

What is the problem? All help appreciated.

Alex Coles

unread,
Feb 16, 2009, 9:27:04 AM2/16/09
to me...@googlegroups.com


In DM 0.9.10 dm-types has a dependency on BCrypt.

What's going on here is that RubyGems is trying to build the BCrypt
native extension on your Windows box, but it looks like you don't have
a suitable compiler Visual Studio / nmake) available.

BCrypt is actually optional (its only needed by one custom type) - and
as of this commit -
http://github.com/datamapper/dm-more/tree/d37f392ce69e5bfbc71b0aa8abade5dd22c00c63
- its not included as a gem dependency.

You may want to try installing edge DataMapper to see if the problem persists.

Alex

Matt Aimonetti

unread,
Feb 16, 2009, 12:51:50 PM2/16/09
to me...@googlegroups.com
Alex is absolutely right, note that DM removed the dependency on their "edge" version but a new Merb release doesn't mean that DM released a new version. So, the problem you previously had isn't fixed with this Merb release.

- Matt

WebReservoir

unread,
Feb 16, 2009, 11:43:41 PM2/16/09
to merb
@ Indian Guru.

Perhaps this paragraph by Mr. Matt just posted in another thread in
the same forum may help you.
---------------------------------------------------------------------------------------
DataMapper was not updated in the last few days, so if you had issues
with
DM Type on Windows, you will still have this issue, and the only
solution is
to get DM types from the repo and build the gem yourself.
---------------------------------------------------------------------------------------------

Hope this helps

WebReservoir
Reply all
Reply to author
Forward
0 new messages