Исправляем ошибку Don't know how to set rpath on your system, if MySQL libraries are not in path mysql2 may not load в процессе установки гемов для работы Opennebula.
При установке гема mysql2 в CentOS 7 может возникнуть ошибка:
1 2 3 4 5 6 7 8 9 10 11 12
Fetching mysql2 0.5.1 Installing mysql2 0.5.1 with native extensions Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension. ... Don't know how to set rpath on your system, if MySQL libraries are not in path mysql2 may not load ... /usr/bin/ld: cannot find -lmariadb collect2: error: ld returned 1 exit status make: *** [mysql2.so] Error 1 ... An error occurred while installing mysql2 (0.5.1), and Bundler cannot continue. Make sure that `gem install mysql2 -v '0.5.1' --source 'https://rubygems.org/'` succeeds before bundling.
Для успешной установки гемов требуется библиотека libmariadb.so, которая идет в составе пакета MariaDB-shared.