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
···
--
Posted via http://www.ruby-forum.com/.
You may try this approach:
gem install --ignore-dependencies heroku
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
···
On Dec 31, 2009, at 2:21 AM, Brian Scott wrote:
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.
--
Fedor Kocherga
http://sidenotes.kocherga.info/
Zhao Lu wrote:
did you install xcode?
Yes I did
I used this article but for Ruby 1.9.1
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?
···
--
Posted via http://www.ruby-forum.com/\.
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.
···
On 31.12.2009 09:53, Brian Scott wrote:
Zhao Lu wrote:
did you install xcode?
Yes I did
I used this article but for Ruby 1.9.1
Dan Benjamin
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?
--
Phillip Gawlowski
Brian Scott wrote:
Zhao Lu wrote:
did you install xcode?
Yes I did
I used this article but for Ruby 1.9.1
Dan Benjamin
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?
You should not have had to reinstall 1.8.7. Hivelogic's tutorial
doesn't touch Apple's Ruby -- which is already 1.8.7.
Best,
···
--
Marnen Laibow-Koser
http://www.marnen.org
marnen@marnen.org
--
Posted via http://www.ruby-forum.com/\.