diff --git a/libraries.install b/libraries.install
new file mode 100644
index 0000000..9c90d70
--- /dev/null
+++ b/libraries.install
@@ -0,0 +1,32 @@
+<?php
+
+/**
+ * @file
+ * Installation functions for Libraries module.
+ */
+
+/**
+ * Implements hook_requirements().
+ */
+function libraries_requirements($phase) {
+  $requirements = array();
+  if ($phase == 'install') {
+    // drupal_get_filename() fails to retrieve libraries.module from the
+    // filesystem during initial installation requirements check, because it
+    // thinks the database would be active already. Help out third-party modules
+    // that depend on Libraries module and implement a requirements check during
+    // installation by not only populating drupal_get_filename()'s file cache,
+    // but also by loading libraries.module, so they can use a simple:
+    //   $phase == 'install' && function_exists('libraries_get_path')
+    // before checking for the required library.
+    $installs = drupal_get_install_files(array('libraries'));
+    foreach ($installs as $install) {
+      if ($install->name == 'libraries') {
+        $libraries_module = dirname($install->filename) . '/libraries.module';
+        drupal_get_filename('module', 'libraries', $libraries_module);
+      }
+    }
+    require_once './' . $libraries_module;
+  }
+  return $requirements;
+}
