While prepping a development server earlier this afternoon I ran into an issue installing the rmagick gem. This was one of a list of 30 or so gems required by a Ruby project that was being installed onto the development server. I thought initially something else was wrong because I had run into this issue before but I thought I had installed ImageMagick via the yum package manager to resolve the problem. Anyhow after verifying ImageMagick was installed I still had the same issue on the development CentOS Linux server. Below I describe the error in detail along with what was done to resolve the issue.CentOS, error, gem, ImageMagick, imagemagick-devel, install, Linux, magick-config, mkmf.log, package manager, Rmagick, Ruby, rubygems, yum
Posts Tagged “mkmf.log”
May 18 2010
Feb 23 2010
ERROR: Error installing webrat: Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers.Posted by alex in Errors
One of my tasks today at work was to install numerous Ruby gems on a couple of our development servers. One of those gems was called webrat which is used for “Ruby acceptance testing and for web applications”. When I attempted to install webrat using “gem install webrat” from a Linux shell I received some errors which I describe below along with how to resolve the error in my scenario. It is likely for you to get similar errors however not the same exact errors so the key is analyzing the output of the “gem install” command to see if it will lead you to resolution.acceptance testing, CentOS, error, gem, gem install, libxslt, libxslt-devel, Linux, mkmf.log, nokogiri, rack-test, Ruby, shell, web applications, webrat, yum
Dec 31 2008
Most gems are very easy to install however they have typically been created for a Linux environment such as CentOS, RedHat, or OS X. This can cause all sorts of issues with libraries, compilers, etc. because less time has been spent making sure that these gems install on all versions of Windows because of all the differences. It is much easier to make sure that the gems install across all UNIX/Linux versions instead of the Windows versions.
When attempting to install eventmachine on a Windows server or regular PC you will run across an error. The error will spit out a bunch of data including install switches along with some other error information such as the below.eventmachine, eventmachine-win32, gem, gems, libraries, Linux, mkmf.log, Ruby, windows, windows xp, windows.h
Nov 30 2008
You may receive the above error in the mkmf.log file when attempting to install the MySQL gem. A sample of the log file errors is below.
How to Resolve:Install mysql-devel via yum using the following command.
[root@server ~]#yum install mysql-develCentOS, error, gem, mkmf.log, mysql, mysql-devel, mysql.h, Ruby, rubygems, x86_64