Latest InstantHobo install script for Ubuntu 11.10

148 views
Skip to first unread message

Arthur Baldwin

unread,
Dec 15, 2011, 3:28:50 PM12/15/11
to Hobo Users
I think I nailed it this time!  Here is a revised script.  I found that the latest "stable version" of ruby is 1.9.3-p0 and that rake is included already in ruby.

So I removed the line that was installing rake, and updated the ruby install to the latest version....and viola...we are up and running!

Sincerely,

Arthur Baldwin

#    Copyright (C) 2011  Quiliro Ordóñez

#    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

echo Updating the APT Database...
sudo apt-get update
echo APT Group installation...
sudo apt-get -y install wget curl build-essential bison openssl zlib1g libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libyaml-dev libxslt-dev autoconf libc6-dev libreadline6-dev zlib1g-dev libcurl4-openssl-dev libmysqlclient16-dev libmysqlclient16 imagemagick libmagick9-dev git-core mysql-server
echo WGet Ruby Language...
wget -c ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
echo UnZip Ruby Language...
tar -xzf ruby-1.9.3-p0.tar.gz
echo Change to Ruby Language Directory...
cd ruby-1.9.3-p0
echo Configure Ruby Language for Compilation...
sudo ./configure --prefix=/usr/local
echo Compiling the Ruby Language files...
sudo make
echo Installing the Ruby Language...
sudo make install
echo Adding something to the path?
source ~/.bashrc
echo Using Gem to install MySQL2 driver...
sudo gem install mysql2 -v 0.2.6
echo Using Gem to Install Bundler, Passenger, and Hobo...
sudo gem install bundler passenger hobo


Quiliro Ordóñez

unread,
Dec 15, 2011, 3:36:43 PM12/15/11
to hobo...@googlegroups.com
On 15/12/11 15:28, Arthur Baldwin wrote:
I think I nailed it this time!  Here is a revised script.  I found that the latest "stable version" of ruby is 1.9.3-p0 and that rake is included already in ruby.

So I removed the line that was installing rake, and updated the ruby install to the latest version....and viola...we are up and running!


Great Arthur. It would be nice to test it on a brand new installation of the OS. I am not currently using Trisquel but will try it in a couple of weeks.

Scorpio

unread,
Dec 16, 2011, 8:00:42 AM12/16/11
to Hobo Users
Just my two cents and a personal preference but I think it would be a
better practice to install Rails and Hobo into RVM (I didn't believe
it myself at first but it helps a great deal to manage projects once
you get the hang of it.)

On Dec 15, 9:28 pm, Arthur Baldwin <eengn...@yahoo.com> wrote:
> I think I nailed it this time!  Here is a revised script.  I found that the latest "stable version" of ruby is 1.9.3-p0 and that rake is included already in ruby.
>
> So I removed the line that was installing rake, and updated the ruby install to the latest version....and viola...we are up and running!
>
> Sincerely,
>
> Arthur Baldwin
>
> #    Copyright (C) 2011  Quiliro Ordóñez
>
> #    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
>
> echo Updating the APT Database...
> sudo apt-get update
> echo APT Group installation...
> sudo apt-get -y install wget curl build-essential bison openssl zlib1g libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libyaml-dev libxslt-dev autoconf libc6-dev libreadline6-dev zlib1g-dev libcurl4-openssl-dev libmysqlclient16-dev libmysqlclient16 imagemagick libmagick9-dev git-core mysql-server
> echo WGet Ruby Language...

> wget -cftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz

Arthur Baldwin

unread,
Dec 16, 2011, 3:24:04 PM12/16/11
to hobo...@googlegroups.com
Hi Quillro,

I am still having a few issues with the install script:

While running the configure step for the Ruby Language:
"Failed to configure gdbm"

During installation of hobo:
when creating ri documentation for the rails 3.0 step:

"file lib not found"
It does the same thing for the RDoc file for rails 3.0
and the other one too.

When the script comes to the line:

bundle install mysql2:

"Could not locate Gemfile"

when I test the installation with the following 3 commands, I get the expected results:

ruby -v
rails -v
hobo

the version numbers are correct.

but when I issue the following command:

hobo new TCO -d mysql

and try to run the wizard, it stops right away after telling it to run the wizard and says:

Could not find gem 'mysql2 (~> 0.2.17) ruby' in any of the gem sources listed in your Gemfile.                                                                 
Run `bundle install` to install missing gems.

I'm sure that the script needs some more work...but I'm stuck as to how to fix it.

I'm attaching the script file as I'm currently using it.

Sincerely,

Arthur Baldwin


From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Thursday, December 15, 2011 12:36 PM
Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10

--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/hobousers?hl=en.


InstantHobo.bash

Quiliro Ordóñez

unread,
Dec 16, 2011, 4:18:13 PM12/16/11
to hobo...@googlegroups.com

but when I issue the following command:

hobo new TCO -d mysql

and try to run the wizard, it stops right away after telling it to run the wizard and says:

Could not find gem 'mysql2 (~> 0.2.17) ruby' in any of the gem sources listed in your Gemfile.                                                                 
Run `bundle install` to install missing gems.



Please enter the application directory (with cd TCO) and run the bundle command (sudo bundle install). Copy the output of the command to this thread. Then I can tell you what is wrong with the script and what to change on it.

Arthur Baldwin

unread,
Dec 16, 2011, 4:43:34 PM12/16/11
to hobo...@googlegroups.com
Here you go:

Fetching source index for http://rubygems.org/
Installing rake (0.9.2.2)
Installing abstract (1.0.0) WARNING: abstract-1.0.0 has an invalid nil value for @cert_chain

Installing activesupport (3.0.11)
Installing builder (2.1.2) WARNING: builder-2.1.2 has an invalid nil value for @cert_chain

Installing i18n (0.5.0)
Installing activemodel (3.0.11)
Installing erubis (2.6.6)
Installing rack (1.2.4)
Installing rack-mount (0.6.14)
Installing rack-test (0.5.7)
Installing tzinfo (0.3.31)
Installing actionpack (3.0.11)
Installing mime-types (1.17.2)
Installing polyglot (0.3.3)
Installing treetop (1.4.10)
Installing mail (2.2.19)
Installing actionmailer (3.0.11)
Installing arel (2.0.10)
Installing activerecord (3.0.11)
Installing activeresource (3.0.11)
Using bundler (1.0.21)
Installing json (1.6.3) with native extensions
Installing rdoc (3.12)
Installing thor (0.14.6)
Installing railties (3.0.11)
Installing rails (3.0.11)
Installing hobo_support (1.3.0)
Installing dryml (1.3.0) with native extensions
Installing hobo_fields (1.3.0)
Installing will_paginate (3.0.2)
Installing hobo (1.3.0)
Installing mysql2 (0.2.18) with native extensions
Your bundle is complete! It was installed into ./mysql2
The path argument to `bundle install` is deprecated. It will be removed in version 1.1. Please use `bundle install --path mysql2` instead.

Hmmmm......
why can't we adjust the script to do something so that bundler does NOT have to run in the new app directory?
I need to be able to issue the command: hobo new myapp -d mysql
without any hiccups.

Sincerely,

Arthur Baldwin


From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Friday, December 16, 2011 1:18 PM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10

Quiliro Ordóñez

unread,
Dec 16, 2011, 4:49:27 PM12/16/11
to hobo...@googlegroups.com
On 16/12/11 16:43, Arthur Baldwin wrote:
Hmmmm......
why can't we adjust the script to do something so that bundler does NOT have to run in the new app directory?
I need to be able to issue the command: hobo new myapp -d mysql
without any hiccups.



That is exactly what we are trying to do. I just asked you to run that command to test what was missing and include it in the script. Nevertheless, there are many gems missing. I would like you to remove all gems and then rerun the script. These should be the commands:

sudo gem list | cut -d" " -f1 | xargs gem uninstall -aIx
./InstantHobo.sh

Remove the app and create it again and then tell us what the output was. That will tell us what is missing from the script.

Note: The remove gems command was found at http://geekystuff.net/2009/01/14/remove-all-ruby-gems/

Arthur Baldwin

unread,
Dec 16, 2011, 6:30:49 PM12/16/11
to hobo...@googlegroups.com
I removed the line:

sudo gem install mysql2 -v ????

because it seemed like it was duplicating the task of :

bundle install mysql2

do I need to put that statement back?

Arthur


From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Friday, December 16, 2011 1:49 PM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10

Arthur Baldwin

unread,
Dec 19, 2011, 11:50:10 AM12/19/11
to hobo...@googlegroups.com
OK Quiliro,

When I try to execute the first line you listed below, I get the following error message:

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /usr/local/lib/ruby/gems/1.9.1 directory.

So now what?

Arthur


From: Arthur Baldwin <eeng...@yahoo.com>
To: "hobo...@googlegroups.com" <hobo...@googlegroups.com>
Sent: Friday, December 16, 2011 3:30 PM

Vivek Sampara

unread,
Dec 19, 2011, 12:20:30 PM12/19/11
to hobo...@googlegroups.com
Arthur,
Have you tried using "sudo" before the command ?
Vivek

kevinpfromnm

unread,
Dec 19, 2011, 1:14:15 PM12/19/11
to hobo...@googlegroups.com
Haven't read the whole thread but if you're using RVM you don't want to use sudo (in all likelihood).

Arthur Baldwin

unread,
Dec 19, 2011, 2:57:28 PM12/19/11
to hobo...@googlegroups.com
I will never use RVM because it goes against all of the principles upon which I operate.
In my opinion, a development tool of ANY kind that is ready to be used in a professional manner...
should be installable for All users (especially on Linux) equally well when used within any directory.
AND should be easily installable with one "point and click" installer in a consistent manner.
Such has never been the case with hobo, ruby, or rails where any distro of Linux is concerned...nor is it likely to be the case anytime soon.
Using the script for me is the very best possible option that has any hope of being accomplished.

Sincerely,

Arthur Baldwin



From: kevinpfromnm <kevinp...@gmail.com>
To: hobo...@googlegroups.com
Sent: Monday, December 19, 2011 10:14 AM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10

Haven't read the whole thread but if you're using RVM you don't want to use sudo (in all likelihood). --
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To view this discussion on the web visit https://groups.google.com/d/msg/hobousers/-/o20OZ1HjOesJ.

Arthur Baldwin

unread,
Dec 19, 2011, 3:16:07 PM12/19/11
to hobo...@googlegroups.com
sudo gem list | cut -d" " -f1 | xargs gem uninstall -aIx

is the command I used when getting the error message:

ERROR:  While executing gem ... (Gem::FilePermissionError)
    You don't have write permissions into the /usr/local/lib/ruby/gems/1.9.1 directory.

Sent: Monday, December 19, 2011 8:50 AM

Quiliro Ordóñez

unread,
Dec 19, 2011, 5:46:39 PM12/19/11
to hobo...@googlegroups.com
On 19/12/11 15:16, Arthur Baldwin wrote:
sudo gem list | cut -d" " -f1 | xargs gem uninstall -aIx

Sorry Arthur. The correct command should be:
sudo gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx

Please avoid top posting. It is easier to read and answer the thread if you use interleaved posting. Thanks.

Arthur Baldwin

unread,
Dec 19, 2011, 6:50:55 PM12/19/11
to hobo...@googlegroups.com
By the way, you still didn't advise me on whether to use:

sudo gem install mysql2

or

bundle install mysql2 in the script!

ok...here is the output of that command:

arthur@TCOServer:~/Documents/Books/ROR$ sudo gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx
[sudo] password for arthur:
Successfully uninstalled abstract-1.0.0
Successfully uninstalled actionmailer-3.0.11
Successfully uninstalled actionpack-3.0.11
Successfully uninstalled activemodel-3.0.11
Successfully uninstalled activerecord-3.0.11
Successfully uninstalled activeresource-3.0.11
Successfully uninstalled activesupport-3.0.11
Successfully uninstalled arel-2.0.10
Successfully uninstalled bigdecimal-1.1.0
Successfully uninstalled builder-2.1.2
Removing bundle
Successfully uninstalled bundler-1.0.21
Successfully uninstalled daemon_controller-0.2.6
Successfully uninstalled dryml-1.3.0
Removing erubis
Successfully uninstalled erubis-2.6.6
Successfully uninstalled fastthread-1.0.7
Removing hobo
Successfully uninstalled hobo-1.3.0
Removing hobofields
Successfully uninstalled hobo_fields-1.3.0
Successfully uninstalled hobo_support-1.3.0
Successfully uninstalled i18n-0.5.0
Successfully uninstalled io-console-0.3
Successfully uninstalled json-1.5.4
Successfully uninstalled mail-2.2.19
Successfully uninstalled mime-types-1.17.2
Successfully uninstalled minitest-2.5.1
Successfully uninstalled mysql2-0.3.11
Removing passenger
Removing passenger-install-apache2-module
Removing passenger-install-nginx-module
Removing passenger-config
Removing passenger-status
Removing passenger-memory-stats
Removing passenger-make-enterprisey
Successfully uninstalled passenger-3.0.11
Successfully uninstalled polyglot-0.3.3
Successfully uninstalled rack-1.2.4
Removing rackup
Successfully uninstalled rack-1.3.5
Successfully uninstalled rack-mount-0.6.14
Successfully uninstalled rack-test-0.5.7
Removing rails
Successfully uninstalled rails-3.0.11
Successfully uninstalled railties-3.0.11
Removing rake
Successfully uninstalled rake-0.9.2.2
Removing rdoc
Removing ri
Successfully uninstalled rdoc-3.9.4
Removing rake2thor
Removing thor
Successfully uninstalled thor-0.14.6
Removing tt
Successfully uninstalled treetop-1.4.10
Successfully uninstalled tzinfo-0.3.31
Successfully uninstalled will_paginate-3.0.2



From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Monday, December 19, 2011 2:46 PM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10

Arthur Baldwin

unread,
Dec 19, 2011, 11:25:10 PM12/19/11
to hobo...@googlegroups.com
Hi Quiliro,

This issue is now very critical to me...I have undertaken a paid contract to develop Hobo based website for a private client.
So I'm desperate to get this issue resolved as quickly as possible.

Thanks for your help.

Sincerely,

Arthur Baldwin


From: Arthur Baldwin <eeng...@yahoo.com>
To: "hobo...@googlegroups.com" <hobo...@googlegroups.com>
Sent: Monday, December 19, 2011 3:50 PM

Quiliro Ordóñez

unread,
Dec 20, 2011, 12:32:37 AM12/20/11
to hobo...@googlegroups.com
OK. All gems have been removed for you. Now you should install Hobo and
the dependant gems. Do this by running the script. Here is a new
version. I have made it simpler since we have a stable version of Hobo
now. Remeber to make it executable with
sudo chmod +x InstantHobo.bash
Hope this helps and please post results.


# Copyright (C) 2011 Quiliro Ord��ez

# 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.3
#
# 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 -aI

# Keep hacking!


echo Updating the APT Database...
sudo apt-get update
echo APT Group installation...
sudo apt-get -y install wget curl build-essential bison openssl zlib1g libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libyaml-dev libxslt-dev autoconf libc6-dev libreadline6-dev zlib1g-dev libcurl4-openssl-dev libmysqlclient16-dev libmysqlclient16 imagemagick libmagick9-dev git-core mysql-server
echo WGet Ruby Language...

wget -cftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz


echo UnZip Ruby Language...
tar -xzf ruby-1.9.3-p0.tar.gz
echo Change to Ruby Language Directory...
cd ruby-1.9.3-p0
echo Configure Ruby Language for Compilation...
sudo ./configure --prefix=/usr/local
echo Compiling the Ruby Language files...
sudo make
echo Installing the Ruby Language...
sudo make install

echo Using new values on the default path


source ~/.bashrc
echo Using Gem to install MySQL2 driver...
sudo gem install mysql2

echo Using Gem to Install Hobo...
sudo gem install hobo


Quiliro Ordóñez

unread,
Dec 20, 2011, 12:35:10 AM12/20/11
to hobo...@googlegroups.com
Please replace this line:

> # Copyright (C) 2011 Quiliro Ordусez

with:

# Copyright (C) 2011 Quiliro Ordóñez

Arthur Baldwin

unread,
Dec 20, 2011, 12:41:40 AM12/20/11
to hobo...@googlegroups.com
One more little issue:

The problems seem to begin when during the configuration step for Ruby Language it displays an error that says something about

"can't configure dbm"

then shortly after that:

"can't configure gdbm"

Is it possible that the script needs to be changed when using KUbuntu rather than Ubuntu?  I am now using KUbuntu.

Sincerely,

Arthur Baldwin


From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Monday, December 19, 2011 9:32 PM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10

OK. All gems have been removed for you. Now you should install Hobo and the dependant gems. Do this by running the script. Here is a new version. I have made it simpler since we have a stable version of Hobo now. Remeber to make it executable with
sudo chmod +x InstantHobo.bash
Hope this helps and please post results.


#    Copyright (C) 2011  Quiliro Ordусez
-- You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsub...@googlegroups.com.

Quiliro Ordóñez

unread,
Dec 20, 2011, 1:03:58 AM12/20/11
to hobo...@googlegroups.com
On 20/12/11 00:41, Arthur Baldwin wrote:
One more little issue:

The problems seem to begin when during the configuration step for Ruby Language

Did you test the new script?


it displays an error that says something about

"can't configure dbm"

then shortly after that:

"can't configure gdbm"


There is something wrong with your libruby package. If you still have a problem after running the script, before re-runing the script remove the libruby apt installation with:
sudo apt-get purge ruby libruby
because you are already installing Ruby from source. You don't need the Ruby apt package.

It would be even better if you tested it on a fresh installation of the operativg system.


Is it possible that the script needs to be changed when using KUbuntu rather than Ubuntu?  I am now using KUbuntu.



No. They have exactly the same packages with respect to Hobo. The only thing that changes is the desktop environment which nas nothing to do with Hobo, Rails or Ruby.

Arthur Baldwin

unread,
Dec 20, 2011, 1:05:26 AM12/20/11
to hobo...@googlegroups.com
I'm still testing the new script now...hang on...


From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Monday, December 19, 2011 10:03 PM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10
--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+...@googlegroups.com.

Quiliro Ordóñez

unread,
Dec 20, 2011, 12:49:46 PM12/20/11
to hobo...@googlegroups.com
On 20/12/11 01:05, Arthur Baldwin wrote:
I'm still testing the new script now...hang on...



Any news?

Arthur Baldwin

unread,
Dec 20, 2011, 2:12:58 PM12/20/11
to hobo...@googlegroups.com
I won't have news until later tonight...had to reinstall KUbuntu because of several screwups.
Will be testing on a clean install of KUbuntu 11.10 tonight after work.

Sincerely,

Arthur Baldwin
The other error messages I reported may not be affecting the usefulness of hobo, but they really should be addressed by someone.


From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Tuesday, December 20, 2011 9:49 AM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10
On 20/12/11 01:05, Arthur Baldwin wrote:
I'm still testing the new script now...hang on...



Any news?

Quiliro Ordóñez

unread,
Dec 20, 2011, 4:01:59 PM12/20/11
to hobo...@googlegroups.com
On 20/12/11 14:12, Arthur Baldwin wrote:
I won't have news until later tonight...had to reinstall KUbuntu because of several screwups.
Will be testing on a clean install of KUbuntu 11.10 tonight after work.


I did not design this scrip for Ubuntu 11.10 but for Trisquel 5.0 which is the free (as in freedom) software version of Ubuntu 11.04. It might work for that distro but I am not sure.


The other error messages I reported may not be affecting the usefulness of hobo, but they really should be addressed by someone.

I changed the script to address those issues.

Ankur

unread,
Dec 20, 2011, 4:28:32 PM12/20/11
to Hobo Users
As someone mentioned above, if this is critical work, why not use the
tried and tested RVM?

http://beginrescueend.com/

There is a one line install, then it has scripts to install whichever
ruby you want. I recommend 1.9.2-patched. It's only disadvantage is
that it takes time to compile.

If you want something simpler (for production where you don't
necessarily have to switch rubies) then there is a package already
built to install ruby.

https://github.com/garethr/packages/downloads

I don't see the point in reinventing the wheel with more scripts.

Ankur

Quiliro Ordóñez

unread,
Dec 20, 2011, 5:39:56 PM12/20/11
to hobo...@googlegroups.com
On 20/12/11 16:28, Ankur wrote:


I don't see the point in reinventing the wheel with more scripts.


I really don't want to audit more software for nonfree parts. Also, I
would like the installation to be available to all users. That is why I
prefer to use less tools hence avoiding RVM. I would even like to avoid
gems. It would be nice to have a .deb that installs Hobo and its
dependencies.

Arthur Baldwin

unread,
Dec 20, 2011, 7:37:32 PM12/20/11
to hobo...@googlegroups.com
I heartily agree.  However, I would like to see a package designed to integrate with Muon Software Center (KUbuntu version akin to Software Center for Ubuntu) that would successfully do everything to install Hobo (including Ruby and Rails).  This is really THE necessary step to make it popular among users to try using Hobo.

Arthur


From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Tuesday, December 20, 2011 2:39 PM
Subject: Re: [Hobo Users] Re: Latest InstantHobo install script for Ubuntu 11.10

On 20/12/11 16:28, Ankur wrote:


I don't see the point in reinventing the wheel with more scripts.


I really don't want to audit more software for nonfree parts. Also, I would like the installation to be available to all users. That is why I prefer to use less tools hence avoiding RVM. I would even like to avoid gems. It would be nice to have a .deb that installs Hobo and its dependencies.

-- You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsub...@googlegroups.com.

Quiliro Ordóñez

unread,
Dec 20, 2011, 9:34:12 PM12/20/11
to hobo...@googlegroups.com
On 20/12/11 19:37, Arthur Baldwin wrote:
I heartily agree.  However, I would like to see a package designed to integrate with Muon Software Center (KUbuntu version akin to Software Center for Ubuntu) that would successfully do everything to install Hobo (including Ruby and Rails).  This is really THE necessary step to make it popular among users to try using Hobo.


If it is a .deb package it can be installed by Muon Software Center and Software Center. But I don't think I will have time to make one untill next year.

Arthur Baldwin

unread,
Dec 21, 2011, 2:16:03 PM12/21/11
to hobo...@googlegroups.com
Unfortunately the script still does not fully prepare the MySQL2 module for hobo. I'm still getting the error:

 Hobo Setup Wizard                                                             
  Do you want to start the Setup Wizard now?                                   
(Choose 'n' if you need to manually customize any file before running the Wizard.                                                                              
You can run it later with `hobo g setup_wizard` from the application root dir.) [y|n] y                                                                        
    => "y"

Could not find gem 'mysql2 (~> 0.2.17) ruby' in any of the gem sources listed in your Gemfile.                                                                 
Run `bundle install` to install missing gems.

This happens on a clean install of KUbuntu 11.10 when running the current version of the script as you sent it to me.

Sincerely,

Arthur Baldwin


From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Tuesday, December 20, 2011 1:01 PM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10

Arthur Baldwin

unread,
Dec 21, 2011, 3:10:37 PM12/21/11
to hobo...@googlegroups.com
In the beginning of the script where APT is used to install all those packages, there might be one package missing.  I seem to remember that there is a mysql package that has a -dev on the end that is also required.

Sincerely,

Arhtur

Sent: Wednesday, December 21, 2011 11:16 AM

Arthur Baldwin

unread,
Dec 21, 2011, 3:27:15 PM12/21/11
to hobo...@googlegroups.com
OK, nevermind, just saw this item in the current script:
libmysqlclient16-dev
I think that was the one I remembered.  One other thought keeps bothering me though, I'm using KUbuntu 11.10 (64 bit version).  Would than make any difference in the library packages used?

Sincerely,

Arthur Baldwin


Sent: Wednesday, December 21, 2011 12:10 PM

Arthur Baldwin

unread,
Dec 21, 2011, 3:48:28 PM12/21/11
to hobo...@googlegroups.com
Hey Quiliro,

Just had an idea!  I know that the package libmysqlclient16-dev is used when compiling the ruby language to interface with mysql-server somehow, but the name refers to mysql-client, but no mysql-client package is in the list of things to install in the APT section.  Doesn't that mean that there will be nothing to actually "link to" in the Ruby language even though everything compiles because the "dev" package is there?

Sincerely,

Arthur Baldwin

Sent: Wednesday, December 21, 2011 12:27 PM

Arthur Baldwin

unread,
Dec 21, 2011, 4:41:44 PM12/21/11
to hobo...@googlegroups.com
Dear Quiliro,

Nope...I'm on the wrong track...I tried going to the ruby language directory and doing the following commands:

apt-get install mysql-client
sudo make clean
sudo make
sudo make install

then I went back to the directory where the script was and did:

sudo gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx
./InstantHobo.bash

but still ended up with the same error message listed below:

 Hobo Setup Wizard                                                             
  Do you want to start the Setup Wizard now?                                   
(Choose 'n' if you need to manually customize any file before running the Wizard.                                                                              
You can run it later with `hobo g setup_wizard` from the application root dir.) [y|n] y                                                                        
    => "y"
Could not find gem 'mysql2 (~> 0.2.17) ruby' in any of the gem sources listed in your Gemfile.                                                                 
Run `bundle install` to install missing gems.

By the way, I can get the hobo wizard to run properly (for subsequent hobo projects) by going into one of the new hobo project directories and issuing the command:

bundle update --system

But doing this is NOT a desirable solution.

Sincerely,

Arthur Baldwin

Sent: Wednesday, December 21, 2011 12:48 PM

Arthur Baldwin

unread,
Dec 21, 2011, 5:03:56 PM12/21/11
to hobo...@googlegroups.com
Dear Quiliro,

Please take a look at the following output:

arthur@TCOServer:~/Documents/Websites$ cd TCO
arthur@TCOServer:~/Documents/Websites/TCO$ bundle install --system
Fetching source index for http://rubygems.org/
Enter your password to install the bundled RubyGems to your system:
Using rake (0.9.2.2)
Using abstract (1.0.0)
Using activesupport (3.0.11)
Using builder (2.1.2)
Using i18n (0.5.0)
Using activemodel (3.0.11)
Using erubis (2.6.6)
Using rack (1.2.4)
Using rack-mount (0.6.14)
Using rack-test (0.5.7)
Using tzinfo (0.3.31)
Using actionpack (3.0.11)
Using mime-types (1.17.2)
Using polyglot (0.3.3)
Using treetop (1.4.10)
Using mail (2.2.19)
Using actionmailer (3.0.11)
Using arel (2.0.10)
Using activerecord (3.0.11)
Using activeresource (3.0.11)
Using bundler (1.0.21)
Installing json (1.6.3) with native extensions
Installing rdoc (3.12)
Using thor (0.14.6)
Using railties (3.0.11)
Using rails (3.0.11)
Using hobo_support (1.3.0)
Using dryml (1.3.0)
Using hobo_fields (1.3.0)
Using will_paginate (3.0.2)
Using hobo (1.3.0)
Installing mysql2 (0.2.18) with native extensions
Your bundle is complete! Use `bundle show [gemname]` to see where a bundled gis installed.               

Please note that the lines that begin with "Using" indicate that nothing has changed, but the ones that begin with "Installing" indicate that something new is being used.  This shows me that the following gem related packages were not successfully installed by our script:

Installing json (1.6.3) with native extensions
Installing rdoc (3.12)
Installing mysql2 (0.2.18) with native extensions

Find out why our script is failing in this area...and we'll have our answer.

Please notice that the error message is "expecting" version 0.2.17 of mysql2, not 0.2.18!

Sincerely,

Arthur Baldwin 

Sent: Wednesday, December 21, 2011 1:41 PM

Quiliro Ordóñez

unread,
Dec 21, 2011, 11:01:19 PM12/21/11
to hobo...@googlegroups.com
El 21/12/11 17:03, Arthur Baldwin escribió:
This shows me that the following gem related packages were not successfully installed by our script:

Installing json (1.6.3) with native extensions
Installing rdoc (3.12)
Installing mysql2 (0.2.18) with native extensions

Find out why our script is failing in this area...and we'll have our answer.


Exactly those are the gems needed. All you have to do is add them to a "sudo gem install" line. Here is the exact text

sudo gem install json rdoc mysql2

But possibly it would just work with

sudo gem install mysql2

because the others might be dependecies of mysql2. If you remove all gems with

sudo gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx

and you execute the modified script, then you can test if it will work with the simpler command or if it needs to be the long one.


Please notice that the error message is "expecting" version 0.2.17 of mysql2, not 0.2.18!

mysql2 (~> 0.2.17) means that version or newer.



Please avoid top-posting. It is easier to read when your response is right after the portion of the text you are answering.

Arthur Baldwin

unread,
Dec 22, 2011, 12:51:44 PM12/22/11
to hobo...@googlegroups.com
Since the current script already includes the line:

sudo gem install mysql2

it must be that "mysql2" depends upon either json or rdoc...or maybe both.

I will be testing that theory tonight.

In other news....KUbuntu 11.10 (64 bit version) has a "bug" during initial installation and the first major updating process after installation.  I was finally able to fix the problem and will be writing another script called "FixMyInstall.bash".  I'm sure that this bug will be fixed by April 26, 2012 (release date for Ubuntu 12.04 and KUbuntu 12.04).  But in the mean time I'm certain that this bug is causing widespread problems for many KUbuntu users.  Apparently it is due to "incompatibilities of KUbuntu 11.10 with certain motherboards", but two different motherboards at my home both exhibit the same problem...so my guess  is that this problem is quite common.  The symptom is that after installing KUbuntu 11.10, it is necessary on some machines to hold down the power button for 3 seconds to reboot the machine.  Later during the first update process, after downloading all the update files and beginning the installation process, the process "hangs" at 58% and the updating tools cease to function properly.  Any attempt to install new software packages also fails.  This is the bug that has delayed my testing of your script for a while!  Fortunately, I now have a complete solution and will create another script to make things easier for others who may also be having the same problem.

Sincerely,

Arthur Baldwin



From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Wednesday, December 21, 2011 8:01 PM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10

Quiliro Ordóñez

unread,
Dec 22, 2011, 3:16:00 PM12/22/11
to hobo...@googlegroups.com
Please avoid top-posting!!!! It is extremely exhausting. I am top-posting now because you seem not to be reading it when I post inline. Please inline post next emails because I will not answer any more mails with top-posting on them. Below are some answers for your mail.

El 22/12/11 12:51, Arthur Baldwin escribió:
Since the current script already includes the line:

sudo gem install mysql2


Then the script is not installing it. Please copy the results of running InstantHobo.bash after removing all gems with the command I have pasted before.

it must be that "mysql2" depends upon either json or rdoc...or maybe both.


Probably. But if ifdoes and the script install mysql2 then it should install them.


I will be testing that theory tonight.

 Hope to see news. :-)

Arthur Baldwin

unread,
Dec 23, 2011, 10:21:39 AM12/23/11
to hobo...@googlegroups.com
Dear Quiliro,

I found the problem for sure.  After adding the lines:

sudo gem install json
sudo gem install rdoc

and running the script on a brand new installation of KUbuntu 11.10
the error messages during the script run were much fewer,
but the same error message appears when creating the first website with hobo.

So the issue is NOT dependencies.

I was very discouraged last night when I made this discovery and didn't know where to turn next. 
Then this morning I thought "What if the structure of the gem file for mysql2 does not
implement proper choosing of the correct version"?

Sure enough, after manually issuing the following command from the "ruby language directory:

sudo gem install mysql2 -v 0.2.18

The hobo command for a new project completed successfully.
This proves beyond all doubt that the source of the problem lies in the design of the file:

mysql2.gem

Which I'm not about to fix on my own, since I have no idea how they are structured.

Arthur Baldwin

unread,
Dec 23, 2011, 12:55:02 PM12/23/11
to hobo...@googlegroups.com
Dear Quiliro,

Here is my modified version of the script.  It now works perfectly on a clean install of KUbuntu 11.10 and I've also tested it on a system that is "not clean" and have used the command line you contributed to "clean it up".  Running the script again also works fine.  Now it's up to others to continue testing with other distros.  Thanks for your help.

Sincerely,

Arthur Baldwin

#    Copyright (C) 2011  Quiliro Ordусez
#    sudo gem list | cut -d" " -f1 | xargs sudo gem uninstall -aIx

#    Keep hacking!
#
#    Additional Contributions by Arthur E. Baldwin
#    The lines sudo gem install json, and sudo gem install rdoc must be
#    included in the same position in order to resolve dependency issues with the gem system.
#    This necessity may be eliminated as time goes on...when the gem files are fully debugged.
#    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 on KUbuntu 11.10 (64 bit).  I'm leaving it up to others
#    to test and report their findings on other distros.



echo Updating the APT Database...
sudo apt-get update
echo APT Group installation...
sudo apt-get -y install wget curl build-essential bison openssl zlib1g libxslt1.1 libssl-dev libxslt1-dev libxml2 libffi-dev libyaml-dev libxslt-dev autoconf libc6-dev libreadline6-dev zlib1g-dev libcurl4-openssl-dev libmysqlclient16-dev libmysqlclient16 imagemagick libmagick9-dev git-core mysql-server
echo WGet Ruby Language...
wget -cftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.3-p0.tar.gz
echo UnZip Ruby Language...
tar -xzf ruby-1.9.3-p0.tar.gz
echo Change to Ruby Language Directory...
cd ruby-1.9.3-p0
echo Configure Ruby Language for Compilation...
sudo ./configure --prefix=/usr/local
echo Compiling the Ruby Language files...
sudo make
echo Installing the Ruby Language...
sudo make install
echo Using new values on the default path
source ~/.bashrc
echo Using Gem to install json...
sudo gem install json
echo Using Gem to install RDoc...
sudo gem install rdoc

echo Using Gem to install MySQL2 driver...
sudo gem install mysql2 -v 0.2.18

Quiliro Ordóñez

unread,
Dec 24, 2011, 12:40:20 PM12/24/11
to hobo...@googlegroups.com
Great contribution Arthur. I think I might be able to retire. ;-)

So these are the changes:

echo Using Gem to install json...
sudo gem install json
echo Using Gem to install RDoc...
sudo gem install rdoc
echo Using Gem to install MySQL2 driver...
sudo gem install mysql2 -v 0.2.18

That means that mysql2 version 0.2.18 is not the latest and that rdoc and json are not dependencies of any other previously installed gem in the script. ¿Am I correct? If you can test this, you can make the script even better than you have up to now.

Quiliro Ordóñez

unread,
Dec 24, 2011, 12:50:31 PM12/24/11
to hobo...@googlegroups.com

> That means that mysql2 version 0.2.18 is not the latest
>

I can see that the current version for mysql2 is 0.3.11. If you remove
the currently installed mysql2 versions and install the latest version
(0.3.11), will it work?

sudo gem remove mysql2
(Repeat the above command until there are no more mysql2 gems installed.)
sudo gem install mysql2
(Now test.)

I will make a mod of the script for Parabola so we can have InstantHobo
for various GNU platforms.

Arthur Baldwin

unread,
Dec 26, 2011, 3:22:21 AM12/26/11
to hobo...@googlegroups.com
Dear Quiliro,

Unfortunately...I've found the real problem.  Although the latest version is 0.3.11...it is also THE version that causes the problem I was describing since the beginning of this new round of script design.  By issuing the following two commands I fixed the problem:

sudo gem uninstall mysql2
sudo gem install mysql2 -v 0.2.18

So...it is time for the developers of the mysql2 driver to fix their code.  Unless perhaps it's just that hobo isn't able to get past version 0.2.18 yet?
Either way...for now the script must include the -v 0.2.18.   At least until the problem is fixed.

Sincerely,

Arthur Baldwin


From: Quiliro Ordóñez <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Saturday, December 24, 2011 9:50 AM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10
-- You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsub...@googlegroups.com.

Quiliro Ordóñez

unread,
Dec 26, 2011, 12:20:07 PM12/26/11
to hobo...@googlegroups.com
El 26/12/11 03:22, Arthur Baldwin escribió:
Dear Quiliro,

Unfortunately...I've found the real problem.  Although the latest version is 0.3.11...it is also THE version that causes the problem I was describing since the beginning of this new round of script design.  By issuing the following two commands I fixed the problem:

sudo gem uninstall mysql2
sudo gem install mysql2 -v 0.2.18

So...it is time for the developers of the mysql2 driver to fix their code.  Unless perhaps it's just that hobo isn't able to get past version 0.2.18 yet?
Either way...for now the script must include the -v 0.2.18.   At least until the problem is fixed.


OK. I see you will not stop top-posting. Good luck.

qui...@congresolibre.org

unread,
Jan 6, 2012, 4:39:06 PM1/6/12
to hobo...@googlegroups.com
This is a new version of the script that has a database selection and uses
the default version of Ruby (1.8).


#!/bin/bash

# Copyright (C) 2011 Quiliro Ord&#1091;&#1089;ez

# 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


#
# 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 -aIxsudo
apt-get update

# 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 "Installing stable versions of Ruby and Rubygems"
echo "as well as the git versioning system"
sudo apt-get install ruby rubygems git-core

echo "Setting the path for the gem command for the current user"
echo "PATH="/var/lib/gems/1.8/bin:$PATH"" >> $HOME/.profile

echo "Setting the path for the gem command for future users"
echo "PATH="/var/lib/gems/1.8/bin:$PATH"" >> /etc/profile

echo "Updating currently installed gems"
sudo gem update

echo "Installing Apache web server"
sudo aptitude install apache2


# Choosing the database

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 mysql2 gem"
sudo gem install mysql2
echo "Installing MySQL database management system server"
sudo aptitude install mysql-server libmysqlclient-dev
;;

"S" | "s" )

echo "Installing sqlite3"
sudo aptitude install libsqlite3-dev
echo "Installing sqlite3 gem"
sudo gem install sqlite3
;;

esac


echo "Installing the Hobo gem"
sudo gem install hobo

# End of script


--
Saludos.

Quiliro Ord��ez
(02)2595632
(02)3401517
09-6782520
Si me equivoco, al menos se que soy qui�n se equivoc� y no que me dieron
equivoc�ndome.
Quito, Ecuador

qui...@congresolibre.org

unread,
Jan 6, 2012, 6:30:03 PM1/6/12
to hobo...@googlegroups.com
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

Arthur Baldwin

unread,
Jan 16, 2012, 12:45:24 AM1/16/12
to hobo...@googlegroups.com

From: "qui...@congresolibre.org" <qui...@congresolibre.org>
To: hobo...@googlegroups.com
Sent: Friday, January 6, 2012 3:30 PM

Subject: Re: [Hobo Users] Latest InstantHobo install script for Ubuntu 11.10
--
You received this message because you are subscribed to the Google Groups "Hobo Users" group.
To post to this group, send email to hobo...@googlegroups.com.
To unsubscribe from this group, send email to hobousers+unsub...@googlegroups.com.
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

Reply all
Reply to author
Forward
0 new messages