John Merlino
2011-Feb-15 00:58 UTC
[Rails] fast_xs.c:169: error: ‘struct RArray’ has no member named ‘ptr’
Hey all, I tried to do bundle install in my Rails 3 project and got this error: /Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb checking for stdio.h... yes creating Makefile make gcc -I. -I/Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/x86_64-darwin10.2.0 -I/Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/ruby/backward -I/Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1 -I. -DHAVE_STDIO_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 -Wno-long-long -fno-common -pipe -o fast_xs.o -c fast_xs.c fast_xs.c: In function ‘fast_xs’: fast_xs.c:169: error: ‘struct RArray’ has no member named ‘ptr’ fast_xs.c:170: error: ‘struct RArray’ has no member named ‘len’ fast_xs.c:175: error: ‘struct RArray’ has no member named ‘ptr’ fast_xs.c:176: error: ‘struct RArray’ has no member named ‘len’ make: *** [fast_xs.o] Error 1 Anyone know what''s wrong? -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
Chris Kottom
2011-Feb-15 05:53 UTC
Re: [Rails] fast_xs.c:169: error: ‘struct RArray’ has no member named ‘ptr’
It seems likely that the C extensions in your gem aren''t compatible with your Ruby version. I used to see errors like this back before the MySQL gem was updated for Ruby 1.9. Can you try running under 1.8.7 to see whether you have the same issues? If not, you may want to check the source / release notes for the gem to see whether or not it''s been upgraded or whether you have the newest version. On Tue, Feb 15, 2011 at 1:58 AM, John Merlino <lists-fsXkhYbjdPsEEoCn2XhGlw@public.gmane.org> wrote:> Hey all, > > I tried to do bundle install in my Rails 3 project and got this error: > > /Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/bin/ruby extconf.rb > checking for stdio.h... yes > creating Makefile > > make > gcc -I. > > -I/Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/x86_64-darwin10.2.0 > > -I/Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/ruby/backward > -I/Users/jmerlino/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1 -I. > -DHAVE_STDIO_H -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -fno-common -O3 > -ggdb -Wextra -Wno-unused-parameter -Wno-parentheses -Wpointer-arith > -Wwrite-strings -Wno-missing-field-initializers -Wshorten-64-to-32 > -Wno-long-long -fno-common -pipe -o fast_xs.o -c fast_xs.c > fast_xs.c: In function ‘fast_xs’: > fast_xs.c:169: error: ‘struct RArray’ has no member named ‘ptr’ > fast_xs.c:170: error: ‘struct RArray’ has no member named ‘len’ > fast_xs.c:175: error: ‘struct RArray’ has no member named ‘ptr’ > fast_xs.c:176: error: ‘struct RArray’ has no member named ‘len’ > make: *** [fast_xs.o] Error 1 > > Anyone know what''s wrong? > > -- > Posted via http://www.ruby-forum.com/. > > -- > You received this message because you are subscribed to the Google Groups > "Ruby on Rails: Talk" group. > To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > To unsubscribe from this group, send email to > rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org > For more options, visit this group at > http://groups.google.com/group/rubyonrails-talk?hl=en. > >-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
John Merlino
2011-Feb-17 18:11 UTC
[Rails] Re: fast_xs.c:169: error: ‘struct RArray’ has no member named ‘ptr’
I ended up just commenting it out. -- Posted via http://www.ruby-forum.com/. -- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group. To post to this group, send email to rubyonrails-talk-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe-/JYPxA39Uh5TLH3MbocFF+G/Ez6ZCGd0@public.gmane.org For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.