Class: Kompo::InstallDeps::ForLinux

Inherits:
Taski::Task
  • Object
show all
Defined in:
lib/kompo/tasks/install_deps.rb

Overview

Linux implementation - checks dependencies using pkg-config

Constant Summary collapse

REQUIRED_LIBS =
{
  "openssl" => {pkg_config: "openssl", apt: "libssl-dev", yum: "openssl-devel"},
  "readline" => {pkg_config: "readline", apt: "libreadline-dev", yum: "readline-devel"},
  "zlib" => {pkg_config: "zlib", apt: "zlib1g-dev", yum: "zlib-devel"},
  "libyaml" => {pkg_config: "yaml-0.1", apt: "libyaml-dev", yum: "libyaml-devel"},
  "libffi" => {pkg_config: "libffi", apt: "libffi-dev", yum: "libffi-devel"}
}.freeze

Instance Method Summary collapse

Instance Method Details

#runObject



292
293
294
295
296
297
298
299
300
301
302
303
304
# File 'lib/kompo/tasks/install_deps.rb', line 292

def run
  unless pkg_config_available?
    puts "[WARNING] pkg-config not found. Skipping dependency check."
    puts "Install pkg-config to enable automatic dependency verification."
    @lib_paths = ""
    return
  end

  check_dependencies
  @lib_paths = collect_lib_paths

  puts "All required development libraries are installed."
end