Hello all
I have built a new machine and am going through the paces to install
merb. My ultimate goal is to get a frozen merb app by the end of the
day.
First off, merb does not install without sqlite3. I think that is a
bit weird, but I realize that sqlite3 is standard on Mac. The system I
am using now is FreeBSD 7. Below is the error I get when trying to
install merb without sqlite3:
[EMAIL PROTECTED] (ttyp0) 19 /home/jdf > sudo gem install merb
Building native extensions. This could take a while...
ERROR: Error installing merb:
ERROR: Failed to build gem native extension.
/usr/local/bin/ruby18 extconf.rb install merb
checking for sqlite3.h... no
*** extconf.rb failed ***
No big deal, I install sqlite3, but then gem install merb fails again
because it can't find the header files. My sqlite3.h file is in
/usr/local/include. I thought that was a standard location. Anyway, no
worries, we can get around that too:
[EMAIL PROTECTED] (ttyp0) 20 /home/jdf sudo gem install merb --
--with-sqlite3-include=/usr/local/include
Everything installed ok. And man, does merb have a lot of dependencies[1].
Now, I want to build my first merb app. Here I go, wish me luck:
[EMAIL PROTECTED] (ttyp0) 28 /home/jdf/devel > merb-gen app myfirstmerbapp
/usr/local/lib/ruby/gems/1.8/gems/json_pure-1.1.3/lib/json/pure.rb:13:
uninitialized constant JSON::Iconv (NameError)
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`gem_original_require'
from /usr/local/lib/ruby/site_ruby/1.8/rubygems/custom_require.rb:31:in
`require'
from
/usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0/lib/merb-core/bootloader.rb:420:in
`enable_json_gem'
from
/usr/local/lib/ruby/gems/1.8/gems/merb-core-1.0/lib/merb-core/bootloader.rb:392:in
`run'
from
/usr/local/lib/ruby/gems/1.8/gems/merb-gen-1.0/lib/merb-gen/generator.rb:43:in
`initialize'
from
/usr/local/lib/ruby/gems/1.8/gems/merb-gen-1.0/lib/merb-gen/named_generator.rb:10:in
`initialize'
from
/usr/local/lib/ruby/gems/1.8/gems/merb-gen-1.0/lib/merb-gen/app_generator.rb:8:in
`initialize'
from
/usr/local/lib/ruby/gems/1.8/gems/templater-0.4.0/lib/templater/cli/generator.rb:61:in
`new'
from
/usr/local/lib/ruby/gems/1.8/gems/templater-0.4.0/lib/templater/cli/generator.rb:61:in
`run'
from
/usr/local/lib/ruby/gems/1.8/gems/templater-0.4.0/lib/templater/cli/manifold.rb:24:in
`run'
from
/usr/local/lib/ruby/gems/1.8/gems/templater-0.4.0/lib/templater/manifold.rb:80:in
`run_cli'
from /usr/local/lib/ruby/gems/1.8/gems/merb-gen-1.0/bin/merb-gen:6
from /usr/local/bin/merb-gen:19:in `load'
from /usr/local/bin/merb-gen:19
Turns out, you can't use merb-gen without the json gem. Not sure why
it is not part of the dependencies.
[EMAIL PROTECTED] (ttyp0) 23 /home/jdf > gem list | grep -i json
json_pure (1.1.3)
Again, no problems, after installing 'gem install json', merb finally works[2].
Most of this email is informational, but I think the json dependency
should be worked out, and remove the failure if sqlite3 is not
installed. One should really be able to install merb and use it
without sqlite3.
Jim
[1]
[EMAIL PROTECTED] (ttyp0) 22 /home/jdf > gem list
*** LOCAL GEMS ***
abstract (1.0.0)
addressable (1.0.4)
data_objects (0.9.6)
diff-lcs (1.1.2)
dm-aggregates (0.9.6)
dm-core (0.9.6)
dm-migrations (0.9.6)
dm-sweatshop (0.9.6)
dm-timestamps (0.9.6)
dm-types (0.9.6)
dm-validations (0.9.6)
do_sqlite3 (0.9.6)
erubis (2.6.2)
extlib (0.9.8)
haml (2.0.4)
highline (1.5.0)
json_pure (1.1.3)
mailfactory (1.4.0)
merb (1.0)
merb-action-args (1.0)
merb-assets (1.0)
merb-auth (1.0)
merb-auth-core (1.0)
merb-auth-more (1.0)
merb-auth-slice-password (1.0)
merb-cache (1.0)
merb-core (1.0)
merb-exceptions (1.0)
merb-gen (1.0)
merb-haml (1.0)
merb-helpers (1.0)
merb-mailer (1.0)
merb-more (1.0)
merb-param-protection (1.0)
merb-slices (1.0)
merb_datamapper (1.0)
mime-types (1.15)
ParseTree (3.0.2)
rack (0.4.0)
rake (0.8.3)
randexp (0.1.4)
rspec (1.1.11)
ruby2ruby (1.2.1)
RubyInline (3.8.1)
sexp_processor (3.0.0)
templater (0.4.0)
thor (0.9.8)
uuidtools (1.0.4)
ZenTest (3.11.0)
[2]
[EMAIL PROTECTED] (ttyp0) 31 /home/jdf/devel > merb-gen app myfirstmerbapp
Generating with app generator:
[ADDED] tasks/merb.thor
[ADDED] .gitignore
[ADDED] public/.htaccess
[ADDED] tasks/doc.thor
[ADDED] public/javascripts/jquery.js
[ADDED] doc/rdoc/generators/merb_generator.rb
[ADDED] doc/rdoc/generators/template/merb/api_grease.js
[ADDED] doc/rdoc/generators/template/merb/index.html.erb
[ADDED] doc/rdoc/generators/template/merb/merb.css
[ADDED] doc/rdoc/generators/template/merb/merb.rb
[ADDED] doc/rdoc/generators/template/merb/merb_doc_styles.css
[ADDED] doc/rdoc/generators/template/merb/prototype.js
[ADDED] public/favicon.ico
[ADDED] public/images/merb.jpg
[ADDED] public/merb.fcgi
[ADDED] public/robots.txt
[ADDED] Rakefile
[ADDED] app/controllers/application.rb
[ADDED] app/controllers/exceptions.rb
[ADDED] app/helpers/global_helpers.rb
[ADDED] app/models/user.rb
[ADDED] app/views/exceptions/not_acceptable.html.erb
[ADDED] app/views/exceptions/not_found.html.erb
[ADDED] autotest/discover.rb
[ADDED] autotest/merb.rb
[ADDED] autotest/merb_rspec.rb
[ADDED] config/database.yml
[ADDED] config/dependencies.rb
[ADDED] config/environments/development.rb
[ADDED] config/environments/production.rb
[ADDED] config/environments/rake.rb
[ADDED] config/environments/staging.rb
[ADDED] config/environments/test.rb
[ADDED] config/init.rb
[ADDED] config/rack.rb
[ADDED] config/router.rb
[ADDED] public/javascripts/application.js
[ADDED] public/stylesheets/master.css
[ADDED] merb/merb-auth/setup.rb
[ADDED] merb/merb-auth/strategies.rb
[ADDED] merb/session/session.rb
[ADDED] spec
[ADDED] gems
[ADDED] app/views/layout/application.html.erb
--
Jim Freeze
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---