diff --git a/colorbox.install b/colorbox.install
index e1c8adf..d276371 100644
--- a/colorbox.install
+++ b/colorbox.install
@@ -13,32 +13,53 @@ function colorbox_requirements($phase) {
 
   if ($phase == 'runtime') {
     $t = get_t();
-    $library = libraries_detect('colorbox');
-    $error_type = isset($library['error']) ? drupal_ucfirst($library['error']) : '';
-    $error_message = isset($library['error message']) ? $library['error message'] : '';
-
-    if (empty($library['installed'])) {
-      $requirements['colorbox_plugin'] = array(
-        'title' => $t('Colorbox plugin'),
-        'value' => $t('@e: At least @a', array('@e' => $error_type, '@a' => COLORBOX_MIN_PLUGIN_VERSION)),
+
+    if (!module_exists('libraries')) {
+      $requirements['libraries'] = array(
+        'title' => $t('Libraries Module'),
+        'value' => $t('Colorbox requires the libraries module >= 2.0'),
         'severity' => REQUIREMENT_ERROR,
-        'description' => $t('!error You need to download the !colorbox, extract the archive and place the colorbox directory in the %path directory on your server.', array('!error' => $error_message, '!colorbox' => l($t('Colorbox plugin'), $library['download url']), '%path' => 'sites/all/libraries')),
-      );
-    }
-    elseif (version_compare($library['version'], COLORBOX_MIN_PLUGIN_VERSION, '>=')) {
-      $requirements['colorbox_plugin'] = array(
-        'title' => $t('Colorbox plugin'),
-        'severity' => REQUIREMENT_OK,
-        'value' => $library['version'],
+        'description' => $t('You need to download and enable the <a href="@url">Libraries module</a>.', array('@url' => 'https://www.drupal.org/project/libraries')),
       );
     }
     else {
-      $requirements['colorbox_plugin'] = array(
-        'title' => $t('Colorbox plugin'),
-        'value' => $t('At least @a', array('@a' => COLORBOX_MIN_PLUGIN_VERSION)),
-        'severity' => REQUIREMENT_ERROR,
-        'description' => $t('You need to download a later version of the !colorbox and replace the old version located in the %path directory on your server.', array('!colorbox' => l($t('Colorbox plugin'), $library['download url']), '%path' => $library['library path'])),
-      );
+      $info = system_get_info('module', 'libraries');
+      if (version_compare($info['version'], '7.x-2.0', '<=')) {
+        $requirements['libraries'] = array(
+          'title' => $t('Libraries Module'),
+          'value' => $t('At least 2.0'),
+          'severity' => REQUIREMENT_ERROR,
+          'description' => $t('You need to download a later version of the <a href="@url">Libraries module</a>.', array('@url' => 'https://www.drupal.org/project/libraries')),
+        );
+      }
+
+      $library = libraries_detect('colorbox');
+      $error_type = isset($library['error']) ? drupal_ucfirst($library['error']) : '';
+      $error_message = isset($library['error message']) ? $library['error message'] : '';
+
+      if (empty($library['installed'])) {
+        $requirements['colorbox_plugin'] = array(
+          'title' => $t('Colorbox plugin'),
+          'value' => $t('@e: At least @a', array('@e' => $error_type, '@a' => COLORBOX_MIN_PLUGIN_VERSION)),
+          'severity' => REQUIREMENT_ERROR,
+          'description' => $t('!error You need to download the <a href="@url">Colorbox plugin</a>, extract the archive and place the colorbox directory in the %path directory on your server.', array('!error' => $error_message, '@url' => $library['download url'], '%path' => 'sites/all/libraries')),
+        );
+      }
+      elseif (version_compare($library['version'], COLORBOX_MIN_PLUGIN_VERSION, '>=')) {
+        $requirements['colorbox_plugin'] = array(
+          'title' => $t('Colorbox plugin'),
+          'severity' => REQUIREMENT_OK,
+          'value' => $library['version'],
+        );
+      }
+      else {
+        $requirements['colorbox_plugin'] = array(
+          'title' => $t('Colorbox plugin'),
+          'value' => $t('At least @a', array('@a' => COLORBOX_MIN_PLUGIN_VERSION)),
+          'severity' => REQUIREMENT_ERROR,
+          'description' => $t('You need to download a later version of the <a href="@url">Colorbox plugin</a> and replace the old version located in the %path directory on your server.', array('@url' => $library['download url'], '%path' => $library['library path'])),
+        );
+      }
     }
   }
 
@@ -118,3 +139,12 @@ function colorbox_update_7202() {
   return $ret;
 }
 
+/**
+ * Ensure that libraries is enabled.
+ */
+function colorbox_update_7203() {
+  // Enable libraries if not enabled yet.
+  if (!module_exists('libraries')) {
+    module_enable(array('libraries'));
+  }
+}
