Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing gem, #23

Open
LWFlouisa opened this issue Jun 12, 2019 · 2 comments
Open

Error installing gem, #23

LWFlouisa opened this issue Jun 12, 2019 · 2 comments

Comments

@LWFlouisa
Copy link

I seem to get this error when I try to install the gem:

Does it have to do with my ruby version?


ERROR:  Error installing speech2text:
	ERROR: Failed to build gem native extension.

    current directory: /var/lib/gems/2.5.0/gems/curb-0.9.10/ext
/usr/bin/ruby2.5 -r ./siteconf20190612-7818-160o3dn.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=/usr/bin/$(RUBY_BASE_NAME)2.5
	--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:

  /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/curb-0.9.10/mkmf.log

extconf failed, exit code 1

Gem files will remain installed in /var/lib/gems/2.5.0/gems/curb-0.9.10 for inspection.
Results logged to /var/lib/gems/2.5.0/extensions/x86_64-linux/2.5.0/curb-0.9.10/gem_make.out
@LWFlouisa
Copy link
Author

Also I installed everything I needed to, for FFMPEG. I still get the error.

@ErwanDelhoveUCL
Copy link

ErwanDelhoveUCL commented Dec 17, 2021

I had the same problem.
So I checked the mkmf.log file which said that -lcurl was not found.
After looking a bit online, I found that I had to install a library called "libcurl3-dev".
Even my linux decides to install libcurl4-openssl-dev instead of this one it didn't prevent me from successfully install the gem on my machine.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants