-
-
Save kalbasit/eda3836318ea42ba3a457bc7aa96bce0 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Installing json 1.8.6 with native extensions | |
Gem::Ext::BuildError: ERROR: Failed to build gem native extension. | |
current directory: /Users/loaner/.gem/ruby/2.3.0/gems/json-1.8.6/ext/json/ext/generator | |
/nix/store/5svvwcf445rfb2irn0n64lwi89wa1q41-ruby-2.3.8/bin/ruby -r ./siteconf20190103-4946-1x2rtzy.rb extconf.rb | |
creating Makefile | |
current directory: /Users/loaner/.gem/ruby/2.3.0/gems/json-1.8.6/ext/json/ext/generator | |
make "DESTDIR=" clean | |
current directory: /Users/loaner/.gem/ruby/2.3.0/gems/json-1.8.6/ext/json/ext/generator | |
make "DESTDIR=" | |
compiling generator.c | |
In file included from generator.c:1: | |
In file included from ./../fbuffer/fbuffer.h:5: | |
In file included from /nix/store/5svvwcf445rfb2irn0n64lwi89wa1q41-ruby-2.3.8/include/ruby-2.3.0/ruby.h:33: | |
In file included from /nix/store/5svvwcf445rfb2irn0n64lwi89wa1q41-ruby-2.3.8/include/ruby-2.3.0/ruby/ruby.h:36: | |
/nix/store/5svvwcf445rfb2irn0n64lwi89wa1q41-ruby-2.3.8/include/ruby-2.3.0/ruby/defines.h:26:10: fatal error: 'stdio.h' file not found | |
#include <stdio.h> | |
^~~~~~~~~ | |
1 error generated. | |
make: *** [Makefile:239: generator.o] Error 1 | |
make failed, exit code 2 | |
Gem files will remain installed in /Users/loaner/.gem/ruby/2.3.0/gems/json-1.8.6 for inspection. | |
Results logged to /Users/loaner/.gem/ruby/2.3.0/extensions/x86_64-darwin-17/2.3.0/json-1.8.6/gem_make.out | |
An error occurred while installing json (1.8.6), and Bundler cannot continue. | |
Make sure that `gem install json -v '1.8.6' --source 'https://rubygems.org/'` succeeds before bundling. | |
In Gemfile: | |
activeadmin was resolved to 1.0.0.pre1, which depends on | |
rails was resolved to 4.2.7.1, which depends on | |
actionmailer was resolved to 4.2.7.1, which depends on | |
actionpack was resolved to 4.2.7.1, which depends on | |
actionview was resolved to 4.2.7.1, which depends on | |
rails-dom-testing was resolved to 1.0.9, which depends on | |
rails-deprecated_sanitizer was resolved to 1.0.3, which depends on | |
activesupport was resolved to 4.2.7.1, which depends on | |
json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# This allows overriding nixpkgs by passing `--arg pkgs ...` | |
{ pkgs ? import ./devtools/lib/nix/nixpkgs.nix {} | |
, lib ? pkgs.lib | |
}: | |
with pkgs; | |
with lib; | |
let | |
ruby = ruby_2_3; | |
in gccStdenv.mkDerivation { | |
name = "keeptruckin-development-environment"; | |
buildInputs = [ | |
# The ruby environment | |
ruby.devEnv | |
# Gem dependencies | |
libxml2 # dependency of the nokogiri Gem | |
postgresql # dependency of the pg Gem | |
sqlite # dependency of the sqlite3 Gem | |
openssl | |
] ++ optional stdenv.isDarwin [ | |
docker-machine | |
] ++ optional stdenv.isLinux [ | |
# TODO: make wkhtmltopdf compatible with Mac! | |
wkhtmltopdf | |
]; | |
phases = ["nobuildPhase"]; | |
nobuildPhase = '' | |
echo | |
echo "This derivation is not meant to be built, aborting"; | |
echo | |
exit 1 | |
''; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment