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

installing with Bundler #4

Open
xavi opened this issue Mar 25, 2011 · 1 comment
Open

installing with Bundler #4

xavi opened this issue Mar 25, 2011 · 1 comment

Comments

@xavi
Copy link

xavi commented Mar 25, 2011

First, thanks for this useful gem. It simply works!
I installed it some time ago following the instruction in the README, and it worked, but now I have to use Bundler and it doesn't.

The Gemfile contains this line...

gem "geohash", '~> 1.1', :git => "https://github.com/davetroy/geohash.git"

and when "bundle install" is run, the result is...

Using geohash (1.1.1) from https://github.com/davetroy/geohash.git (at master) with native extensions /Library/Ruby/Site/1.8/rubygems/installer.rb:483:in `build_extensions': ERROR: Failed to build gem native extension. (Gem::Installer::ExtensionBuildError)

/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby extconf.rb
creating Makefile

make
gcc -I. -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I/System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/lib/ruby/1.8/universal-darwin10.0 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -arch i386 -arch x86_64 -g -Os -pipe -fno-common -DENABLE_DTRACE -fno-common -pipe -fno-common -c geohash_native.c
geohash_native.c: In function 'encode':
geohash_native.c:123: error: 'struct RFloat' has no member named 'float_value'
geohash_native.c:123: error: 'struct RFloat' has no member named 'float_value'
geohash_native.c: In function 'encode':
geohash_native.c:123: error: 'struct RFloat' has no member named 'float_value'
geohash_native.c:123: error: 'struct RFloat' has no member named 'float_value'
lipo: can't open input file: /var/folders/Eo/EoP8v2DDHw4avD+-wzeu6E+++TI/-Tmp-//cc0DIVD8.out (No such file or directory)
make: *** [geohash_native.o] Error 1

Any idea on how to solve it? I would really appreaciate it.

Thanks in advance.

@bgilreath
Copy link

Try gem "davetroy-geohash", :require => "geohash"

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