google-code-export / ovz-web-panel

Automatically exported from code.google.com/p/ovz-web-panel
Other
1 stars 1 forks source link

Fatal error: Panel requires Ruby 1.8 (Ruby 1.9 is not supported). #540

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
SYSTEM Debian 7.5 stable (Wheezy) (64bits)

error message

ruby --version
ruby 1.9.3p194 (2012-04-20 revision 35410) [x86_64-linux]

apt-get -y remove ruby1.9*
apt-get -y install ruby1.8

ruby --version
ruby 1.8.7 (2012-02-08 patchlevel 358) [x86_64-linux]

propose update ai.sh

change

if [ "$DISTRIB_ID" = "Ubuntu" -o "$DISTRIB_ID" = "Debian" ]; then
    apt-get update
    apt-get -y install ruby rubygems libsqlite3-ruby libopenssl-ruby rake
  fi

by

if [ "$DISTRIB_ID" = "Ubuntu" -o "$DISTRIB_ID" = "Debian" ]; then
    apt-get update
    apt-get -y remove ruby1.9*
    apt-get -y install ruby1.8 rubygems libsqlite3-ruby libopenssl-ruby rake
  fi

100% work

Original issue reported on code.google.com by andyki...@gmail.com on 18 Jun 2014 at 6:49