I got this error when gem install mysql2 -v '0.3.11'. How to fix?
You need to instal “libmysqlclient-dev - MySQL database development files”. Do sudo apt-get install libmysqlclient-dev.
“libmysqlclient18 - MySQL database client library” might also work but i haven't tried that.
Installing gem rmagick
I got this error when gem install rmagick -v '2.13.1'. How to fix?
You need sudo apt-get install imagemagick libmagickwand-dev. Sample output:
◆ sudo apt-get install libmagickwand-dev
[sudo] password for xah:
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libbz2-dev libcgraph5 libdjvulibre-dev libexif-dev libgraphviz-dev libgvpr1
libilmbase-dev libjasper-dev liblcms1-dev liblqr-1-0-dev libmagickcore-dev
libopenexr-dev libwmf-dev libxdot4
Suggested packages:
libwmf-doc
The following NEW packages will be installed:
libbz2-dev libcgraph5 libdjvulibre-dev libexif-dev libgraphviz-dev libgvpr1
libilmbase-dev libjasper-dev liblcms1-dev liblqr-1-0-dev libmagickcore-dev
libmagickwand-dev libopenexr-dev libwmf-dev libxdot4
0 upgraded, 15 newly installed, 0 to remove and 0 not upgraded.
Need to get 5,748 kB of archives.
After this operation, 18.0 MB of additional disk space will be used.