对于我正在进行的项目,我必须在现有的 Ruby Gem 上做一些工作。我以前对 Ruby 没有太多经验,并且在一些方面遇到了困难。
我在本地克隆了存储库。我需要编辑 /lib/ 目录中的当前文件,我可以这样做。我可以将编辑过的文件编译成 Gem 并运行这个 Gem 吗?任何帮助将非常感激。
我对 Ubuntu 很陌生,并且通过终端安装 gems。我在安装 charlock_holmes 时遇到了一些问题。当我尝试安装时,遇到了这个大错误,我无法弄清楚:
\n\nryan@ubuntu:~/Desktop/linguist$ sudo gem install charlock_holmes -v '0.7.3'\nBuilding native extensions. This could take a while...\nERROR: Error installing charlock_holmes:\nERROR: Failed to build gem native extension.\n\n /usr/bin/ruby1.9.1 extconf.rb\nchecking for main() in -licui18n... yes\nchecking for main() in -licui18n... yes\nchecking for unicode/ucnv.h... yes\nchecking for main() in -lz... yes\nchecking for main() in -licuuc... yes\nchecking for main() in -licudata... yes\ncreating Makefile\n\nmake\ncompiling converter.c\nIn file included from converter.c:2:0:\ncommon.h:23:14: warning: \xe2\x80\x98charlock_new_str\xe2\x80\x99 defined but not used [-Wunused- function]\nstatic VALUE charlock_new_str(const char *str, size_t len)\n …Run Code Online (Sandbox Code Playgroud)