install difficulties with 1.9

21 views
Skip to first unread message

rogerdpack

unread,
Jun 12, 2008, 9:23:03 AM6/12/08
to merb
I'm trying to install merb on 1.9
The current problem seems to be gem dependencies. hpricot doesn't
work on 1.9
Have others had to overcome this problem?
Can I use it without hpricot?
Thanks!

rogerdpack

unread,
Jun 12, 2008, 9:46:11 AM6/12/08
to merb
when installing from git it yields the following:

~/19/merby git clone git://github.com/wycats/merb-core.git
Initialized empty Git repository in /Users/rogerpack/19/merby/merb-
core/.git/
remote: Counting objects: 7833, done.
remote: Compressing objects: 100% (2927/2927), done.
remote: Total 7833 (delta 4587), reused 7833 (delta 4587)
Receiving objects: 100% (7833/7833), 2.21 MiB | 143 KiB/s, done.
Resolving deltas: 100% (4587/4587), done.
~/19/merby ls
merb-core
~/19/merby cd merb-core/
~/19/merby/merb-core ~/19/bin/rake install
(in /Users/rogerpack/dev/ruby_19_installed/merby/merb-core)
WARNING: no rubyforge_project specified
Successfully built RubyGem
Name: merb-core
Version: 0.9.4
File: merb-core-0.9.4.gem
sudo gem install --local pkg/merb-core-0.9.4.gem --no-rdoc --no-ri
ERROR: While executing gem ... (ArgumentError)
string contains null byte
rake aborted!
Command failed with status (1): [sudo gem install --local pkg/merb-
core-0....]
/Users/rogerpack/dev/ruby_19_installed/merby/merb-core/rakefile:71:in
`block in <top (required)>'
(See full trace by running task with --trace)
~/19/merby/merb-core sudo ~/19/gem install --local pkg/merb-
core-0.9.4.gem --no-rdoc --no-ri
sudo: /Users/rogerpack/19/gem: command not found
~/19/merby/merb-core sudo ~/19/bin/gem install --local pkg/merb-
core-0.9.4.gem --no-rdoc --no-ri
ERROR: While executing gem ... (ArgumentError)
string contains null byte


Ideas?
-R

rogerdpack

unread,
Jul 3, 2008, 3:23:24 PM7/3/08
to merb
appears that since it has a dependency on hpricot [which is broken for
1.9 currently], the only way to install it is piece-wise.

gem19 install merb merb-action-args merb-assets merb-builder merb-
cache merb-core merb-freezer merb-gen merb-haml merb-mailer merb-more
merb-parts merb_sequel ruby2ruby activesupport mailfactory sequel
rubigen haml builder erubis rubigen json_pure rspec rack mime-types --
ignore-dependencies

# rubigen requires activesupport

and
apply a 1.9 patch [1]

and then it looks like you still can't create a merb project, since
rubigen isn't 1.9 compatible. So it has at least two dependencies
that aren't 1.9 compat [not even in their svn version]: rubigen,
hpricot.

Sigh.
Back to ramaze.

-R


[1] http://merb.lighthouseapp.com/projects/7433/tickets/345-1-9-fixes#ticket-345-4

Ezra Zygmuntowicz

unread,
Jul 4, 2008, 6:08:03 PM7/4/08
to me...@googlegroups.com

Merb HEAD no longer depends on hpricot. And we have a new generator
framework that is not rubigen and does not depend on activesupport.
The new generators should be merged soon. So I'd say make sure you are
working from git HEAD right now and give us a week or so to have the
new generators merged.

1.9 really isn't stable enough to run production apps on yet so I
haven't been focusing on testing 1.9 stuff. I'm glad you;ve been
playing with it though. I'll see what we can do to make sure the next
release(coming very soon) works clean on 1.9 though.

Thanks

-Ezra

j4s0n

unread,
Jul 6, 2008, 6:09:20 AM7/6/08
to merb
I got almost the same error a while ago with the gem compile. Might
have to check or update your rubygem to latest, then try again.
> > [1]http://merb.lighthouseapp.com/projects/7433/tickets/345-1-9-fixes#tic...
Reply all
Reply to author
Forward
0 new messages