ruby - 如何解决在 Cygwin 中找不到 -lcrypt?

标签 ruby windows cygwin jekyll

我正在尝试使用 Cygwin 安装 Jekyll。我导航到我的项目目录并运行:

gem install jekyll

有几个错误,但没有什么是我无法通过安装适当的软件包解决的,但有一个错误是我目前遇到的问题:

Building native extensions.  This could take a while...
  ERROR:  Error installing jekyll:
      ERROR: Failed to build gem native extension.

    /usr/bin/ruby.exe -r ./siteconf20150401-7872-17w9ed4.rb extconf.rb
creating Makefile

make "DESTDIR=" clean
rm -f
rm -f stemmer.so  *.o  *.bak mkmf.log .*.time

make "DESTDIR="
gcc -I. -I/usr/include/ruby-2.0.0 -I/usr/include/ruby-2.0.0/ruby/backward -I/usr/include/ruby-2.0.0 -I.    -ggdb -O2 -pipe -Wimplicit-function-declaration    -o porter.o -c porter.c
gcc -I. -I/usr/include/ruby-2.0.0 -I/usr/include/ruby-2.0.0/ruby/backward -I/usr/include/ruby-2.0.0 -I.    -ggdb -O2 -pipe -Wimplicit-function-declaration    -o porter_wrap.o -c porter_wrap.c
rm -f stemmer.so
gcc -shared -o stemmer.so porter.o porter_wrap.o -L. -L/usr/lib -L. -fstack-protector -Wl,--export-all-symbols -Wl,--enable-auto-image-base,--enable-auto-import    -lruby200  -lpthread -lrt -ldl -lcrypt
/usr/lib/gcc/x86_64-pc-cygwin/4.9.2/../../../../x86_64-pc-cygwin/bin/ld: cannot find -lcrypt
collect2: error: ld returned 1 exit status
Makefile:232: recipe for target 'stemmer.so' failed
make: *** [stemmer.so] Error 1

make failed, exit code 2

Gem files will remain installed in /home/<user>/.gem/ruby/gems/fast-stemmer-1.0.2 for inspection.
Results logged to /home/<user>/.gem/ruby/extensions/x86_64-cygwin/fast-stemmer-1.0.2/gem_make.out

我错过了什么吗?

我正在学习这些教程:

最佳答案

安装包 libcrypt-devel

Example

关于ruby - 如何解决在 Cygwin 中找不到 -lcrypt?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/29402682/

相关文章:

ruby - 模块中 class_eval 和 instance_eval 的区别

ios - 如何完全删除 calabash-ios/robotframework

ruby - Ruby 中的读/写进程内存

在 Windows XP 中编译 C 代码

C++ 如何从 dll 中导出静态类成员?

linux - 哪些是特定于 Linux 的 Hadoop 内部结构?

ruby-on-rails - 使用 Resque 重新排队作业

linux - 从 Windows 访问 cygwin 符号链接(symbolic link)

linux - 从 Cygwin 到 arm-linux 的交叉构建 boost

java - 从 Java 中的 ProcessBuilder 执行时,Windows REG 命令不起作用