1 | initial version |
It is definitely possible to install the mysql2 gem on Ubuntu 21 with Ruby 2.7.6. Here are the steps:
Update the Ubuntu package manager:
sudo apt-get update
Install the MySQL client library:
sudo apt-get install libmysqlclient-dev
Install the mysql2 gem:
gem install mysql2
If you encounter any issues during the installation process, you may need to install additional dependencies or troubleshoot your Ruby and MySQL installations.