Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Gem doesn't install on OS X Maverick #1

Open
Tehyun opened this issue Jul 5, 2014 · 1 comment
Open

Gem doesn't install on OS X Maverick #1

Tehyun opened this issue Jul 5, 2014 · 1 comment

Comments

@Tehyun
Copy link

Tehyun commented Jul 5, 2014

Ran into the following error message while installing the gem. I copy and pasted files to ext directory. Can you please help me out on this?

Building native extensions. This could take a while...
ERROR: Error installing content_type:
ERROR: Failed to build gem native extension.

    /usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb

checking for magic.h in /opt/local/include... no
checking for magic_open() in -lmagic... no
creating Makefile

make
compiling content_type.c
content_type.c:2:10: fatal error: 'magic.h' file not found

include <magic.h>

     ^

1 error generated.
make: *** [content_type.o] Error 1

@dsturnbull
Copy link
Owner

Hey, you can get magic.h from the 'libmagic' brew.
Homebrew details here: http://brew.sh

On 5 Jul 2014, at 7:23 pm, Tehyun [email protected] wrote:

Ran into the following error message while installing the gem. I copy and pasted files to ext directory. Can you please help me out on this?

Building native extensions. This could take a while...
ERROR: Error installing content_type:
ERROR: Failed to build gem native extension.

/usr/local/rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb

checking for magic.h in /opt/local/include... no
checking for magic_open() in -lmagic... no
creating Makefile

make
compiling content_type.c
content_type.c:2:10: fatal error: 'magic.h' file not found
#include
^
1 error generated.
make: *** [content_type.o] Error 1


Reply to this email directly or view it on GitHub.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants