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

fails to install on Mavericks #1

Closed
jeroenr opened this issue Oct 31, 2013 · 3 comments
Closed

fails to install on Mavericks #1

jeroenr opened this issue Oct 31, 2013 · 3 comments

Comments

@jeroenr
Copy link

jeroenr commented Oct 31, 2013

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

    /Users/jero/.rvm/rubies/ruby-2.0.0-p247/bin/ruby extconf.rb
creating Makefile

make "DESTDIR="
compiling kdtree.c
In file included from kdtree.c:1:
In file included from /Users/jero/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby.h:33:
/Users/jero/.rvm/rubies/ruby-2.0.0-p247/include/ruby-2.0.0/ruby/ruby.h:51:11: fatal error: 'string.h' file not found
# include <string.h>
          ^
1 error generated.
make: *** [kdtree.o] Error 1
@gurgeous
Copy link
Owner

gurgeous commented Nov 1, 2013

That's strange. It's working fine for me on Mavericks. The ruby.h header can't find <string.h>, which is stdlib. Could it be a problem with Xcode / xcode-select? I'm not an expert, but maybe you could try this?

echo "#include <string.h>" > /tmp/gub.c && clang /tmp/gub.c

@jeroenr
Copy link
Author

jeroenr commented Nov 1, 2013

Thanks for you help. You were right, it was an issue with xcode. I've upgraded to Xcode 5.0.1 and installed latest developer tools with xcode-select. After accepting the license using 'xcode -license' I was able to install your gem.

Before upgrading to Mavericks it was working fine, hence I assumed it might be some kind of compatibility problem. Sorry for wasting your time.

@jeroenr jeroenr closed this as completed Nov 1, 2013
@gurgeous
Copy link
Owner

gurgeous commented Nov 3, 2013

Glad to hear it, thanks for following up!

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