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.
Related
I'm kind of new to the shiny application as a package (using golem) so my struggle is maybe a silly one..
I've just done a test to using the provided template with golem to see if I could generate and install the package. It seems that I cannot do it..I've do all relevant steps in dev1, 2 and 3 and the package is generated with no error. However when I try to install it it always says that I'm missing the dependencies that are listed in the DESCRIPTION file (under the import section).
Shouldn't it be all installed as I install my package from source?
Any guidance here is much appreciated..
I've tried the golem example within the package...just that. I'm getting this error ERROR: dependencies ‘golem’, ‘shiny’, ‘config’ are not available for package ‘golemtes3’
Hello i need help about building artefact for Java. I get an error when running this command for build:
./configure --with-vpnc-script=~/Downloads/vpnc-script --with-java=/Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home --disable-nls.
This is the error that i get:
checking jni.h usability... no
configure: error: unable to compile JNI test program
I need your help please. I'm using release version 8.08 and building it on mac. This is the official gitlab repository
Here is the content of config.log generated
Thanks
It seems that configure script expects you to pass the path to the JDK's include directory, not the JDK itself.
This should work:
--with-java=/Library/Java/JavaVirtualMachines/jdk-14.0.1.jdk/Contents/Home/include
My systemenvironment: Windows 10 with Visual Studio 2015 (including C++ Compiler Tools) and node.js installed
I tried to include a node library into the electon-quick-start-project and failed.
First of all I tried electron-usb to include electron-usb. You can found my problem here. Unfortunately I couldn't solve it.
Therefore I tried to include usb. I found help how to do this here
I did every step according to this description:
npm install --save usb
changing the variables property in the node_modules/usb/binding.gyp to include module_name and module_path
electron-gyp node-gyp rebuild --target=0.26.0 --arch=ia32 --dist-url=https://atom.io/download/atom-shell
When I executed the rebuild command, I got a build error: error C2011: 'timespec': 'struct' type redefinition (compiling source file ..\libusb\libusb\core.c). Always the same error in different files.
I included HAVE_STRUCT_TIMESPEC in the project-files. But it didn't work either afterwards.
Now I ask myself, what is the easiest and best way to access USB with Electron? Which library can you recommend? Do you know any complete tutorial to include this library into electron?
if you have VS2015 installed on a windows 10 PC you shouldn't have to compile the source to electron-usb. just npm install then require it to use it.
after installing electron-usb you need to npm install electron-prebuilt#1.0.2 Must be that version because electron-usb doesn't work with Node version greater than 5.x.
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.
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