How to solve 'libcurl' not found with Rails on Windows

前端 未结 9 1124
旧巷少年郎
旧巷少年郎 2020-12-05 17:48

This is giving me a headache. I\'m continuing a Rails project that started on Linux and I keep getting this when I run Puma on Ruby Mine:

Error:[rake --tasks         


        
9条回答
  •  甜味超标
    2020-12-05 18:34

    I just had the same problem on Windows 7 x64 and answered about it here. (Similar to you, I tried a lot of things that I thought should work but didn't.)

    What worked was:

    • To take a libcurl.dll from one of the packages found here, https://curl.haxx.se/download.html#Win64, and put it on the PATH.

      (Link was updated, but originally pointed to version 7.40)

    • I just put it under \ruby24\bin\
    • Maybe for you it's C:\Ruby24-x64\bin

    (Here are things I tried that didn't work:)

    • Putting on the PATH: the cygcurl-4.dll obtained from the current Curl Download Wizard
    • Renaming the above cygcurl-4.dll to libcurl.dlland putting it on the PATH
    • Installing the msys2 package libcurl-devel 7.57.0-1
    • Renaming the msys-curl-4.dll (from msys2 found at msys64\usr\bin) to libcurl.dll

    I didn't try building curl / libcurl from the latest source because I already have the latest according to pacman -Ss libcurl:

    msys/libcurl 7.57.0-1 (libraries) [installed]
    Multi-protocol file transfer library (runtime)
    
    msys/libcurl-devel 7.57.0-1 (development) [installed]
    Libcurl headers and libraries
    

    More details about this in these other questions:

    • jekyll serve dependency error - Could not open 'lib curl'

    • Typhoeus Windows installation

    • Rails Typhoeus Curl Trouble

    • how to install libcurl on windows 7 64bit

提交回复
热议问题