Installation (v0.3.2) on Hardy 8.04

2 views
Skip to first unread message

Ed Howland

unread,
Dec 29, 2009, 12:02:11 PM12/29/09
to spec...@googlegroups.com
This is the install procedure on a bare-minimum Ubuntu 8.04 Hardy
image. This presumes one with a working Ruby and Rails installed from
Ubuntu packages and gems [1]

apt-get update
apt-get install curl git-core
gem update --system
gem update
gem install rspec cucumber yard json rest-client sinatra jeweler
mkdir ruby
cd ruby/
git clone http://github.com/edhowland/spec_wire.git
cd spec_wire/
servers/ruby_server.rb >sinatra.out 2>&1 &
rake spec

You might get a few messages during the gem install about missing
rdocs, just ignore those.

The output of rake spec should look like:(in /root/ruby/spec_wire)
---
[WARNING] The git gem requires git 1.6.0.0 or later, but only found
1.5.4.3. You should probably upgrade.
All dependencies seem to be installed.
./spec/spec_wire_spec.rb:47: warning: parenthesize argument(s) for
future version
................object.our_id -606396818
..

Finished in 0.12059 seconds

18 examples, 0 failures
---

if you get this then all should be working. If not email the list and
I'll take a look.
YMMV, but these are the minimum gems to get started.

Cheers,
Ed
[1] The actual image I used was Turnkey Linux Ruby on Rails vm
http://www.turnkeylinux.org/rails
It is a Hardy image with Rails, so Ruby and RubyGems are set up already.

--
Ed Howland
http://greenprogrammer.wordpress.com
http://twitter.com/ed_howland

Robert Citek

unread,
Dec 29, 2009, 4:57:15 PM12/29/09
to spec_wire
I needed to add sudo to several commands:

sudo apt-get update
sudo apt-get install curl git-core
sudo gem update --system
sudo gem update
sudo gem install rspec cucumber yard json rest-client sinatra jeweler


mkdir ruby
cd ruby/
git clone http://github.com/edhowland/spec_wire.git
cd spec_wire/
servers/ruby_server.rb >sinatra.out 2>&1 &
rake spec

Regards,
- Robert

Robert Citek

unread,
Dec 30, 2009, 8:21:56 PM12/30/09
to spec_wire
Got more RAM for the laptop and am trying this there. About 1/4 of
the way through and so far, so good.

Regards,
- Robert

Robert Citek

unread,
Dec 30, 2009, 8:31:52 PM12/30/09
to spec_wire
Seems to work well. One more item needs to be added: rake, which is
available via apt-get on Ubuntu 8.04.

sudo apt-get update
sudo apt-get install curl git-core rake


sudo gem update --system
sudo gem update
sudo gem install rspec cucumber yard json rest-client sinatra jeweler
mkdir ruby
cd ruby/
git clone http://github.com/edhowland/spec_wire.git
cd spec_wire/
servers/ruby_server.rb >sinatra.out 2>&1 &
rake spec

Regards,
- Robert

Ed Howland

unread,
Dec 31, 2009, 10:25:23 AM12/31/09
to spec...@googlegroups.com
Worked on mine but probably because Ruby and Rails pre-existed. I
might try a Turnkey core, which bare-bones, but //i am targeting Ruby
users whom I assume have Rake installed, esp. if they are RSpec/Cuke
users.

Cheers and Happy New Year
Ed .

--

Robert Citek

unread,
Jan 7, 2010, 12:56:58 PM1/7/10
to spec...@googlegroups.com
I put the instructions for setting up spec_wire on a group page:

http://groups.google.com/group/spec_wire/web/setup

Regards,
- Robert

Robert Citek

unread,
Jan 7, 2010, 1:01:36 PM1/7/10
to spec...@googlegroups.com
Ran into some issues with setting up spec_wire on Ubuntu 9.04:

$ sudo gem update --system
ERROR: While executing gem ... (RuntimeError)
gem update --system is disabled on Debian. RubyGems can be updated
using the official Debian repositories by aptitude or apt-get.

$ sudo gem install jeweler
ERROR: Error installing jeweler:
gemcutter requires RubyGems version >= 1.3.5

$ ruby --version
ruby 1.8.7 (2008-08-11 patchlevel 72) [x86_64-linux]

Regards,
- Robert

Robert Citek

unread,
Jan 19, 2010, 7:48:22 PM1/19/10
to spec...@googlegroups.com
Tried again and now have different issues. I updated the google page
to reflect what I did:

http://groups.google.com/group/spec_wire/web/setup

The errors I get happen when I try to install gems on Ubuntu 9.04.
For example, when I try to install jeweler, I get this:

$ sudo gem install jeweler

Successfully installed jeweler-1.4.0
1 gem installed
ERROR: While executing gem ... (SystemStackError)
stack level too deep

Works fine on Ubuntu 8.04. Will try again on 9.04.

Thoughts?

Regards,
- Robert

Ed Howland

unread,
Jan 19, 2010, 9:34:23 PM1/19/10
to spec...@googlegroups.com
Just curious, why the symlinks to/from /etc/alternatives?

I just did it from gem1.8 to gem

I did fot install rubygems via apt-get and then purge it. This seems
simpler for the wiki.

I also had to : sudo apt-get install ruby1.8-dev

Here is my history (on 9.04) for comparison:
520 sudo apt-get update
521 sudo apt-get install ruby
522 sudo apt-get install rdoc irb rake build-essential libopenssl-ruby
523 sudo apt-get install curl git-core rake
524 wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz
&& tar -xzvf rubygems-1.3.5.tgz
525 cd rubygems-1.3.5/
526 sudo ruby setup.rb
527 sudo gem update --system
528 sudo ln -snf /usr/bin/gem1.8 /usr/bin/gem
529 sudo gem update --system
530 sudo gem update
531 wget http://rubyforge.org/frs/download.php/60718/rubygems-1.3.5.tgz &&
532 sudo gem install rspec cucumber yard json rest-client sinatra jeweler
533 sudo gem install json


536 sudo apt-get install ruby1.8-dev
537 sudo gem install json
538 cd
539 mkdir ruby
540 git clone http://github.com/edhowland/spec_wire.git
541 ls
542 mv spec_wire/ ruby
543 cd ruby
544 ls
545 cd spec_wire/
546 servers/ruby_server.rb >sinatra.out 2>&1 &
547 rake spec

Also, what is your sched like? I'm open. We can look into the jeweler
thing. I don't think it is needed generally, but some rake task
probably depends on it, since it was built with jeweler.

Cheers,
Ed

> --
> Post: spec...@googlegroups.com
> Subscribe: spec_wire...@googlegroups.com
> Unsubscribe: spec_wire+...@googlegroups.com
> Website: http://groups.google.com/group/spec_wire
>
>

Robert Citek

unread,
Jan 20, 2010, 7:15:12 AM1/20/10
to spec...@googlegroups.com
On Tue, Jan 19, 2010 at 9:34 PM, Ed Howland <ed.ho...@gmail.com> wrote:
> Just curious, why the symlinks to/from /etc/alternatives?
>
> I just did it from gem1.8 to gem

I think using /etc/alternatives is the Debian way. I'm not sure of
the advantages of using it versus what you did.

There's a man page that goes blah-blah-blah about it: man update-alternatives

> I did fot install rubygems via apt-get and then purge it. This seems
> simpler for the wiki.

I was thinking that it might be better to explicitly remove rubygems
in the event that a system already had it installed.

But it seems as though the installation of the tar.gz version
"overwrites" the deb package version. So it may not be necessary to
purge the deb package.

> I also had to : sudo apt-get install ruby1.8-dev

I'll throw that in the list of packages to install.

> Here is my history (on 9.04) for comparison:

That's pretty much what I did and what's on the wiki. However, I was
still getting the stack error (SystemStackError). So I used "sudo gem
uninstall" to uninstall all the local gems and then went through the
installation process again. Seemed to work.

> Also, what is your sched like? I'm open. We can look into the jeweler
> thing. I don't think it is needed generally, but some rake task
> probably depends on it, since it was built with jeweler.

I'm wide open the rest of the week. I have a few tasks that I need to
do, but I can work those in between working on spec_wire.

Regards,
- Robert

Robert Citek

unread,
Jan 20, 2010, 8:59:15 AM1/20/10
to spec...@googlegroups.com
On Wed, Jan 20, 2010 at 7:15 AM, Robert Citek <robert...@gmail.com> wrote:
> That's pretty much what I did and what's on the wiki.  However, I was
> still getting the stack error (SystemStackError).  So I used "sudo gem
> uninstall" to uninstall all the local gems and then went through the
> installation process again.  Seemed to work.

I modified the wiki page to have one set of instructions with a test
for Ubuntu 9.04. Although there are several warnings, it seems to
work on both 8.04 and 9.04.

Ed Howland

unread,
Jan 20, 2010, 12:18:35 PM1/20/10
to spec...@googlegroups.com
Looks, good. I afree with you about both "the Debian way", and about
possibly needing to uninstall the rubygems deb pkg. We'll let users
decide for themselves. Also, our target audience probably already has
Ruby, the latest Rubygems and RSpec and/or Cucumber. Unless they
really wanted to learn RSpec w/ code in PHP!

As far as that goes, I think there is a less involved set of
requirements/dependencies. So I propose a wiki page illustrating those
in a platform agnostic way. Also, this is the development require,ent
not the ned user requirement. If we tweak the gemspec file enough,
then the only requirement should be:

sudo gem install spec_wire

That will take care of core dependencies for rest-client, json etc.

Is there a typo on the last line of the Wiki?
/usr/local/lib/site_ruby/1.8/rubygems.rb \
/usr/local/lib/site_ruby/1.8/ubygems.rb

I changed the title to be "Setup on Ubuntu", with the thought there
will be a "Setup Guide" page eventually.

I am available all week with the exception of tomorrow morn.

Robert Citek

unread,
Jan 20, 2010, 12:47:25 PM1/20/10
to spec...@googlegroups.com
On Wed, Jan 20, 2010 at 12:18 PM, Ed Howland <ed.ho...@gmail.com> wrote:
> ... If we tweak the gemspec file enough,

> then the only requirement should be:
>
> sudo gem install spec_wire
>
> That will take care of core dependencies for rest-client, json etc.

That would be very nice.

> Is there a typo on the last line of the Wiki?
> /usr/local/lib/site_ruby/1.8/rubygems.rb \
> /usr/local/lib/site_ruby/1.8/ubygems.rb

Nope. It is ubygems.rb and all it does is require rubygems. That way
you can type this (notice no double "r"):

ruby -rubygems

instead of

ruby -rrubygems

> I changed the title to be "Setup on Ubuntu", with the thought there
> will be a "Setup Guide" page eventually.

Excellent.

> I am available all week with the exception of tomorrow morn.

Nice. I'm currently doing errands but should be ready around 3pm.
Will touch bases then.

Regards,
- Robert

Ed Howland

unread,
Jan 20, 2010, 2:04:09 PM1/20/10
to spec...@googlegroups.com
Ok

See ya then. I should have had lunch by then.

Chat, Skype?

Ed

Reply all
Reply to author
Forward
0 new messages