简体   繁体   English

x86_64-w64-mingw32 / bin / ld.exe:找不到-lgmp

[英]x86_64-w64-mingw32/bin/ld.exe: cannot find -lgmp

I'm trying to install jekyll following Jekyll in Windows via Choco, but fails during gem install jekyll 我正在尝试通过Choco 在Windows中按照Jekyll安装jekyll ,但是在gem install jekyll期间失败

Full output: 全输出:

C:\Users\WILLNODE>gem install jekyll
Temporarily enhancing PATH for MSYS/MINGW...
Building native extensions.  This could take a while...
ERROR:  Error installing jekyll:
        ERROR: Failed to build gem native extension.

    current directory: C:/Tools/ruby24/lib/ruby/gems/2.4.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
C:/Tools/ruby24/bin/ruby.exe -r ./siteconf20180129-7284-12v8uaa.rb extconf.rb
creating Makefile

current directory: C:/Tools/ruby24/lib/ruby/gems/2.4.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make "DESTDIR=" clean

current directory: C:/Tools/ruby24/lib/ruby/gems/2.4.0/gems/http_parser.rb-0.6.0/ext/ruby_http_parser
make "DESTDIR="
generating ruby_http_parser-x64-mingw32.def
compiling ruby_http_parser.c
compiling ryah_http_parser.c
linking shared-object ruby_http_parser.so
c:/tools/devkit2/mingw/bin/../lib/gcc/x86_64-w64-mingw32/4.7.2/../../../../x86_64-w64-mingw32/bin/ld.exe: cannot find -lgmp
collect2.exe: error: ld returned 1 exit status
make: *** [ruby_http_parser.so] Error 1

make failed, exit code 2

Gem files will remain installed in C:/Tools/ruby24/lib/ruby/gems/2.4.0/gems/http_parser.rb-0.6.0 for inspection.
Results logged to C:/Tools/ruby24/lib/ruby/gems/2.4.0/extensions/x64-mingw32/2.4.0/http_parser.rb-0.6.0/gem_make.out

Following with this answer I run ld -lgmp --verbose 此答案之后,我运行ld -lgmp --verbose

attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/libgmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/gmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/libgmp.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/gmp.lib failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/libgmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/gmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib\libgmp.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/libgmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/gmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/libgmp.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/gmp.lib failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/libgmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/gmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib\libgmp.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/libgmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/gmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/libgmp.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/gmp.lib failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/libgmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/gmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib\libgmp.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/libgmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/gmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/libgmp.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/gmp.lib failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/libgmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib/gmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/local/lib\gmp.lib failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/libgmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/gmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/libgmp.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/gmp.lib failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/libgmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib/gmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/lib\gmp.lib failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/libgmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/gmp.dll.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/libgmp.a failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/gmp.lib failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/libgmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib/gmp.dll failed
attempt to open /home/ruben/mingw-w64/mingw64mingw64/mingw64/usr/lib\gmp.lib failed
ld: cannot find -lgmp

But then I still clueless why this is happening. 但是后来我仍然不知道为什么会这样。

Sure there's must be something missing. 当然,必须缺少一些东西。 But what is it? 那是什么

Extra Information (if necessary): Windows 10 64-bit, Ruby24 额外信息(如果需要):Windows 10 64位,Ruby24

Strangely I ended up installing Ruby version 2.3.x using rubyinstaller.org and it is working wonderfully. 奇怪的是,我最终使用rubyinstaller.org安装了Ruby 2.3.x版,并且运行良好。 It might because I have my DevKit installed improperly (my guess: i'm ridk install and only choose 1). 可能是因为我的DevKit安装不正确(我的猜测:我是ridk install ,只能选择1)。

Anyway I still prefer 2.3 because you just need to download the zipped file to get the DevKit working. 无论如何,我仍然更喜欢2.3,因为您只需要下载压缩文件即可使DevKit正常工作。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 无法在 Windows 上安装 bcrypt 3.1.16 gem:ld.exe:找不到 -lgmp - Cannot install bcrypt 3.1.16 gem on Windows: ld.exe: cannot find -lgmp 找不到 gem 'rails (= 4.2.4) x64-mingw32' - Could not find gem 'rails (= 4.2.4) x64-mingw32' 找不到 x86_64-darwin-21 的 tailwindcss 可执行文件 - Cannot find the tailwindcss executable for x86_64-darwin-21 红宝石宝石错误:找不到宝石'logstash-devutils(> = 0)x64-mingw32' - ruby gem error: Could not find gem 'logstash-devutils (>= 0) x64-mingw32' 在任何 gem 来源中都找不到 gem 'another-jekyll-plugin x64-mingw32' - Could not find gem 'another-jekyll-plugin x64-mingw32' in any of the gem sources 找不到在轨道上运行服务器ruby的gem'byebug x64-mingw32'吗? - Could not find gem 'byebug x64-mingw32' for run server ruby on rails? 在本地安装的 gem 中找不到 gem 'pg x64-mingw32' - Could not find gem 'pg x64-mingw32' in locally installed gems 找不到gem'rails x86-mingw32' - Could not find gem 'rails x86-mingw32' 如何解决“您的软件包仅支持平台[”x86-mingw32“],但您的本地平台是[”ruby“,”x86_64-linux“]” - How can I resolve “Your bundle only supports platforms [”x86-mingw32“] but your local platforms are [”ruby“, ”x86_64-linux“]” 在您的Gemfile中列出的或本机上可用的任何gem资源中找不到gem'wdm(> = 0.1.0)x64-mingw32' - Could not find gem 'wdm (>= 0.1.0) x64-mingw32' in any of the gem sources listed in your Gemfile or available on this machine
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM