On Dec 7, 2011, at 12:39 PM, Dandy wrote: > I have an error installing gem cassandra. > > sudo gem install cassandraBuilding native extensions. This could take > a while...ERROR: Error installing cassandra: ERROR: Failed to build > gem native extension. /usr/bin/ruby1.9.1 extconf.rbchecking for > strlcpy() in string.h... nocreating Makefile > > makegcc -I. -I/usr/include/ruby-1.9.1/i686-linux -I/usr/include/ > ruby-1.9.1/ruby/backward -I/usr/include/ruby-1.9.1 -I. - > D_FILE_OFFSET_BITS=64 -fPIC -g -O2 -Wall -Werror -o struct.o -c > struct.c > > > Gem files will remain installed in /usr/lib/ruby/gems/1.9.1/gems/ > thrift-0.7.0 for inspection. >
It seems likely that you don't have all the build tools installed or in your user's PATH. > > irb(main):001:0> reqire 'cassandra' > > NoMethodError: undefined method `reqire' for main:Object from (irb):1 > from /usr/bin/irb:12:in `<main>' Mis-spelled require. > > irb(main):001:0> require 'thrift' > => true > > require works, so your Ruby is at least partially working then, > What's wrong? What's your environment, and what steps have taken you to this point? It's impossible to guess at this stage. Are you able to compile and install other applications from the command line with this user? Walter > > -- > 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 [email protected]. > To unsubscribe from this group, send email to > [email protected]. > 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 [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.

