Additional package needed for Fedora 23 Workspace #4685

Merged
merged 2 commits into from Mar 20, 2016

Conversation

Projects
None yet
3 participants
@smacz42
Contributor

smacz42 commented Mar 20, 2016

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 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 << What I saw

To solve this, simply run sudo dnf install redhat-rpm-config.

After doing so it downloaded, compiled and installed without a problem.

smacz42 added some commits Mar 20, 2016

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`.
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.
@parkr

This comment has been minimized.

Show comment
Hide comment
@parkr

parkr Mar 20, 2016

Member

Thank you!! :-)

@jekyllbot: merge +site

Member

parkr commented Mar 20, 2016

Thank you!! :-)

@jekyllbot: merge +site

jekyllbot added a commit that referenced this pull request Mar 20, 2016

@jekyllbot jekyllbot merged commit 983cd60 into jekyll:master Mar 20, 2016

1 check passed

continuous-integration/travis-ci/pr The Travis CI build passed
Details

jekyllbot added a commit that referenced this pull request Mar 20, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment