Pages

Gems can't create makefile? Ubuntu 12.04.2

I'm getting the following result when I try to install the passenger & mysql gems.

I've followed the Ubuntu Hardy articles to setup my slice, apache & ruby/rails.

= = = = = = = = = = = = =

sudo gem install mysql
Bulk updating Gem source index for: http://gems.rubyforge.org/
.............
complete
Building native extensions. This could take a while...
ERROR: Error installing mysql:
ERROR: Failed to build gem native extension.

/usr/bin/ruby1.8 extconf.rb install mysql
checking for mysql_query() in -lmysqlclient... yes
checking for mysql_ssl_set()... yes
checking for mysql.h... no
checking for mysql/mysql.h... yes
creating Makefile

make
sh: make: not found

Gem files will remain installed in /usr/lib/ruby/gems/1.8/gems/mysql-2.7 for inspection.
Results logged to /usr/lib/ruby/gems/1.8/gems/mysql-2.7/gem_make.out

= = = = = = = = = = = = =

Ok so this problem was happening with several gems. After some hunting I realised make wasn't installed.

I assume I missed a line out somewhere, the following command solved it;
sudo apt-get install build-essential

Thanks to anima from http://forum.slicehost.com

No comments:

Post a Comment

You might also like:

  • CentOS black screen on boot
    CentOS black screen on boot

    Hit any key at the grub screen. Enter 'e' to edit…

  • "Registry Editing Has Been Disabled By Your Administrator"

    Virus creators like to disable the Registry…

  •  Reclaiming your disk space in Windows.
    Reclaiming your disk space in Windows.

    There are lots utility that can you install on…

  • ‘You may be a victim of software counterfeiting’
    ‘You may be a victim of software counterfeiting’

    This problem occurred because Microsoft detect…

Popular Posts