I’m trying to install Webiva (a Rails CMS)
I’m using RVM to manage my Ruby versions, I currently have 1.8.7 and 1.9.2 on Ubuntu 10.04 (I’m pretty new at Linux, so don’t be too hard on me =P)
I’ve been following this tutorial. To install Webiva I need to run ./script/quick_install.rb, but it fails throwing the following
<internal:lib/rubygems/custom_require>:29:in `require’: no such file to load — sha1 (LoadError)
from <internal:lib/rubygems/custom_require>:29:in `require’
from ./script/quick_install.rb:3:in `<main>’
I believe is because I have ruby and rubygems installed in my home folder (because of RVM).
Any idea of how can I install Webiva anyway? Probably I need to modify that script to point to the right place where Ruby is installed. But don’t know how really…
Here are the first lines of the script:
#!/usr/bin/env ruby
require 'sha1'
require 'base64'
require 'fileutils'
require 'yaml'
require 'rubygems'
require 'memcache'
RAILS_ROOT = File.dirname(__FILE__) + "/.."
def run_db_command(command,use_db=true)
if use_db
system("mysql",'-u',@username,"--password=#{@pw}","--host=#{@db_host}","--port=#{@db_port}",'-e',command,@db_name)
else
system("mysql",'-u',@username,"--password=#{@pw}","--host=#{@db_host}","--port=#{@db_port}",'-e',command)
end
end
class WebivaQuickInstall
...
And here is the full source
Thanks
I’ve ended using the ubuntu installer script from /doc dir.