When ever I am doing gem install knife-github-cookbooks on centos 7, I am getting below error. Please help
ERROR: Error installing knife-github-cookbooks:
ERROR: Failed to build gem native extension.
/usr/bin/ruby extconf.rb
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h
We recommend you use ChefDK on workstations, as it includes all the needed headers and whatnot. Make sure you use chef gem install.
Related
I was working on the conversion of Selenium2Library to SeleniumLibrary. because of some issue we decided to keep Selenium2Library and now I see Unexpected error: No library 'Selenium2Library' found. I have below package but I updated eyes to v4.
Anyone faced this issue??
from Selenium2Library.utils.librarylistener import LibraryListener
robotframework==3.0.2
robotframework-selenium2library==1.8.0
eyes-common==4.1.24
eyes-core==4.1.24
eyes-selenium==4.1.24
selenium==3.141.0
Newer versions of SeleniumLibrary creates and alias for Selenium2Library. You should do a complete uninstall of SeleniumLibrary and a re-install of Selenium2Library. Maybe you need to downgrade eyes. Also the version of Selenium must match the Selenium2Library maximum supported version.
pip install -U --force robotframework-selenium2library==1.8.0
pip install -U --force selenium==2.53.0
Remaining with old versions would be more riskier than updating to new versions.
I have a compilation error when upgrading to Kivy 1.8 the error is the following :
/tmp/easy_install-toDKWY/Kivy-1.8.0/kivy/graphics/gl_redirect.h:38:22: fatal error: GL/gl.h: No such file or directory
# include <GL/gl.h
can anyone help?
EDIT : i have solved my problem and wanted to share the solution. The problem was sure not in Kivy but in the installation of it on my platform. what i did is uninstall Kivy and re-install it again using apt-install (on Lunix Ubuntu). Thank you all.
Make sure you have installed all the dependencies mentioned here http://kivy.org/docs/installation/installation.html#ubuntu
You could also try out the pre-built packages from here https://launchpad.net/~kivy-team/+archive/kivy
or here http://kivy.org/#download
In my system, I am trying to install Rails 4 with Ruby2. Ruby 2 is installed successfully. While installing Rails4, I made the configuration as per DevKit. Even though I am get the error message.
Temporarily enhancing PATH to include DevKit...
Building native extensions. This could take a while...
ERROR: Error installing rails:
ERROR: Failed to build gem native extension.
C:/Ruby200-x64/bin/ruby.exe extconf.rb
* 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.
I am not getting the way to resolve it. Thanks in advance.
I'm upgrading to Ember rc5 from rc3, but I'm getting the following error:
Uncaught Template was precompiled with an older version of Handlebars than the current runtime. Please update your precompiler to a newer version (>= 1.0.0-rc.4) or downgrade your runtime to an older version (== 1.0.0-rc.3)
Here are the relevant lines in my gemfile, taken straight from the ember-rails README (except pulling the gem from git... it gives the same error whether I include that or not)
gem 'ember-rails', git: 'https://github.com/emberjs/ember-rails.git'
gem 'ember-source', '1.0.0.rc5'
gem 'handlebars-source', '1.0.0.rc4'
I'm using rails 3.2
I know this problem has come up before, but none of the solutions I've found have made a difference. Things that haven't worked:
deleting precompiled assets
rake tmp:clear
making sure my javascrcipt load order is jquery, then handlebars, then ember
restarting the server
threatening the compiler
giving up hope and watching Buffy reruns
trying all of those in conjunction, in every imaginable order
Simple and definitive answers are best, of course, but I'd also be glad for hints on what I can study to figure this out on my own. I don't know where to start.
For now, ensure your Gemfile is using the edge version:
gem 'ember-rails', :git => 'git://github.com/emberjs/ember-rails.git'
gem 'ember-source', '1.0.0.rc5'
gem 'handlebars-source', '1.0.0.rc4'
A new version of the gem should be released to resolve the issue soon. This fixed the problem for me.
Upon cloning my first Rails 3.1.1 app, my first bundle install choked on the eventmachine 0.12.10 gem. (I'm running Windows 7 32 bit)
I'm also using gem 'thin' as well.
I found this post that had the same problem.
Which version of eventmachine is able to work in windows?
Which I integrated with this line in my gemfile:
gem "eventmachine", ">= 1.0.0.beta"
That allowed the bundle install to run but when I start the rails server I get a Ruby popup with the header ruby.exe - System Error and the text
The program can't start because libgcc_s_sjlj-1.dll is missing from your computer. Try reinstalling the program to fix this problem.
After I click OK I get this message in the console
Unable to load the EventMachine C extension; To use the pure-ruby reactor, require 'em/pure_ruby'
followed by a long stack trace (request to see if you think this will help).
I see that EventMachine gem requires a C++ compiler. I reinstalled MinGW on my 32 bit Windows 7 machine and I added MinGW\bin to my PATH variable.
But when I look into that bin folder, the file libgcc_s_sjlj-1.dll isn't there and the same error message persists. I found this thread about the lack of that folder from 2009 but I'm not really sure what to do about it.
http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=539033
Thanks for any help you can give me.
I solved this problem by adding
require "em/pure_ruby"
in the config/application.rb
Hope this could help.
Add this to your gem file
gem 'eventmachine', '1.0.0.beta.4.1'
Also note that if you switch back to a unix based OS, you will have to use 1.0.0.beta.4.
This is probably because eventmachine is dynamically linked to the mingw dlls.
You can:
require 'devkit'
on the top of your script. This will temporarily enhance your path with the path to the mingw devkit.
Source