I strongly suggest to install ruby-agi using gem, gem install ruby-agi Alternatively, do 1. ruby extconf.rb 2. make install