CURB - how to install curb on windows 10

Hi All,

I am very new in coding and want to run a little .rb project but i got this error message:

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

I have done some searches and understand that i need to download curb or curl to get curb?

If you have time could you please give me a step by step guide about how to do it?

Thank you in advance.

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 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>' 

I read some info about this error and deleted the gemfile and started install the gems one by one thinking curb is installed. got the initial error so i created the gemfile again, run bundle install and got the initial issue again ( see below) and i wanted to run the same line that i used for installing curb. Did not work.

Fetching gem metadata from https://rubygems.org/… Resolving dependencies… Using awesome_print 1.9.2 Using bundler 2.2.31 Fetching curb 0.9.11 Installing curb 0.9.11 with native extensions Gem::Ext::BuildError: ERROR: Failed to build gem native extension. current directory: C:/Ruby30/lib/ruby/gems/3.0.0/gems/curb-0.9.11/ext C:/Ruby30/bin/ruby.exe -I C:/Ruby30/lib/ruby/3.0.0 -r ./siteconf20211115-20872-u5ptr3.rb extconf.rb checking for curl-config… no checking for -lcurl… no *** extconf.rb failed *** Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers. Check the mkmf.log file for more details. You may need configuration options. Provided configuration options: --with-opt-dir --without-opt-dir --with-opt-include --without-opt-include=${opt-dir}/include --with-opt-lib --without-opt-lib=${opt-dir}/lib --with-make-prog --without-make-prog --srcdir=. --curdir --ruby=C:/Ruby30/bin/$(RUBY_BASE_NAME) --with-curl-dir --without-curl-dir --with-curl-include --without-curl-include=${curl-dir}/include --with-curl-lib --without-curl-lib=${curl-dir}/lib --with-curllib --without-curllib extconf.rb:18:in <main>': Can't find libcurl or curl/curl.h (RuntimeError) Try passing --with-curl-dir or --with-curl-lib and --with-curl-include options to extconf. To see why this extension failed to compile, please check the mkmf.log which can be found here: C:/Ruby30/lib/ruby/gems/3.0.0/extensions/x86-mingw32/3.0.0/curb-0.9.11/mkmf.log extconf failed, exit code 1 Gem files will remain installed in C:/Ruby30/lib/ruby/gems/3.0.0/gems/curb-0.9.11 for inspection. Results logged to C:/Ruby30/lib/ruby/gems/3.0.0/extensions/x86-mingw32/3.0.0/curb-0.9.11/gem_make.out C:/Ruby30/lib/ruby/3.0.0/rubygems/ext/builder.rb:91:in run’ C:/Ruby30/lib/ruby/3.0.0/rubygems/ext/ext_conf_builder.rb:48:in block in build' C:/Ruby30/lib/ruby/3.0.0/tempfile.rb:317:in open’ C:/Ruby30/lib/ruby/3.0.0/rubygems/ext/ext_conf_builder.rb:28:in build' C:/Ruby30/lib/ruby/3.0.0/rubygems/ext/builder.rb:157:in build_extension’ C:/Ruby30/lib/ruby/3.0.0/rubygems/ext/builder.rb:191:in block in build_extensions' C:/Ruby30/lib/ruby/3.0.0/rubygems/ext/builder.rb:188:in each’ C:/Ruby30/lib/ruby/3.0.0/rubygems/ext/builder.rb:188:in build_extensions' C:/Ruby30/lib/ruby/3.0.0/rubygems/installer.rb:828:in build_extensions’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/rubygems_gem_installer.rb:71:in build_extensions' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/rubygems_gem_installer.rb:28:in install’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/source/rubygems.rb:200:in install' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer/gem_installer.rb:54:in install’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer/gem_installer.rb:16:in install_from_spec' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer/parallel_installer.rb:186:in do_install’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer/parallel_installer.rb:171:in install_serially' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer/parallel_installer.rb:97:in call’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer/parallel_installer.rb:71:in call' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer.rb:262:in install_in_parallel’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer.rb:209:in install' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer.rb:89:in block in run’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/process_lock.rb:12:in block in lock' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/process_lock.rb:9:in open’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/process_lock.rb:9:in lock' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer.rb:71:in run’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/installer.rb:23:in install' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/cli/install.rb:60:in run’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/cli.rb:253:in block in install' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/settings.rb:131:in temporary’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/cli.rb:252:in install' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/command.rb:27:in run’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/invocation.rb:127:in invoke_command' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor.rb:392:in dispatch’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/cli.rb:31:in dispatch' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/vendor/thor/lib/thor/base.rb:485:in start’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/cli.rb:25:in start' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/exe/bundle:49:in block in <top (required)>’ C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/lib/bundler/friendly_errors.rb:103:in with_friendly_errors' C:/Ruby30/lib/ruby/gems/3.0.0/gems/bundler-2.2.31/exe/bundle:37:in <top (required)>’ C:/Ruby30/bin/bundle:23:in load' C:/Ruby30/bin/bundle:23:in ’ An error occurred while installing curb (0.9.11), and Bundler cannot continue. In Gemfile: curb

What can i do now?Any idea?
I reinstalled ruby and libcurl again.
same issue again, not able to install curb however it was installed and never removed.

I am here now:
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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs