ruby - Kyoto Cabinet install via rubygems fails -
ruby - Kyoto Cabinet install via rubygems fails -
i trying install kyoto cabinet via ruby gems. putting within gemfile
gem "kyotocabinet", "~> 1.0"
as opposed here when run bundle
fails with
setting variables ... $cflags = -i. -i/usr/local/include -wall $(cflags) -fpic -o2 $ldflags = -l. -rdynamic -wl,-export-dynamic -l. -l/usr/local/lib $libs = -lkyotocabinet -lz -lstdc++ -lrt -lpthread -lm -lc checking kccommon.h... yes creating makefile create g++ -i. -i/home/gerry/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/x86_64-linux -i/home/gerry/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1/ruby/backward -i/home/gerry/.rvm/rubies/ruby-1.9.2-p136/include/ruby-1.9.1 -i. -dhave_kccommon_h -fpic -i. -i/usr/local/include -wall -o3 -ggdb -wextra -wno-unused-parameter -wno-parentheses -wpointer-arith -wwrite-strings -wno-missing-field-initializers -wno-long-long -fpic -o2 -o kyotocabinet.o -c kyotocabinet.cc kyotocabinet.cc:29: error: ‘int32_max’ not declared in scope kyotocabinet.cc:30: error: ‘int32_max’ not declared in scope kyotocabinet.cc:61: warning: type qualifiers ignored on function homecoming type kyotocabinet.cc:320: warning: type qualifiers ignored on function homecoming type kyotocabinet.cc: in function ‘void init_err()’: kyotocabinet.cc:387: error: ‘nofile’ not fellow member of ‘kyotocabinet::basicdb::error’ kyotocabinet.cc: in function ‘value db_increment(int, value*, value)’: kyotocabinet.cc:1009: error: ‘int64_min’ not declared in scope kyotocabinet.cc: in function ‘value db_synchronize(int, value*, value)’: kyotocabinet.cc:1094: error: cannot declare variable ‘proc’ of abstract type ‘softfileprocessor’ kyotocabinet.cc:288: note: because next virtual functions pure within ‘softfileprocessor’: /usr/local/include/kcdb.h:1070: note: virtual bool kyotocabinet::basicdb::fileprocessor::process(const std::string&, int64_t, int64_t) make: *** [kyotocabinet.o] error 1
if knows way bypass error please help! using ubuntu 10.10 fyi.
thanks lot help!
try using gem "kyotocabinet-ruby" instead.
ruby ruby-on-rails-3 rubygems kyotocabinet
Comments
Post a Comment