diff --git a/install.sh b/install.sh index cbcdd3853f..de3ec95519 100755 --- a/install.sh +++ b/install.sh @@ -159,7 +159,8 @@ else DELETE_DIRS="$MAKE_DIRS" elif [ "$OZONES" = "yes" ]; then - MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION $OZONES_LOCATION" + MAKE_DIRS="$BIN_LOCATION $LIB_LOCATION $VAR_LOCATION $OZONES_LOCATION \ + $ETC_LOCATION" DELETE_DIRS="$MAKE_DIRS" else @@ -1058,8 +1059,8 @@ OZONES_LIB_CLIENT_CLI_HELPER_FILES="\ src/ozones/Client/lib/cli/ozones_helper/vdc_helper.rb \ src/ozones/Client/lib/cli/ozones_helper/zones_helper.rb" -OZONES_BIN_CLIENT_FILES="src/ozones/Client/bin/ovdcs \ - src/ozones/Client/bin/ozones" +OZONES_BIN_CLIENT_FILES="src/ozones/Client/bin/ovdc \ + src/ozones/Client/bin/ozone" OZONES_RUBY_LIB_FILES="src/oca/ruby/OpenNebula.rb" diff --git a/share/install_gems/install_gems b/share/install_gems/install_gems index ba58cded59..8787898279 100755 --- a/share/install_gems/install_gems +++ b/share/install_gems/install_gems @@ -21,6 +21,42 @@ GROUPS={ :acct_mysql => %w{sequel sqlite3 mysql} } +DISTRIBUTIONS={ + :debian => { + :id => ['Ubuntu', 'Debian'], + :dependencies => { + 'sqlite3' => 'libsqlite3-dev', + 'mysql' => 'libmysqlclient-dev', + 'curb' => 'libcurl4-openssl-dev', + 'nokogiri' => 'libexpat1-dev', + 'xmlparser' => %w{libxml2-dev libxslt1-dev} + }, + :install_command => 'apt-get install' + }, + :redhat => { + :id => ['CentOS', /^RedHat/], + :dependencies => { + 'sqlite3' => 'sqlite-devel', + 'mysql' => 'mysql-devel', + 'curb' => 'curl-devel', + 'nokogiri' => 'expat-devel', + 'xmlparser' => %w{libxml2-devel libxslt-devel} + }, + :install_command => 'yum install' + }, + :suse => { + :id => [/^SUSE/], + :dependencies => { + 'sqlite3' => 'sqlite3-devel' , + 'mysql' => 'libmysqlclient-devel', + 'curb' => 'libcurl-devel', + 'nokogiri' => 'libexpat-devel', + 'xmlparser' => %w{libxml2-devel libxslt-devel} + }, + :install_command => 'zypper install' + } +} + class String def unindent(spaces=4) @@ -38,18 +74,13 @@ def try_library(name, error_message) end def install_warning(packages) - puts "Use -h for help" - puts +# puts "Use -h for help" +# puts puts "About to install the gems for these components:" puts "* "<