Dear Quillro,
I did a fresh install of LMC16 and reran the new version of your script,
followed by issuing the command:
hobo new mysuperapp --setup --database=postgresql
I'm pasting the results here, but the very beginning is cut off since the
GUI terminal window history is limited.
Selecting previously unselected package postgresql-client-9.1.
Unpacking postgresql-client-9.1 (from
.../postgresql-client-9.1_9.1.13-0ubuntu0.13.10_amd64.deb) ...
Selecting previously unselected package postgresql-common.
Unpacking postgresql-common (from .../postgresql-common_148_all.deb) ...
Adding 'diversion of /usr/bin/pg_config to /usr/bin/pg_config.libpq-dev by
postgresql-common'
Selecting previously unselected package postgresql-9.1.
Unpacking postgresql-9.1 (from
.../postgresql-9.1_9.1.13-0ubuntu0.13.10_amd64.deb) ...
Selecting previously unselected package postgresql.
Unpacking postgresql (from .../postgresql_9.3+146really9.1+148_all.deb) ...
Processing triggers for man-db ...
Processing triggers for ureadahead ...
Setting up libpq5 (9.1.13-0ubuntu0.13.10) ...
Setting up postgresql-client-common (148) ...
Setting up postgresql-client-9.1 (9.1.13-0ubuntu0.13.10) ...
update-alternatives: using /usr/share/postgresql/9.1/man/man1/psql.1.gz to
provide /usr/share/man/man1/psql.1.gz (psql.1.gz) in auto mode
Setting up postgresql-common (148) ...
Adding user postgres to group ssl-cert
Building PostgreSQL dictionaries from installed myspell/hunspell packages...
en_au
en_gb
en_us
en_za
Removing obsolete dictionary files:
* No PostgreSQL clusters exist; see "man pg_createcluster"
Processing triggers for ureadahead ...
Setting up postgresql-9.1 (9.1.13-0ubuntu0.13.10) ...
Creating new cluster 9.1/main ...
config /etc/postgresql/9.1/main
data /var/lib/postgresql/9.1/main
locale en_US.UTF-8
port 5432
update-alternatives: using
/usr/share/postgresql/9.1/man/man1/postmaster.1.gz to provide
/usr/share/man/man1/postmaster.1.gz (postmaster.1.gz) in auto mode
* Starting PostgreSQL 9.1 database server [
OK ]
Setting up postgresql (9.3+146really9.1+148) ...
Processing triggers for libc-bin ...
Installing PostgreSQL gem
Fetching: pg-0.17.1.gem (100%)
Building native extensions. This could take a while...
ERROR: Error installing pg:
ERROR: Failed to build gem native extension.
/usr/bin/ruby1.9.1 extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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=/usr/bin/ruby1.9.1
--with-pg
--without-pg
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
Gem files will remain installed in /var/lib/gems/1.9.1/gems/pg-0.17.1 for
inspection.
Results logged to /var/lib/gems/1.9.1/gems/pg-0.17.1/ext/gem_make.out
Installing the Hobo gem
Fetching: i18n-0.6.9.gem (100%)
Fetching: multi_json-1.10.0.gem (100%)
Fetching: tzinfo-0.3.39.gem (100%)
Fetching: minitest-4.7.5.gem (100%)
Fetching: thread_safe-0.3.3.gem (100%)
Fetching: activesupport-4.0.5.gem (100%)
Fetching: builder-3.1.4.gem (100%)
Fetching: rack-1.5.2.gem (100%)
Fetching: rack-test-0.6.2.gem (100%)
Fetching: erubis-2.7.0.gem (100%)
Fetching: actionpack-4.0.5.gem (100%)
Fetching: activemodel-4.0.5.gem (100%)
Fetching: arel-4.0.2.gem (100%)
Fetching: activerecord-deprecated_finders-1.0.3.gem (100%)
Fetching: activerecord-4.0.5.gem (100%)
Fetching: mime-types-1.25.1.gem (100%)
Fetching: polyglot-0.3.4.gem (100%)
Fetching: treetop-1.4.15.gem (100%)
Fetching: mail-2.5.4.gem (100%)
Fetching: actionmailer-4.0.5.gem (100%)
Fetching: rake-10.3.1.gem (100%)
Fetching: thor-0.19.1.gem (100%)
Fetching: railties-4.0.5.gem (100%)
Fetching: bundler-1.6.2.gem (100%)
Fetching: hike-1.2.3.gem (100%)
Fetching: tilt-1.4.1.gem (100%)
Fetching: sprockets-2.12.1.gem (100%)
Fetching: sprockets-rails-2.0.1.gem (100%)
Fetching: rails-4.0.5.gem (100%)
Fetching: hobo_support-2.1.0.gem (100%)
Fetching: hobo_fields-2.1.0.gem (100%)
Fetching: dryml-2.1.0.gem (100%)
Building native extensions. This could take a while...
Fetching: hobo_will_paginate-2.1.1.gem (100%)
Fetching: hobo-2.1.0.gem (100%)
Successfully installed i18n-0.6.9
Successfully installed multi_json-1.10.0
Successfully installed tzinfo-0.3.39
Successfully installed minitest-4.7.5
Successfully installed thread_safe-0.3.3
Successfully installed activesupport-4.0.5
Successfully installed builder-3.1.4
Successfully installed rack-1.5.2
Successfully installed rack-test-0.6.2
Successfully installed erubis-2.7.0
Successfully installed actionpack-4.0.5
Successfully installed activemodel-4.0.5
Successfully installed arel-4.0.2
Successfully installed activerecord-deprecated_finders-1.0.3
Successfully installed activerecord-4.0.5
Successfully installed mime-types-1.25.1
Successfully installed polyglot-0.3.4
Successfully installed treetop-1.4.15
Successfully installed mail-2.5.4
Successfully installed actionmailer-4.0.5
Successfully installed rake-10.3.1
Successfully installed thor-0.19.1
Successfully installed railties-4.0.5
Successfully installed bundler-1.6.2
Successfully installed hike-1.2.3
Successfully installed tilt-1.4.1
Successfully installed sprockets-2.12.1
Successfully installed sprockets-rails-2.0.1
Successfully installed rails-4.0.5
Successfully installed hobo_support-2.1.0
Successfully installed hobo_fields-2.1.0
Successfully installed dryml-2.1.0
Successfully installed hobo_will_paginate-2.1.1
Successfully installed hobo-2.1.0
34 gems installed
Installing ri documentation for i18n-0.6.9...
Installing ri documentation for multi_json-1.10.0...
Installing ri documentation for tzinfo-0.3.39...
Installing ri documentation for minitest-4.7.5...
Installing ri documentation for thread_safe-0.3.3...
Installing ri documentation for activesupport-4.0.5...
Installing ri documentation for builder-3.1.4...
Installing ri documentation for rack-1.5.2...
Installing ri documentation for rack-test-0.6.2...
Installing ri documentation for erubis-2.7.0...
Installing ri documentation for actionpack-4.0.5...
Installing ri documentation for activemodel-4.0.5...
Installing ri documentation for arel-4.0.2...
Installing ri documentation for activerecord-deprecated_finders-1.0.3...
Installing ri documentation for activerecord-4.0.5...
Installing ri documentation for mime-types-1.25.1...
Installing ri documentation for polyglot-0.3.4...
Installing ri documentation for treetop-1.4.15...
Installing ri documentation for mail-2.5.4...
Installing ri documentation for actionmailer-4.0.5...
Installing ri documentation for rake-10.3.1...
Installing ri documentation for thor-0.19.1...
Installing ri documentation for railties-4.0.5...
Installing ri documentation for bundler-1.6.2...
Installing ri documentation for hike-1.2.3...
Installing ri documentation for tilt-1.4.1...
Installing ri documentation for sprockets-2.12.1...
Installing ri documentation for sprockets-rails-2.0.1...
Installing ri documentation for rails-4.0.5...
file 'lib' not found
Installing ri documentation for hobo_support-2.1.0...
Installing ri documentation for hobo_fields-2.1.0...
Installing ri documentation for dryml-2.1.0...
Installing ri documentation for hobo_will_paginate-2.1.1...
Installing ri documentation for hobo-2.1.0...
Installing RDoc documentation for i18n-0.6.9...
Installing RDoc documentation for multi_json-1.10.0...
Installing RDoc documentation for tzinfo-0.3.39...
Installing RDoc documentation for minitest-4.7.5...
Installing RDoc documentation for thread_safe-0.3.3...
Installing RDoc documentation for activesupport-4.0.5...
Installing RDoc documentation for builder-3.1.4...
Installing RDoc documentation for rack-1.5.2...
Installing RDoc documentation for rack-test-0.6.2...
Installing RDoc documentation for erubis-2.7.0...
Installing RDoc documentation for actionpack-4.0.5...
Installing RDoc documentation for activemodel-4.0.5...
Installing RDoc documentation for arel-4.0.2...
Installing RDoc documentation for activerecord-deprecated_finders-1.0.3...
Installing RDoc documentation for activerecord-4.0.5...
Installing RDoc documentation for mime-types-1.25.1...
Installing RDoc documentation for polyglot-0.3.4...
Installing RDoc documentation for treetop-1.4.15...
Installing RDoc documentation for mail-2.5.4...
Installing RDoc documentation for actionmailer-4.0.5...
Installing RDoc documentation for rake-10.3.1...
Installing RDoc documentation for thor-0.19.1...
Installing RDoc documentation for railties-4.0.5...
Installing RDoc documentation for bundler-1.6.2...
Installing RDoc documentation for hike-1.2.3...
Installing RDoc documentation for tilt-1.4.1...
Installing RDoc documentation for sprockets-2.12.1...
Installing RDoc documentation for sprockets-rails-2.0.1...
Installing RDoc documentation for rails-4.0.5...
file 'lib' not found
Installing RDoc documentation for hobo_support-2.1.0...
Installing RDoc documentation for hobo_fields-2.1.0...
Installing RDoc documentation for dryml-2.1.0...
Installing RDoc documentation for hobo_will_paginate-2.1.1...
Installing RDoc documentation for hobo-2.1.0...
arthur@Studio ~/Documents/Dev/Hobo/Docs $ cd ..
arthur@Studio ~/Documents/Dev/Hobo $ cd Projects
arthur@Studio ~/Documents/Dev/Hobo/Projects $ hobo new mysuperapp --setup
--database=postgresql
Hobo Command Line Interface 2.1.0
Generating Rails infrastructure...
create
create README.rdoc
create Rakefile
create config.ru
create .gitignore
create Gemfile
create app
create app/assets/javascripts/application.js
create app/assets/stylesheets/application.css
create app/controllers/application_controller.rb
create app/helpers/application_helper.rb
create app/views/layouts/application.html.erb
create app/assets/images/.keep
create app/mailers/.keep
create app/models/.keep
create app/controllers/concerns/.keep
create app/models/concerns/.keep
create bin
create bin/bundle
create bin/rails
create bin/rake
create config
create config/routes.rb
create config/application.rb
create config/environment.rb
create config/environments
create config/environments/development.rb
create config/environments/production.rb
create config/environments/test.rb
create config/initializers
create config/initializers/backtrace_silencers.rb
create config/initializers/filter_parameter_logging.rb
create config/initializers/inflections.rb
create config/initializers/mime_types.rb
create config/initializers/secret_token.rb
create config/initializers/session_store.rb
create config/initializers/wrap_parameters.rb
create config/locales
create config/locales/en.yml
create config/boot.rb
create config/database.yml
create db
create db/seeds.rb
create lib
create lib/tasks
create lib/tasks/.keep
create lib/assets
create lib/assets/.keep
create log
create log/.keep
create public
create public/404.html
create public/422.html
create public/500.html
create public/favicon.ico
create public/robots.txt
create test/fixtures
create test/fixtures/.keep
create test/controllers
create test/controllers/.keep
create test/mailers
create test/mailers/.keep
create test/models
create test/models/.keep
create test/helpers
create test/helpers/.keep
create test/integration
create test/integration/.keep
create test/test_helper.rb
create tmp/cache
create tmp/cache/assets
create vendor/assets/javascripts
create vendor/assets/javascripts/.keep
create vendor/assets/stylesheets
create vendor/assets/stylesheets/.keep
apply /tmp/hobo_app_template
gemfile hobo (= 2.1.0)
gemfile protected_attributes
Running Setup...
run bundle install from "."
Fetching gem metadata from https://rubygems.org/...........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.3.1
Using i18n 0.6.9
Using minitest 4.7.5
Using multi_json 1.10.0
Using thread_safe 0.3.3
Using tzinfo 0.3.39
Using activesupport 4.0.5
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.0.5
Using mime-types 1.25.1
Using polyglot 0.3.4
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.0.5
Using activemodel 4.0.5
Using activerecord-deprecated_finders 1.0.3
Using arel 4.0.2
Using activerecord 4.0.5
Using bundler 1.6.2
Installing coffee-script-source 1.7.0
Installing execjs 2.0.2
Installing coffee-script 2.2.0
Using thor 0.19.1
Using railties 4.0.5
Installing coffee-rails 4.0.1
Using hike 1.2.3
Using tilt 1.4.1
Installing sprockets 2.11.0
Using sprockets-rails 2.0.1
Using rails 4.0.5
Using hobo_support 2.1.0
Using dryml 2.1.0
Using hobo_fields 2.1.0
Using hobo_will_paginate 2.1.1
Using hobo 2.1.0
Installing jbuilder 1.5.3
Installing jquery-rails 3.1.0
Installing json 1.8.1
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.
/usr/bin/ruby1.9.1 extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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=/usr/bin/ruby1.9.1
--with-pg
--without-pg
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
Gem files will remain installed in
/tmp/bundler20140513-10450-cdfjbo/pg-0.17.1/gems/pg-0.17.1 for inspection.
Results logged to
/tmp/bundler20140513-10450-cdfjbo/pg-0.17.1/gems/pg-0.17.1/ext/gem_make.out
An error occurred while installing pg (0.17.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.17.1'` succeeds before bundling.
generate hobo:setup_wizard
Could not find gem 'protected_attributes (>= 0) ruby' in the gems available
on this machine.
Run `bundle install` to install missing gems.
run bundle install
Fetching gem metadata from https://rubygems.org/...........
Fetching additional metadata from https://rubygems.org/..
Resolving dependencies...
Using rake 10.3.1
Using i18n 0.6.9
Using minitest 4.7.5
Using multi_json 1.10.0
Using thread_safe 0.3.3
Using tzinfo 0.3.39
Using activesupport 4.0.5
Using builder 3.1.4
Using erubis 2.7.0
Using rack 1.5.2
Using rack-test 0.6.2
Using actionpack 4.0.5
Using mime-types 1.25.1
Using polyglot 0.3.4
Using treetop 1.4.15
Using mail 2.5.4
Using actionmailer 4.0.5
Using activemodel 4.0.5
Using activerecord-deprecated_finders 1.0.3
Using arel 4.0.2
Using activerecord 4.0.5
Using bundler 1.6.2
Using coffee-script-source 1.7.0
Using execjs 2.0.2
Using coffee-script 2.2.0
Using thor 0.19.1
Using railties 4.0.5
Using coffee-rails 4.0.1
Using hike 1.2.3
Using tilt 1.4.1
Using sprockets 2.11.0
Using sprockets-rails 2.0.1
Using rails 4.0.5
Using hobo_support 2.1.0
Using dryml 2.1.0
Using hobo_fields 2.1.0
Using hobo_will_paginate 2.1.1
Using hobo 2.1.0
Using jbuilder 1.5.3
Using jquery-rails 3.1.0
Using json 1.8.1
Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native
extension.
/usr/bin/ruby1.9.1 extconf.rb
checking for pg_config... yes
Using config values from /usr/bin/pg_config
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
You need to install postgresql-server-dev-X.Y for building a server-side
extension or libpq-dev for building a client-side application.
checking for libpq-fe.h... no
Can't find the 'libpq-fe.h header
*** 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=/usr/bin/ruby1.9.1
--with-pg
--without-pg
--with-pg-config
--without-pg-config
--with-pg_config
--without-pg_config
--with-pg-dir
--without-pg-dir
--with-pg-include
--without-pg-include=${pg-dir}/include
--with-pg-lib
--without-pg-lib=${pg-dir}/lib
Gem files will remain installed in
/tmp/bundler20140513-10674-hnxk5s/pg-0.17.1/gems/pg-0.17.1 for inspection.
Results logged to
/tmp/bundler20140513-10674-hnxk5s/pg-0.17.1/gems/pg-0.17.1/ext/gem_make.out
An error occurred while installing pg (0.17.1), and Bundler cannot continue.
Make sure that `gem install pg -v '0.17.1'` succeeds before bundling.
arthur@Studio ~/Documents/Dev/Hobo/Projects $
Have fun with this one!
Sincerely,
Arthur
On Friday, May 2, 2014 8:55:48 AM UTC-7, Arthur Baldwin wrote:
>
> Hi there,
>
> I've been away from Hobo for a while, but was involved in prompting the
> creation of InstantHobo.bash by Quillro.
> I'm wondering if anyone might be interested in refining and updating
> InstantHobo.bash to use the latest versions of
> Ruby, Rails, and Hobo?
>
> Hobo 2.1
> Rails 4.x
> Ruby 2.x
>
> and I also would like the script to prompt for the desired database:
>
> SQLite
> MySQL
> PostGreSQL
>
> PostGreSQL is the one I prefer, but try as I might...I always get problems
> with trying to use the 'gem install pg' command.
>
> I very much need to start designing websites for customers using the
> latest versions and PostGreSQL right away.
>
> Thanks for your assistance.
>
> Sincerely,
>
> Arthur Baldwin
>
--
You received this message because you are subscribed to the Google Groups "Hobo
Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at http://groups.google.com/group/hobousers.
For more options, visit https://groups.google.com/d/optout.