locomotivecms / engine

A platform to create, publish and edit sites
http://www.locomotivecms.com
Other
2.32k stars 622 forks source link

Installation Woes #26

Closed balupton closed 13 years ago

balupton commented 13 years ago

I'm running through http://www.locomotivecms.com/support/installation/source right now and just been having problem after problem:

$ bundle install
Fetching git://github.com/floehopper/mocha.git
remote: Counting objects: 3930, done.
remote: Compressing objects: 100% (1081/1081), done.
remote: Total 3930 (delta 2880), reused 3828 (delta 2821)
Receiving objects: 100% (3930/3930), 612.53 KiB | 151 KiB/s, done.
Resolving deltas: 100% (2880/2880), done.
Fetching source index for http://rubygems.org/
Enter your password to install the bundled RubyGems to your system: 
Using rake (0.8.7) 
Using RedCloth (4.2.3) 
Installing ZenTest (4.4.2) 
Using abstract (1.0.0) 
Using activesupport (3.0.3) 
Using builder (2.1.2) 
Using i18n (0.5.0) 
Using activemodel (3.0.3) 
Using erubis (2.6.6) 
Using rack (1.2.1) 
Using rack-mount (0.6.13) 
Using rack-test (0.5.7) 
Installing tzinfo (0.3.24) 
Using actionpack (3.0.3) 
Using mime-types (1.16) 
Using polyglot (0.3.1) 
Using treetop (1.4.9) 
Using mail (2.2.14) 
Using actionmailer (3.0.3) 
Installing actionmailer-with-request (0.1.1) 
Installing arel (2.0.7) 
Using activerecord (3.0.3) 
Using activeresource (3.0.3) 
Installing autotest (4.4.6) 
Installing bcrypt-ruby (2.1.4) with native extensions 
Installing bson (1.2.0) 
Installing bson_ext (1.2.0) with native extensions 
Using bundler (1.0.3) 
Installing celerity (0.8.7) 
Installing culerity (0.2.14) 
Installing nokogiri (1.4.3.1) with native extensions 
Installing ffi (0.6.3) with native extensions 
Installing childprocess (0.1.6) 
Installing json_pure (1.4.6) 
Installing rubyzip (0.9.4) 
Installing selenium-webdriver (0.1.2) 
Installing xpath (0.1.3) 
Installing capybara (0.4.0) 
Installing closure-compiler (1.0.0) 
Installing columnize (0.3.2) 
Using configuration (1.2.0) 
Installing crack (0.1.8) 
Using diff-lcs (1.1.2) 
Installing trollop (1.16.2) 
Installing gherkin (2.1.5) with native extensions 
/Library/Ruby/Site/1.8/rubygems/remote_fetcher.rb:180:in `fetch_path': Errno::EADDRNOTAVAIL: Can't assign requested address (http://rubygems.org/gems/term-ansicolor-1.0.5.gem) (Gem::RemoteFetcher::FetchError)
    from /Library/Ruby/Site/1.8/rubygems/remote_fetcher.rb:110:in `download'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/source.rb:252:in `download_gem_from_uri'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/source.rb:76:in `fetch'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:45:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:12:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:12:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:44:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:8:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/cli.rb:221:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `send'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor.rb:246:in `dispatch'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/base.rb:389:in `start'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/bin/bundle:13
    from /usr/bin/bundle:19:in `load'
    from /usr/bin/bundle:19

$ bundle exec unicorn_rails
Could not find term-ansicolor-1.0.5 in any of the sources

$ sudo bundle exec unicorn_rails
Password:
git://github.com/floehopper/mocha.git (at master) is not checked out. Please run `bundle install
$ sudo bundle install
Fetching git://github.com/floehopper/mocha.git
remote: Counting objects: 3930, done.
remote: Compressing objects: 100% (1081/1081), done.
remote: Total 3930 (delta 2880), reused 3828 (delta 2821)
Receiving objects: 100% (3930/3930), 612.53 KiB | 168 KiB/s, done.
Resolving deltas: 100% (2880/2880), done.
Fetching source index for http://rubygems.org/
Using rake (0.8.7) 
Using RedCloth (4.2.3) 
Using ZenTest (4.4.2) 
Using abstract (1.0.0) 
Using activesupport (3.0.3) 
Using builder (2.1.2) 
Using i18n (0.5.0) 
Using activemodel (3.0.3) 
Using erubis (2.6.6) 
Using rack (1.2.1) 
Using rack-mount (0.6.13) 
Using rack-test (0.5.7) 
Using tzinfo (0.3.24) 
Using actionpack (3.0.3) 
Using mime-types (1.16) 
Using polyglot (0.3.1) 
Using treetop (1.4.9) 
Using mail (2.2.14) 
Using actionmailer (3.0.3) 
Using actionmailer-with-request (0.1.1) 
Using arel (2.0.7) 
Using activerecord (3.0.3) 
Using activeresource (3.0.3) 
Using autotest (4.4.6) 
Using bcrypt-ruby (2.1.4) 
Using bson (1.2.0) 
Using bson_ext (1.2.0) 
Using bundler (1.0.3) 
Using celerity (0.8.7) 
Using culerity (0.2.14) 
Using nokogiri (1.4.3.1) 
Using ffi (0.6.3) 
Using childprocess (0.1.6) 
Using json_pure (1.4.6) 
Using rubyzip (0.9.4) 
Using selenium-webdriver (0.1.2) 
Using xpath (0.1.3) 
Using capybara (0.4.0) 
Using closure-compiler (1.0.0) 
Using columnize (0.3.2) 
Using configuration (1.2.0) 
Using crack (0.1.8) 
Using diff-lcs (1.1.2) 
Using trollop (1.16.2) 
Using gherkin (2.1.5) 
Installing term-ansicolor (1.0.5) 
Installing cucumber (0.8.5) 
Installing cucumber-rails (0.3.2) 
Installing locomotive_carrierwave (0.5.0.1.beta2) 
Installing mongo (1.0.9) 
Using will_paginate (3.0.pre2) 
Installing mongoid (2.0.0.beta.19) 
Installing custom_fields (1.0.0.beta2) 
Installing daemons (1.1.0) 
Installing database_cleaner (0.6.0) 
Installing delayed_job (2.1.2) 
Installing delayed_job_mongoid (1.0.1) 
Installing warden (0.10.7) 
Installing devise (1.1.3) 
Installing excon (0.4.0) 
Installing factory_girl (1.3.3) 
Using thor (0.14.6) 
Using railties (3.0.3) 
Installing factory_girl_rails (1.0.1) 
Installing formatador (0.0.16) 
Using json (1.4.6) 
Installing net-ssh (2.0.24) 
Installing ruby-hmac (0.4.0) 
Installing fog (0.3.7) 
Installing formtastic (1.2.3) 
Installing growl-glue (1.0.7) 
Installing haml (3.0.18) 
Installing has_scope (0.5.0) 
Using launchy (0.3.7) 
Installing rest-client (1.6.1) 
Installing heroku (1.17.8) 
Installing httparty (0.7.3) 
Installing responders (0.6.2) 
Installing inherited_resources (1.1.2) 
Installing yui-compressor (0.9.3) 
Installing jammit (0.6.0) 
Installing kgio (2.1.1) with native extensions 
Installing linecache (0.43) with native extensions 
Installing mimemagic (0.1.7) 
Installing proxies (0.2.1) 
Installing s3 (0.3.7) 
Installing locomotive_jammit-s3 (0.5.4.4) 
Installing locomotive_liquid (2.2.2) 
Installing locomotive_mongoid_acts_as_tree (0.1.5.1) 
Installing mimetype-fu (0.1.2) 
Using mocha (0.9.10.20101125155727) from git://github.com/floehopper/mocha.git (at master) 
mocha at /Library/Ruby/Gems/1.8/bundler/gems/mocha-ef4439904bb8 did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
    ["lib/mocha/integration/mini_test/version_142_and_above.rb"] are not files

Installing rspec-core (2.3.1) 
Installing rspec-expectations (2.3.0) 
Installing rspec-mocks (2.3.0) 
Installing rspec (2.3.0) 
Installing yard (0.6.4) 
Installing pickle (0.4.4) 
Using rails (3.0.3) 
Installing rmagick (2.12.2) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb 
checking for Ruby version >= 1.8.5... yes
checking for gcc... yes
checking for Magick-config... no
Can't install RMagick 2.12.2. Can't find Magick-config in /Users/balupton/bin:/usr/local/zend/bin:/usr/local/zend/mysql/bin:/usr/local/zend/apache2/bin:/usr/local/mysql*/bin:/usr/local/bin:/opt/local/libexec/git-core/:/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/local/git/bin:/usr/X11/bin:/opt/local/bin:/opt/local/sbin

*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of
necessary libraries and/or headers.  Check the mkmf.log file for more
details.  You may need configuration options.

Provided configuration options:
    --with-opt-dir
    --without-opt-dir
    --with-opt-include
    --without-opt-include=${opt-dir}/include
    --with-opt-lib
    --without-opt-lib=${opt-dir}/lib
    --with-make-prog
    --without-make-prog
    --srcdir=.
    --curdir
    --ruby=/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby

Gem files will remain installed in /Library/Ruby/Gems/1.8/gems/rmagick-2.12.2 for inspection.
Results logged to /Library/Ruby/Gems/1.8/gems/rmagick-2.12.2/ext/RMagick/gem_make.out
    from /Library/Ruby/Site/1.8/rubygems/installer.rb:446:in `each'
    from /Library/Ruby/Site/1.8/rubygems/installer.rb:446:in `build_extensions'
    from /Library/Ruby/Site/1.8/rubygems/installer.rb:198:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/source.rb:100:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:55:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:12:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/spec_set.rb:12:in `each'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:44:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/installer.rb:8:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/cli.rb:221:in `install'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `send'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/task.rb:22:in `run'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/invocation.rb:118:in `invoke_task'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor.rb:246:in `dispatch'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/lib/bundler/vendor/thor/base.rb:389:in `start'
    from /Library/Ruby/Gems/1.8/gems/bundler-1.0.3/bin/bundle:13
    from /usr/bin/bundle:19:in `load'
    from /usr/bin/bundle:19
$ which brew
$ ruby -e "$(curl -fsSL https://gist.github.com/raw/323731/install_homebrew.rb)"
==> This script will install:
/usr/local/bin/brew
/usr/local/Library/Formula/...
/usr/local/Library/Homebrew/...
==> The following directories will be made group writable:
/usr/local/.
/usr/local/bin
/usr/local/share/man/man3
/usr/local/share/info
==> The following directories will have their group set to staff:
/usr/local/bin
/usr/local/share/man/man3
/usr/local/share/info

Press enter to continue
==> /usr/bin/sudo /bin/chmod g+w /usr/local/. /usr/local/bin /usr/local/share/man/man3 /usr/local/share/info
Password:
==> /usr/bin/sudo /usr/bin/chgrp staff /usr/local/bin /usr/local/share/man/man3 /usr/local/share/info
==> Downloading and Installing Homebrew...
==> Installation successful!
$ brew install imagemagick
==> Downloading http://www.ijg.org/files/jpegsrc.v8b.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/jpeg/8b --disable-dependency-tracking
==> make install
/usr/local/Cellar/jpeg/8b: 17 files, 1.6M, built in 42 seconds
==> Downloading http://download.osgeo.org/libtiff/tiff-3.9.4.zip
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/libtiff/3.9.4 --mandir=/usr/local/Cellar/libtiff/3.9.4/share/man
==> make install
/usr/local/Cellar/libtiff/3.9.4: 235 files, 3.6M, built in 44 seconds
==> Downloading http://www.littlecms.com/1/lcms-1.19.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/little-cms/1.19 --disable-debug
==> make install
/usr/local/Cellar/little-cms/1.19: 20 files, 932K, built in 29 seconds
==> Downloading http://www.ece.uvic.ca/~mdadams/jasper/software/jasper-1.900.1.zip
######################################################################## 100.0%
==> ./configure --disable-debug --disable-dependency-tracking --enable-shared --prefix=/usr/local/Cellar/jasper/1.900.1 --mandir=/usr/local/Cellar/jasper/1
==> make install
/usr/local/Cellar/jasper/1.900.1: 33 files, 1.2M, built in 43 seconds
==> Checking out https://www.imagemagick.org/subversion/ImageMagick/trunk
==> ./configure --disable-osx-universal-binary --without-perl --prefix=/usr/local/Cellar/imagemagick/6.6.7-1 --disable-dependency-tracking --enable-shared 
==> make install
==> Caveats
If you get "repository moved" errors, try deleting the folder:
    ~/Library/Caches/Homebrew/imagemagick--svn

Because ImageMagick likes to remove tarballs, we're downloading their
stable release from their SVN repo instead. But they only serve the
repo over HTTPS, and have an untrusted certificate, so we auto-accept
this certificate for you.

If this bothers you, open a ticket with ImageMagick to fix their cert.

Some tools will complain if the ghostscript fonts are not installed in:
    /usr/local/share/ghostscript/fonts
==> Summary
/usr/local/Cellar/imagemagick/6.6.7-1: 1332 files, 33M, built in 3.7 minutes
$ sudo bundle install
Password:
Sorry, try again.
Password:
Fetching source index for http://rubygems.org/
Using rake (0.8.7) 
Using RedCloth (4.2.3) 
Using ZenTest (4.4.2) 
Using abstract (1.0.0) 
Using activesupport (3.0.3) 
Using builder (2.1.2) 
Using i18n (0.5.0) 
Using activemodel (3.0.3) 
Using erubis (2.6.6) 
Using rack (1.2.1) 
Using rack-mount (0.6.13) 
Using rack-test (0.5.7) 
Using tzinfo (0.3.24) 
Using actionpack (3.0.3) 
Using mime-types (1.16) 
Using polyglot (0.3.1) 
Using treetop (1.4.9) 
Using mail (2.2.14) 
Using actionmailer (3.0.3) 
Using actionmailer-with-request (0.1.1) 
Using arel (2.0.7) 
Using activerecord (3.0.3) 
Using activeresource (3.0.3) 
Using autotest (4.4.6) 
Using bcrypt-ruby (2.1.4) 
Using bson (1.2.0) 
Using bson_ext (1.2.0) 
Using bundler (1.0.3) 
Using celerity (0.8.7) 
Using culerity (0.2.14) 
Using nokogiri (1.4.3.1) 
Using ffi (0.6.3) 
Using childprocess (0.1.6) 
Using json_pure (1.4.6) 
Using rubyzip (0.9.4) 
Using selenium-webdriver (0.1.2) 
Using xpath (0.1.3) 
Using capybara (0.4.0) 
Using closure-compiler (1.0.0) 
Using columnize (0.3.2) 
Using configuration (1.2.0) 
Using crack (0.1.8) 
Using diff-lcs (1.1.2) 
Using trollop (1.16.2) 
Using gherkin (2.1.5) 
Using term-ansicolor (1.0.5) 
Using cucumber (0.8.5) 
Using cucumber-rails (0.3.2) 
Using locomotive_carrierwave (0.5.0.1.beta2) 
Using mongo (1.0.9) 
Using will_paginate (3.0.pre2) 
Using mongoid (2.0.0.beta.19) 
Using custom_fields (1.0.0.beta2) 
Using daemons (1.1.0) 
Using database_cleaner (0.6.0) 
Using delayed_job (2.1.2) 
Using delayed_job_mongoid (1.0.1) 
Using warden (0.10.7) 
Using devise (1.1.3) 
Using excon (0.4.0) 
Using factory_girl (1.3.3) 
Using thor (0.14.6) 
Using railties (3.0.3) 
Using factory_girl_rails (1.0.1) 
Using formatador (0.0.16) 
Using json (1.4.6) 
Using net-ssh (2.0.24) 
Using ruby-hmac (0.4.0) 
Using fog (0.3.7) 
Using formtastic (1.2.3) 
Using growl-glue (1.0.7) 
Using haml (3.0.18) 
Using has_scope (0.5.0) 
Using launchy (0.3.7) 
Using rest-client (1.6.1) 
Using heroku (1.17.8) 
Using httparty (0.7.3) 
Using responders (0.6.2) 
Using inherited_resources (1.1.2) 
Using yui-compressor (0.9.3) 
Using jammit (0.6.0) 
Using kgio (2.1.1) 
Using linecache (0.43) 
Using mimemagic (0.1.7) 
Using proxies (0.2.1) 
Using s3 (0.3.7) 
Using locomotive_jammit-s3 (0.5.4.4) 
Using locomotive_liquid (2.2.2) 
Using locomotive_mongoid_acts_as_tree (0.1.5.1) 
Using mimetype-fu (0.1.2) 
Using mocha (0.9.10.20101125155727) from git://github.com/floehopper/mocha.git (at master) 
mocha at /Library/Ruby/Gems/1.8/bundler/gems/mocha-ef4439904bb8 did not have a valid gemspec.
This prevents bundler from installing bins or native extensions, but that may not affect its functionality.
The validation message from Rubygems was:
    ["lib/mocha/integration/mini_test/version_142_and_above.rb"] are not files

Using rspec-core (2.3.1) 
Using rspec-expectations (2.3.0) 
Using rspec-mocks (2.3.0) 
Using rspec (2.3.0) 
Using yard (0.6.4) 
Using pickle (0.4.4) 
Using rails (3.0.3) 
Installing rmagick (2.12.2) with native extensions 
Installing rspec-rails (2.3.1) 
Installing ruby-debug-base (0.10.4) with native extensions 
Installing ruby-debug (0.10.4) 
Installing spork (0.8.4) with native extensions 
Installing unicorn (3.3.1) with native extensions 
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gem is installed.
$ sudo bundle exec unicorn_rails
Password:
$ bundle exec unicorn_rails
I, [2011-02-03T16:16:44.616432 #39776]  INFO -- : listening on addr=0.0.0.0:8080 fd=3
I, [2011-02-03T16:16:44.617114 #39776]  INFO -- : worker=0 spawning...
I, [2011-02-03T16:16:44.618935 #39776]  INFO -- : master process ready
I, [2011-02-03T16:16:44.620552 #39795]  INFO -- : worker=0 spawned pid=39795
I, [2011-02-03T16:16:44.621144 #39795]  INFO -- : Refreshing Gem list
/Library/Ruby/Gems/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:483:in `connect': failed to connect to any given host:port (Mongo::ConnectionFailure)
    from /Library/Ruby/Gems/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:137:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:281:in `new'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:281:in `_master'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:197:in `from_hash'
    from (eval):2:in `send'
    from (eval):2:in `from_hash'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/railtie.rb:54
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `run_initializers'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:77:in `send'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
    from /Users/balupton/Dropbox/Server/public_html/rails/locomotive/config/environment.rb:5
    from config.ru:3:in `require'
    from config.ru:3
    from /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
    from /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
    from config.ru:1:in `new'
    from config.ru:1
E, [2011-02-03T16:17:18.213675 #39776] ERROR -- : reaped #<Process::Status: pid=39795,exited(1)> worker=0
I, [2011-02-03T16:17:18.214841 #39776]  INFO -- : worker=0 spawning...
I, [2011-02-03T16:17:18.217735 #39835]  INFO -- : worker=0 spawned pid=39835
I, [2011-02-03T16:17:18.218268 #39835]  INFO -- : Refreshing Gem list
/Library/Ruby/Gems/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:483:in `connect': failed to connect to any given host:port (Mongo::ConnectionFailure)
    from /Library/Ruby/Gems/1.8/gems/mongo-1.0.9/lib/../lib/mongo/connection.rb:137:in `initialize'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:281:in `new'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:281:in `_master'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/config.rb:197:in `from_hash'
    from (eval):2:in `send'
    from (eval):2:in `from_hash'
    from /Library/Ruby/Gems/1.8/gems/mongoid-2.0.0.beta.19/lib/mongoid/railtie.rb:54
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `instance_exec'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:25:in `run'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:50:in `run_initializers'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `each'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/initializable.rb:49:in `run_initializers'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:134:in `initialize!'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:77:in `send'
    from /Library/Ruby/Gems/1.8/gems/railties-3.0.3/lib/rails/application.rb:77:in `method_missing'
    from /Users/balupton/Dropbox/Server/public_html/rails/locomotive/config/environment.rb:5
    from config.ru:3:in `require'
    from config.ru:3
    from /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `instance_eval'
    from /Library/Ruby/Gems/1.8/gems/rack-1.2.1/lib/rack/builder.rb:46:in `initialize'
    from config.ru:1:in `new'
    from config.ru:1

The above just runs forever erroring.

did commented 13 years ago

Looks like you didn't start mongodb or that you didn't update the config/mongoid.yml file.

balupton commented 13 years ago

Didn't have mongo db installed: http://www.mongodb.org/display/DOCS/Quickstart+OS+X

balupton commented 13 years ago

Okay I've added the following to /etc/hosts

# Locomotive
127.0.0.1   locomotive
127.0.0.1   balupton.locomotive

Ran through the setup process, and specified balupton as the subdomain and used the HTML5 Portfolio skin.

Here are the new errors when accessing the pages http://localhost:8080/admin/sign_in - no site http://locomotive:8080/ - AbstractController::ActionNotFound http://balupton.locomotive:8080/ - no site

mariovisic commented 13 years ago

balupton: I followed the installation instructions and setup my hosts like you have and managed to get to the installer, the first and last URL's you gave work fine but the second one won't work.

If you already have a site setup in the database that doesn't match your 'balupton.locomotive' subdomain then you'll get the no site error. You can fix this by recreating the datbase, just run:

rake db:drop db:create

Also you should probably be using a real domain eg, locomotive.com or locomotive.local instead of just locomotive.

mariovisic commented 13 years ago

Make sure you also set the domain in the locomotive config config/initializers/locomotive

  config.default_domain = 'locomotive'
did commented 13 years ago

thanks Mario for the very good explanations. That's right, it's better to have a correct domain name (tld = 2 at least).

did commented 13 years ago

I close it

balupton commented 13 years ago

Thanks Mario, that did it. I changed it to locomotive.local and balupton.locomotive.local