Top Level Namespace

Defined Under Namespace

Modules: Mysql2

Constant Summary collapse

LoadLibrary =
Win32API.new('Kernel32', 'LoadLibrary', ['P'], 'I')
GLOB =
"{#{dirs.join(',')}}/{mysql_config,mysql_config5,mariadb_config}"

Instance Method Summary collapse

Instance Method Details

#asplode(lib) ⇒ Object



4
5
6
7
8
9
10
11
12
# File 'ext/mysql2/extconf.rb', line 4

def asplode lib
  if RUBY_PLATFORM =~ /mingw|mswin/
    abort "-----\n#{lib} is missing. Check your installation of MySQL or Connector/C, and try again.\n-----"
  elsif RUBY_PLATFORM =~ /darwin/
    abort "-----\n#{lib} is missing. You may need to 'brew install mysql' or 'port install mysql', and try again.\n-----"
  else
    abort "-----\n#{lib} is missing. You may need to 'apt-get install libmysqlclient-dev' or 'yum install mysql-devel', and try again.\n-----"
  end
end