Any help is appreciated…
I bought the paper copy of // and on page 213 it says that the source code contains a file RUBY_README.txt to help in setting up ruby. I downloaded the source from the http://pragprog.com/titles/bhh5 code section but can’t find such a file. I went ahead and setup a test ubuntu 10.4 LTS server as a LAMP server and used the following to install what I thought would be a working environment–my goal is to work with the chat example to learn web sockets. I’m getting the following error when trying to run ruby server.rb from the source code directory I get the following error:
gem_original_require': no such file to load -- em-websocket (LoadError)
from /usr/lib/ruby/1.8/rubygems/custom_require.rb:31:in require’
My ubuntu install goes like this (all commands as root):
apt-get install python-software-properties add-apt-repository ppa:ubuntu-on-rails apt-get update apt-get install ruby rubygems irb ri rdoc rake apt-get install build-essential ruby1.8-dev libopenssl-ruby export PATH=/var/lib/gems/1.8/bin:$PATH …restarted terminal gem install em-websocket-server json
What have I done wrong?