Trouble building native extension on Mac OS/X - Ruby 1.9.1

79 views
Skip to first unread message

Ed Howland

unread,
Oct 24, 2009, 7:19:51 PM10/24/09
to Johnson
Hi, I successfully installed the johnson gem on Ubuntu with Ruby
1.8.6, but on the Mac with ruby 1.9.1, I get compile errors.

sudo gem install johnson.

Just the tail of the failure

gcc -I. -I/usr/local/include/ruby-1.9.1/i386-darwin10.0.0 -
I/usr/local/include/ruby-1.9.1/ruby/backward -I/usr/local/include/
ruby-1.9.1 -I. -I/usr/local/lib/ruby/gems/1.9.1/gems/johnson-1.1.2/
vendor/spidermonkey/Darwin_DBG.OBJ -I/usr/local/lib/ruby/gems/1.9.1/
gems/johnson-1.1.2/vendor/spidermonkey -D_XOPEN_SOURCE -
D_DARWIN_C_SOURCE -fno-common -O2 -g -Wall -Wno-parentheses -pipe -
fno-common -g -Wall -Wextra -Wcast-qual -Wwrite-strings -
Wconversion -Wmissing-noreturn -Winline -DXP_UNIX -o conversions.o
-c conversions.c
In file included from conversions.c:2:
js_land_proxy.h:11:18: error: node.h: No such file or directory
In file included from conversions.c:2:
js_land_proxy.h:17: error: expected specifier-qualifier-list before
‘NODE’

Aaron Patterson

unread,
Oct 24, 2009, 7:35:27 PM10/24/09
to johnso...@googlegroups.com
On Sat, Oct 24, 2009 at 4:19 PM, Ed Howland <ed.ho...@gmail.com> wrote:
>
> Hi, I successfully installed the johnson gem on Ubuntu with Ruby
> 1.8.6, but on the Mac with ruby 1.9.1, I get compile errors.

Right now, johnson is dependent on "node.h" which has been removed in
1.9. We're working on a fix, but for now, johnson will not work on
1.9.

--
Aaron Patterson
http://tenderlovemaking.com/

Ed Howland

unread,
Oct 24, 2009, 7:44:15 PM10/24/09
to johnso...@googlegroups.com
Thanks for the input.

I'll have to see about running 1.8 sidexside w/1.9 on my mac, or I'll
stick to a VM running Ubuntu approach.

I want to try the taka+johnson approach to to test jquery. It looks
like a winner to me.

Ed

--
Ed Howland
http://greenprogrammer.blogspot.com
http://twitter.com/ed_howland

Reply all
Reply to author
Forward
0 new messages