11.11.07
Merb on Windows: environment variables required.
[Update: Merb is now working on Windows]
After getting merb installed I created a project using “merb myapp” - this worked fine. Next I tried just running “merb” to see where I was at.
Merb started with these options:---:merb_root: C:/InstantRails/projects/merb_1/myapp :reloader_time: 0.5 :cache_templates: false :use_mutex: true :session_id_cookie_only: true :session_secret_key: C:/INSTANTRAILS/PROJECTS/MERB_1/MYAPP5259 :host: 0.0.0.0 :query_string_whitelist: [] :reloader: true :exception_details: true :environment: development :port: “4000″ Define INLINEDIR or HOME in your environment and try again
The error “Define INLINEDIR or HOME in your environment and try again” was not expected but I’m game.
I looked around for a place to define environment variables (since “:environment: development” seemed to hint that there would be one).
So I tried the obvious directory listing:
C:\InstantRails\projects\merb_1\myapp>dir development.rb /s Volume in drive C has no label. Volume Serial Number is 2256-DBBA Directory of C:\InstantRails\projects\merb_1\myapp\config\environments 11/11/2007 12:48 AM 44 development.rb 1 File(s) 44 bytes
I opened it and changed it’s contents to:
puts "Loaded DEVELOPMENT Environment..." ENV['INLINEDIR'] = “C:/Users/Robert/AppData/Local/Temp”
But the error persisted. So I just set INLINEDIR in the environment.
Further … but now a new error:
C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:397:in ``': No such file or directory - cl -nologo -LD -Werror -MD -Zi -O2b2xg- -G6 -I C:/InstantRails/ruby/lib/ruby/1.8/i386-mswin32 -I C:/InstantRails/ruby/include -o "C:/Users/Robert/AppData/Local/Temp/.ruby_inline/Inline_ParseTree_fa12.so" "C:/Users/Robert/AppData/Local/Temp/.ruby_inline/Inline_ParseTree_fa12.c" -link /LIBPATH:"C:/InstantRails/ruby/lib" /DEFAULTLIB:"msvcrt-ruby18.lib" /INCREMENTAL:no /EXPORT:Init_Inline_ParseTree_fa12 (Errno::ENOENT) from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:397:in `build' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/RubyInline-3.6.5/lib/inline.rb:679:in `inline' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ParseTree-2.0.2/lib/parse_tree.rb:243 from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `gem_original_require' from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:27:in `require' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/ruby2ruby-1.1.7/lib/ruby2ruby.rb:4 from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `gem_original_require' from C:/InstantRails/ruby/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:32:in `require' ... 13 levels... from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/merb-0.4.1/lib/merb/server.rb:500:in `run' from C:/InstantRails/ruby/lib/ruby/gems/1.8/gems/merb-0.4.1/bin/merb:6 from C:/InstantRails/ruby/bin/merb:16:in `load' from C:/InstantRails/ruby/bin/merb:16
Is it just me or does that look like it’s trying to run a C compiler?
Investigating now…