Cant install Heroku gem in Snow Leopard

B

Brian Scott

Hello,

I cant seem to get Heroku gem installed in Snow Leopard. I am running
Ruby 1.9.1 and RubyGems 1.3.5. Any ideas will help.

Thank You



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

/usr/local/bin/ruby extconf.rb
creating Makefile

make
gcc -Wall -I. -I/usr/local/include/ruby-1.9.1/i386-darwin10.2.0
-I/usr/local/include/ruby-1.9.1/ruby/backward
-I/usr/local/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE
-fno-common -O2 -g -Wall -Wno-parentheses -fno-common -pipe
-fno-common -o parser.o -c parser.c
parser.rl:4:16: error: re.h: No such file or directory
In file included from parser.rl:5:
/usr/local/include/ruby-1.9.1/ruby/backward/st.h:2:2: warning: #warning
use "ruby/st.h" instead of bare "st.h"
parser.rl: In function ‘cParser_initialize’:
parser.rl:460: error: ‘struct RHash’ has no member named ‘tbl’
make: *** [parser.o] Error 1


Gem files will remain installed in
/usr/local/lib/ruby/gems/1.9.1/gems/json-1.1.0 for inspection.
Results logged to
/usr/local/lib/ruby/gems/1.9.1/gems/json-1.1.0/ext/json/ext/parser/gem_make.out
 
P

Phillip Gawlowski

Yes I did

I used this article but for Ruby 1.9.1
http://hivelogic.com/articles/compiling-ruby-rubygems-and-rails-on-snow-leopard/


I went back and re installed Ruby 1.8.7 over 1.9.1 and it seemed to fix
my problem but I wonder why I cant compile Heroku gem with 1.9.1?

Searching the Heroku docs, or the heroku blog didn't unearth anything
about the required Ruby version.

The only thing I could find was this:
http://support.heroku.com/forums/42310/entries/54329 which asks for Ruby
1.9 support, but no reply from Heroku themselves.

So, seems like you are stuck with 1.8.x for the moment.
 
F

fkocherga

Hello,
=20
I cant seem to get Heroku gem installed in Snow Leopard. I am running
Ruby 1.9.1 and RubyGems 1.3.5. Any ideas will help.
=20


You may try this approach:

gem install --ignore-dependencies heroku =20
gem install json_pure

You cannot install heroku because it depends on json gem, and by default =
non pure json gem gets installed and compilation fails. But if you =
manually install pure json gem it should work. At least it works for me, =
but my steps were a bit different:

gem install heroku
#find and delete json gem installed incompletely
gem install json_pure
gem install --ignore-dependencies heroku =20
=20
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,755
Messages
2,569,536
Members
45,009
Latest member
GidgetGamb

Latest Threads

Top