Hi gang.

I hope all are well.  I am completely befuddled by the 'problem'
here.  Essentially I have done very little yet.

I was following the article from O'Reily for "Shoes Meets Merb"

  *   URL:
http://oreilly.com/pub/a/ruby/2008/01/14/shoes-meets-merb-interfacing-a-gtk2-front-end-and-a-rails-web-service.html?page=1

That article is based on an older version -- At this point I've got
Windows/XP, ruby 1.8.7 and installed the right gems.

   merb-gen app

Made up the merb scaffold.  I have substituted the ORM details on the
article's DB code  with the init.rb configurations ... rather than the
scripts used on the article.

to build my data model, I used:

   merb-gen model paste

And I get C++ compile errors on what is essentially a require line in
Merb-Gen:

    from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-gen-1.0.11/bin/
merb-gen:6

I am lost now about what the 'problem' is?!!  I can't see any valid
reason to be making a C file and asking to complile it for a app
scaffold and there's no explanation pointing this problem on just my
machine.

The config/init.rb file used only has one change from the generated
init.rb file.

   use_orm :activerecord
   ##  -- Generated model
   ##  use_orm :datamapper

I have two issues with this problem:

   1.  Why the "compile" and why no error explaining what went
wrong.
        This appears to be a configuration issue or it is a gem/
installation issue.

   2.  Is there some out there with a a version of the, "Shoes Meets
Merb" demo
        that works with Merb 1.0.11 or better?  -- Can you show me
what I need to do??
         HELP

Otherwise I don't know if there's a problem with SQLite, my merb gems
or activerecord data controller.  The stack dump (below) explains
nothing.

At the very least, guys It would be great if someone can configure
some better diagnostics on probems :-)  OK thanks.

I'm looking forward to tips and comments.  I've started a blog on the
things I needed to do to get this project to "work with v1.0.11".

Best wishes,
                   Will


    =====================

    c:\> merb-gen model paste
           Loading init file from W:/sandbox/web-gui/merb_paste/config/
init.rb
           Loading W:/sandbox/web-gui/merb_paste/config/environments/
development.rb
cl : Command line warning D9035 : option 'Og-' has been deprecated and
will be removed in a future release
cl : Command line warning D9035 : option 'o' has been deprecated and
will be removed in a future release
cl : Command line warning D9002 : ignoring unknown option '-G6'
cl : Command line warning D9002 : ignoring unknown option '-Lc:/bin/
ruby/v1.8/lib'
c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/RubyInline-3.8.2/lib/inline.rb:
589:in `build': error executing "cl -nologo -LD   -MD -Zi  -O2b2xg- -
G6 -I c:/bin/ruby/v1.8/lib/ruby/1.8/i386-mswin32  -I c:/bin/ruby/v1.8/
include -Lc:/bin/ruby/v1.8/lib
 -o \"C:\\\\Documents and Settings\\\\william/.ruby_inline/
Inline_RawParseTree_ab80.so\" \"C:/Documents and Settings/
william/.ruby_inline/Inline_RawParseTree_ab80.c\"   -link /LIBPATH:
\"c:/bin/ruby/v1.8/lib\" /DEFAULTLIB:\"msvcrt-ruby18.lib
\" /INCREMENTAL:no /EXPORT:Init_Inline_RawParseTree_ab80": 512
(CompilationError)
Renamed C:\Documents and Settings\william/.ruby_inline/
Inline_RawParseTree_ab80.c to C:\Documents and Settings
\william/.ruby_inline/Inline_RawParseTree_ab80.c.bad
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/RubyInline-3.8.2/
lib/inline.rb:819:in `inline'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/ParseTree-3.0.4/
lib/parse_tree.rb:250
        from c:/bin/ruby/v1.8/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
        from c:/bin/ruby/v1.8/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-action-
args-1.0.11/lib/merb-action-args/get_args.rb:2
        from c:/bin/ruby/v1.8/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `gem_original_require'
        from c:/bin/ruby/v1.8/lib/ruby/site_ruby/1.8/rubygems/
custom_require.rb:31:in `require'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-action-
args-1.0.11/lib/merb-action-args.rb:1
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-core-1.0.11/
lib/merb-core/core_ext/kernel.rb:149:in `require'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-core-1.0.11/
lib/merb-core/core_ext/kernel.rb:149:in `load_dependency'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-core-1.0.11/
lib/merb-core/bootloader.rb:405:in `load_dependencies'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-core-1.0.11/
lib/merb-core/bootloader.rb:405:in `each'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-core-1.0.11/
lib/merb-core/bootloader.rb:405:in `load_dependencies'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-core-1.0.11/
lib/merb-core/bootloader.rb:393:in `run'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-gen-1.0.11/
lib/merb-gen/generator.rb:43:in `initialize'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-gen-1.0.11/
lib/merb-gen/named_generator.rb:10:in `initialize'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/templater-0.5.0/
lib/templater/cli/generator.rb:61:in `new'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/templater-0.5.0/
lib/templater/cli/generator.rb:61:in `run'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/templater-0.5.0/
lib/templater/cli/manifold.rb:24:in `run'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/templater-0.5.0/
lib/templater/manifold.rb:80:in `run_cli'
        from c:/bin/ruby/v1.8/lib/ruby/gems/1.8/gems/merb-gen-1.0.11/
bin/merb-gen:6
        from c:/bin/ruby/v1.8/bin/merb-gen:19:in `load'
        from c:/bin/ruby/v1.8/bin/merb-gen:19

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"merb" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [email protected]
For more options, visit this group at http://groups.google.com/group/merb?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to