Ruby - cannot load such file -- curl - Windows 10

252 Views Asked by At

The things that i have done so far: Downloaded: rubyinstaller-devkit-3.0.2-1-x86 32bit added C:\Ruby30\bin to Path Downloaded: curl-7.80.0-win32-mingw added C:\curl-7.80.0-win32-mingw\bin to Path

I used the following command to install curb: gem install curb -- -- --with-curl-lib=C:\curl-7.80.0-win32-mingw\bin –with-curl-include=C:\curl-7.80.0-win32-mingw\include

It was done: 1 gem installed.

I created the gemfile, went fine apart from seeing this:

Using bundler 2.2.22 Using curb 0.9.11 Fetching unidecoder 1.1.2

but when i wanted to run the ruby app i got this error message:

<internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require': cannot load such file -- curb (LoadError)
    from <internal:C:/Ruby30/lib/ruby/3.0.0/rubygems/core_ext/kernel_require.rb>:85:in `require'
    from crawler.rb:6:in `<main>' 

When I type in curb --version it gives me nothing: 'curb' is not recognized as an internal or external command, operable program or batch file.

Even if it was installed previously. Any idea?

also run gem install curb --verbose --platform=ruby -- --with-curl-lib=C:\curl-7.80.0-win32-mingw\lib --with-curl-include=C:\curl-7.80.0-win32-mingw\include

same load error

0

There are 0 best solutions below