lib/rconf/configurators/ruby_configurator.rb in rconf-0.6.23 vs lib/rconf/configurators/ruby_configurator.rb in rconf-0.6.24
- old
+ new
@@ -160,11 +160,11 @@
report_check("Installing required packages, this could take a while")
packages = []
if ruby =~ /^ree-|^ruby-/
packages = %w(build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev)
end # TBD Define packages needed for other rubies
- Command.execute('sudo', 'apt-get', 'install', '-y', *packages)
+ Command.sudo('apt-get', 'install', '-y', *packages)
report_success
end
# Make sure to install all required CentOS / RedHhat packages first
# NOTE: For centos 5.4 final iconv-devel might not be available :(
@@ -175,10 +175,10 @@
report_check("Installing required packages, this could take a while")
packages = []
if ruby =~ /^ree-|^ruby-/
packages = %w(gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel iconv-devel)
end # TBD Define packages needed for other rubies
- Command.execute('sudo', 'yum', 'install', '-y', *packages)
+ Command.sudo('yum', 'install', '-y', *packages)
report_success
end
alias :install_ruby_prerequesites_linux_redhat :install_ruby_prerequesites_linux_centos
# No pre-requesites to install ree or Matz ruby on Mac (TBD others)