From bd0cdcd4cb074f44b23f63823fdc5d72b9275765 Mon Sep 17 00:00:00 2001 From: AndrewCz Date: Sun, 20 Mar 2016 05:08:05 -0400 Subject: [PATCH 1/2] Add installing devel libraries to fedora I followed the troubleshooting and came up with `sudo gem install jekyll` unable to generate the binary file because the development libraries were not installed on my system. Per [fedoraproject.org -- Gems](https://developer.fedoraproject.org/tech/languages/ruby/gems-installation.html) this is necessary to install this. The instructions mirror what is listed on that page, but using `yum` instead of `dnf` - which is understandable because RH and CentOS still use `yum`. --- site/_docs/troubleshooting.md | 1 + 1 file changed, 1 insertion(+) diff --git a/site/_docs/troubleshooting.md b/site/_docs/troubleshooting.md index 5d7b1ad9..bdc7804f 100644 --- a/site/_docs/troubleshooting.md +++ b/site/_docs/troubleshooting.md @@ -28,6 +28,7 @@ On Red Hat, CentOS, and Fedora systems you can do this by running: {% highlight bash %} sudo yum install ruby-devel +sudo yum group install "C Development Tools and Libraries" {% endhighlight %} On [NearlyFreeSpeech](https://www.nearlyfreespeech.net/) you need to run the From a54cedbb723a38d787b0a2b29a4e0485e83b92c6 Mon Sep 17 00:00:00 2001 From: AndrewCz Date: Sun, 20 Mar 2016 05:53:13 -0400 Subject: [PATCH 2/2] Additional repo needed for Fedora 23 Workspace After running: sudo dnf install ruby ruby-devel rubygems nodejs sudo dnf group install "C Development and Tools" I was unable to install Jekyll via `gem` due to an error: The compiler failed to generate an executable file. (RuntimeError) You have to install development tools first. Taken from the [fedoraproject.org](https://developer.fedoraproject.org/tech/languages/ruby/gems-installation.html) Gem page: >If you installed all the above, but the extensions would still not compile, you are probably running a Fedora image that misses `redhat-rpm-config` >package. In that case gcc compiler would complain about one of the following: gcc: error: conftest.c: No such file or directory gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory >To solve this, simply run sudo dnf install `redhat-rpm-config`. After doing so it downloaded, compiled and installed without a problem. --- site/_docs/troubleshooting.md | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/site/_docs/troubleshooting.md b/site/_docs/troubleshooting.md index bdc7804f..899f129e 100644 --- a/site/_docs/troubleshooting.md +++ b/site/_docs/troubleshooting.md @@ -28,9 +28,15 @@ On Red Hat, CentOS, and Fedora systems you can do this by running: {% highlight bash %} sudo yum install ruby-devel -sudo yum group install "C Development Tools and Libraries" {% endhighlight %} +If you installed the above - specifically on Fedora 23 - but the extensions would still not compile, you are probably running a Fedora image that misses the `redhat-rpm-config` package. To solve this, simply run: + +{% highlight bash %} +sudo dnf install redhat-rpm-config +{% endhighlight %} + + On [NearlyFreeSpeech](https://www.nearlyfreespeech.net/) you need to run the following commands before installing Jekyll: