加入收藏 | 设为首页 | 会员中心 | 我要投稿 李大同 (https://www.lidatong.com.cn/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 百科 > 正文

京都内阁通过rubygems安装失败

发布时间:2020-12-17 02:15:35 所属栏目:百科 来源:网络整理
导读:我试图通过ruby宝石安装京都内阁.我正在放入Gemfile gem "kyotocabinet","~ 1.0" 而不是here 但是当我运行bundle时,它失败了 setting variables ...$CFLAGS = -I. -I/usr/local/include -Wall $(cflags) -fPIC -O2$LDFLAGS = -L. -rdynamic -Wl,-export-dyna
我试图通过ruby宝石安装京都内阁.我正在放入Gemfile

gem "kyotocabinet","~> 1.0"

而不是here
但是当我运行bundle时,它失败了

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 for kccommon.h... yes
creating Makefile

make
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’ was not declared in this scope
kyotocabinet.cc:30: error: ‘INT32_MAX’ was not declared in this scope
kyotocabinet.cc:61: warning: type qualifiers ignored on function return type
kyotocabinet.cc:320: warning: type qualifiers ignored on function return type
kyotocabinet.cc: In function ‘void init_err()’:
kyotocabinet.cc:387: error: ‘NOFILE’ is not a member of ‘kyotocabinet::BasicDB::Error’
kyotocabinet.cc: In function ‘VALUE db_increment(int,VALUE*,VALUE)’:
kyotocabinet.cc:1009: error: ‘INT64_MIN’ was not declared in this scope
kyotocabinet.cc: In function ‘VALUE db_synchronize(int,VALUE)’:
kyotocabinet.cc:1094: error: cannot declare variable ‘proc’ to be of abstract type ‘SoftFileProcessor’
kyotocabinet.cc:288: note:   because the following virtual functions are 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

如果有人知道绕过这个错误的方法,请帮忙!我正在使用Ubuntu 10.10 FYI.

非常感谢您的帮助!

解决方法

尝试使用宝石“kyotocabinet-ruby”代替.

(编辑:李大同)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!

    推荐文章
      热点阅读