and fcgi, etc.:
So here’s how I did it.
then go in there
nice ./configure –enable-shared –prefix=$HOME/local_installs && nice
make && make install # install ruby 1.8.6
extract it, then $HOME/local_installs/bin/ruby setup.rb [from within it].
now if you do $HOME/local_installs/bin/gem list it shows you your
gems! Actually I’m not sure what it shows you.
But anyway I use a custom gems directory.
in my ~/.bashrc file:
and in environment.rb in the substruct guy:
if Socket.gethostname =~ /bluehost.com/
ENV[‘RAILS_ENV’] ||= ‘production’
ENV[‘GEM_PATH’] = ‘/home/wilkboar/.gems:/usr/lib/ruby/gems/1.8’
ENV[‘GEM_HOME’] = ‘/home/wilkboar/.gems’
Anyway so you’d need to set those directives [I think] before you do
the rubygems install.
And after that then running ~/local_installs/bin/gem list should show
either none of the ‘normal’ instaled gems. But you can add more by
doing gem install, like gem install money or what not. And it works
To test it I add $HOME/local_installs/bin to my path
[this so that script/server will pick up the right ruby install]
And run script/server in one console window, then request things from
a different console window
so in one script/server
in another wget localhost:3000
wget localhost:3000/store # this one is the kicker