`require’: cannot load such file — php_serialize (LoadError)

I’m running some of the Ruby script inside Docker and it show me this error.

The solution I use to solve it using the way below.

First, goto the path of your Gemfile

echo “gem ‘php-serialize'” >>Gemfile
bundle install

Tags: