A quickie:
If you’re getting the old
ERROR: Failed to build gem native extension.
error while trying to install the curb gem, you’ll need to install libcurl4-openssl-dev (along with the ruby1.x-dev package for the version of Ruby you’re running).