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 "* "<