JoeWoo / nlpir

A rubygem wrapper of chinese segment tools ICTCLAS2014 for linux_x86
MIT License
73 stars 5 forks source link

Fiddle::DLError bin/libNLPIR.so: wrong ELF class: ELFCLASS32 #1

Closed elvuel closed 11 years ago

elvuel commented 11 years ago

Ubuntu 64bit Ruby2.0-p0

两个gem版本,require 'nlpir' 后相同的问题 nlpir-0.0.1-x86_64-linux.gem(built from git repo) nlpir-0.0.2-x86-linux.gem(rubygems)

ps: 从官方下载相应的libNLPIR.so替换gem安装问题得以解决。

是否可考虑将所有的动态链接库文件放至bin目录,根据实际操作系统及位数Fiddle提取对应的动态链接库?

JoeWoo commented 11 years ago

已经fix了,请gem install 最新的版本0.0.3。感谢您的指正。关于跨平台方面,关键代码的内容相差很多,所以还是会以nlpir-0.0.3-x86-win32.gem发布。