install source for merb 1.1 edge?

0 views
Skip to first unread message

Jon Hancock

unread,
Dec 21, 2009, 8:21:14 PM12/21/09
to merb
about 4 months ago, I installed merb as follows:
sudo gem install merb --source http://edge.merbivore.com --source
http://gems.rubyforge.org

It was my understanding this was the latest merb 1.1 code.
I have no idea what the current repository is now. How are others
installing merb edge (I'm using ruby 1.9.1)?

Any pointers? thanks, Jon

Kai Chen

unread,
Dec 21, 2009, 8:29:05 PM12/21/09
to me...@googlegroups.com
http://wiki.github.com/merb/merb/howto-install

--
Regards,
Kai Chen

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

Jon Hancock

unread,
Dec 21, 2009, 9:29:22 PM12/21/09
to merb
thanks for the link.
I've installed merb from github.com/merb/merb and am pretty sure I
have all other dependents accounted for, but doing a simple "merb-gen
app merb_test" fails.

Here's a stack trace:

Merb root at: /Users/jhancock/src
/usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/bundler-0.7.2/lib/
bundler/dsl.rb:26:in `default_gemfile':
Bundler::DefaultManifestNotFound (Bundler::DefaultManifestNotFound)
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/bundler-0.7.2/
lib/bundler/dsl.rb:8:in `load_gemfile'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/merb-
core-1.1.0.pre/lib/merb-core/bootloader.rb:422:in `rescue in
load_dependencies'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/merb-
core-1.1.0.pre/lib/merb-core/bootloader.rb:402:in `load_dependencies'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/merb-
core-1.1.0.pre/lib/merb-core/bootloader.rb:383:in `run'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/merb-
gen-1.1.0.pre/lib/merb-gen/generator.rb:43:in `initialize'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/merb-
gen-1.1.0.pre/lib/merb-gen/named_generator.rb:10:in `initialize'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/merb-
gen-1.1.0.pre/lib/merb-gen/app_generator.rb:8:in `initialize'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/
templater-1.0.0/lib/templater/cli/generator.rb:61:in `new'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/
templater-1.0.0/lib/templater/cli/generator.rb:61:in `run'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/
templater-1.0.0/lib/templater/cli/manifold.rb:24:in `run'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/
templater-1.0.0/lib/templater/manifold.rb:80:in `run_cli'
from /usr/local/ruby-191-p376/lib/ruby/gems/1.9.1/gems/merb-
gen-1.1.0.pre/bin/merb-gen:5:in `<top (required)>'
from /usr/local/ruby/bin/merb-gen:19:in `load'
from /usr/local/ruby/bin/merb-gen:19:in `<main>'

Can someone point me to up to date bundler usage? There are several
old posts on using it and the latest page at
http://wiki.github.com/merb/merb/howto-using-the-bundler is half-baked
and doesn't have instructions for creating a new project. What I
usually do when migrating to a more recent merb for a current project
is generate a new app with merb-gen and study what files changed from
what I have in my working project. Now that merb-gen is busted, I
can't even do that.

thanks, Jon

Kai Chen

unread,
Dec 21, 2009, 9:35:09 PM12/21/09
to me...@googlegroups.com
I think another page of merb wiki will helpful:

http://wiki.github.com/merb/merb/howto-using-the-bundler

--
Regards,
Kai Chen

Jon Hancock

unread,
Dec 21, 2009, 10:02:14 PM12/21/09
to merb
thanks, I've read that page and referenced it in my last reply. Any
ideas why merb-gen isn't working?
thanks, Jon

> >http://wiki.github.com/merb/merb/howto-using-the-bundleris half-baked

Kai Chen

unread,
Dec 21, 2009, 10:17:58 PM12/21/09
to me...@googlegroups.com
oops, I misunderstand.

I met this issue also. And I found a temporary and ugly solution.
First touch a file named Gemfile, and run: "merb-gen app ." command. I
think it's a issue after pk's bundle integration upgrade. You may as
well report this problem in lighthouseapp.

--
Regards,
Kai Chen

Kai Chen

unread,
Dec 21, 2009, 10:29:26 PM12/21/09
to me...@googlegroups.com
I found following codes in merb-gen's initialize method.

Merb::BootLoader::Logger.run
Merb::BootLoader::BuildFramework.run
Merb::BootLoader::Dependencies.run

I can't understand the last line above. I comment this line and
merb-gen works well. Maybe only michaelklishin the author of merb-gen
know this. Is there anyone know that?

--
Regards,
Kai Chen

Kai Chen

unread,
Dec 22, 2009, 7:37:43 AM12/22/09
to me...@googlegroups.com
Hi Jon,

I try to fix this issue in my fork:

http://github.com/kaichen/merb/tree/fix_merb-gen

You can clone it and run 'rake install' in merb/merb-core directory to
install the patched merb-core gem.

--
Regards,
Kai Chen

Reply all
Reply to author
Forward
0 new messages