________________________________ From: "[email protected]" <[email protected]> To: [email protected] Sent: Friday, January 6, 2012 3:30 PM Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10 A few corrections are included in this new version (0.4.1)
#!/bin/bash # Copyright (C) 2011 Quiliro Ordonez # This program is free software: you can redistribute it and/or modify # it under the terms of the GNU Affero General Public License as # published by the Free Software Foundation, either version 3 of the # License, or (at your option) any later version. # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU Affero General Public License for more details. # You should have received a copy of the GNU Affero General Public # License along with this program. If not, see # <http://www.gnu.org/licenses/>. # quiliro [at] fsfla [dot] org # InstantHobo.bash version 0.4.1 # # This program installs Hobo stable version 1.3 on Trisquel distribution # of the GNU operating system by installing Ruby version 1.9.3-p0 from # source and by using apt-get it installs other binary software packages. # Have fun using and modifying this script. Please send me your updates # so I can share them with others. # Just make a text file named InstantHobo.bash and make it executable by # typing: # sudo chmod +x InstantHobo.bash # Then execute it by typing: # ./InstantHobo.bash # # Note: If you want to remove all gems before running this script, type: # sudo gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx # Keep hacking! # Additional Contributions by Arthur E. Baldwin # The mysql2.gem file is not designed to properly choose the correct # version number, so it is necessary to include the -v parameter and the # desired version number. Otherwise you will be using this script in # vain. # This script has been thoroughly tested primarily on Trisquel 5.0 and on # KUbuntu 11.10 (64 bit). We're leaving it up to others to test and # report their findings on other distros. echo "Updating package database" sudo apt-get update echo echo "Installing stable versions of Ruby and Rubygems" echo "as well as the git versioning system" sudo apt-get -y install ruby rubygems git-core echo echo "Setting the path for the hobo command for the current user" echo "PATH="/var/lib/gems/1.8/bin:$PATH"" >> $HOME/.profile source $HOME/.profile echo echo "Setting the path for the hobo command for future users" sudo sh -c 'echo "PATH="/var/lib/gems/1.8/bin:$PATH"" >> /etc/profile' echo echo "Updating currently installed gems" sudo gem update echo echo "Installing Apache web server" sudo apt-get -y install apache2 # Choosing the database echo echo " Choose database" echo " ------ --------" echo "Choose one of the following databases:" echo echo "[M]ySQL 5" echo "[S]QLite 3" echo read database case "$database" in "M" | "m" ) echo "Installing MySQL database management system server" sudo apt-get -y install mysql-server libmysqlclient-dev echo "Installing mysql2 gem" sudo gem install mysql2 -v 0.2.17 ;; "S" | "s" ) echo "Installing SQLite 3 database management system server" sudo apt-get -y install libsqlite3-dev echo "Installing sqlite3 gem" sudo gem install sqlite3 ;; esac echo echo "Installing the Hobo gem" sudo gem install hobo # End of script -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en. Dear Quiliro, I just tried this script and got the following result when I tried to create a new hobo project: arthur@Studio:~/Documents$ cd Tutorials/ arthur@Studio:~/Documents/Tutorials$ hobo new my-first-app Hobo Command Line Interface 1.3.0 Generating Rails infrastructure... create create README create Rakefile create config.ru create .gitignore create Gemfile create app create app/assets/images/rails.png 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/mailers create app/models create app/views/layouts/application.html.erb create app/mailers/.gitkeep create app/models/.gitkeep 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/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 doc create doc/README_FOR_APP create lib create lib/tasks create lib/tasks/.gitkeep create lib/assets create lib/assets/.gitkeep create log create log/.gitkeep create public create public/404.html create public/422.html create public/500.html create public/favicon.ico create public/index.html create public/robots.txt create script create script/rails create test/fixtures create test/fixtures/.gitkeep create test/functional create test/functional/.gitkeep create test/integration create test/integration/.gitkeep create test/unit create test/unit/.gitkeep create test/performance/browsing_test.rb create test/test_helper.rb create tmp/cache create tmp/cache/assets create vendor/assets/stylesheets create vendor/assets/stylesheets/.gitkeep create vendor/plugins create vendor/plugins/.gitkeep apply /tmp/hobo_app_template gemfile hobo (= 1.3.0) The template [/tmp/hobo_app_template] could not be loaded. Error: Unable to activate hobo_support-1.3.0, because rails-3.1.3 conflicts with rails (~> 3.0.0) What command takes me back to Rails 3.0 and how can we include that in this script? Sincerely, Arthur Baldwin -- You received this message because you are subscribed to the Google Groups "Hobo Users" 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/hobousers?hl=en.
