[SOLVED] Error when running script that install the required gems

Hello,

I am getting the following error when I tried to install the gems using the script provided by OpenNebula.

Script ran
/usr/share/one/install_gems

Error produced
an error occurred while installing mysql2 (0.5.2), and Bunlder cannot continue.
Make sure that 'gem install mysql2 -v ‘0.5.2’ --source 'https://rubygems.org/’` succeeds before bundling.
In Gemfile
mysql2

Error Installing gems

Troubleshooting
I tried to install the gem manually using
gem install mysql2 -v ‘0.5.2’ --source 'https://rubygems.org/

However, I am getting the following error:
/usr/bin/ld: cannot find -lssl
/usr.bin/ld: cannot find -lcrypto
collect2: error: ld returned 1 exit status
Makefile:258 recipe for target ‘mysql2.so’ fialed
make: *** [nysql2.so] Error 1

make failed, exit code 2
cannot

I was able to solve the problem:

install libssl-dev .

thank sir that solve for my problem… arigato