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


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

Script ran

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

Error Installing gems

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

I was able to solve the problem:

install libssl-dev .

thank sir that solve for my problem… arigato