Created
February 28, 2016 17:49
-
-
Save svetlemodry/1773e568d48cfbdae846 to your computer and use it in GitHub Desktop.
Jekyll on Fedora
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
gem: | |
--bindir ~/.local/bin | |
--no-ri --no-rdoc |
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
$ gem install jekyll | |
Building native extensions. This could take a while... | |
ERROR: Error installing jekyll: | |
ERROR: Failed to build gem native extension. | |
/usr/bin/ruby -r ./siteconf20160228-13857-1nxr3u6.rb extconf.rb | |
mkmf.rb can't find header files for ruby at /usr/share/include/ruby.h | |
extconf failed, exit code 1 | |
$ gem install jekyll | |
Building native extensions. This could take a while... | |
ERROR: Error installing jekyll: | |
ERROR: Failed to build gem native extension. | |
/usr/bin/ruby -r ./siteconf20160228-14308-wxwclm.rb extconf.rb | |
checking for ffi.h... *** 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. | |
Provided configuration options: | |
--with-opt-dir | |
--without-opt-dir | |
--with-opt-include | |
--without-opt-include=${opt-dir}/include | |
--with-opt-lib | |
--without-opt-lib=${opt-dir}/lib64 | |
--with-make-prog | |
--without-make-prog | |
--srcdir=. | |
--curdir | |
--ruby=/usr/bin/$(RUBY_BASE_NAME) | |
--with-ffi_c-dir | |
--without-ffi_c-dir | |
--with-ffi_c-include | |
--without-ffi_c-include=${ffi_c-dir}/include | |
--with-ffi_c-lib | |
--without-ffi_c-lib=${ffi_c-dir}/lib64 | |
--with-libffi-config | |
--without-libffi-config | |
--with-pkg-config | |
--without-pkg-config | |
/usr/share/ruby/mkmf.rb:456:in `try_do': The compiler failed to generate an executable file. (RuntimeError) | |
You have to install development tools first. | |
from /usr/share/ruby/mkmf.rb:587:in `try_cpp' | |
from /usr/share/ruby/mkmf.rb:1060:in `block in have_header' | |
from /usr/share/ruby/mkmf.rb:911:in `block in checking_for' | |
from /usr/share/ruby/mkmf.rb:351:in `block (2 levels) in postpone' | |
from /usr/share/ruby/mkmf.rb:321:in `open' | |
from /usr/share/ruby/mkmf.rb:351:in `block in postpone' | |
from /usr/share/ruby/mkmf.rb:321:in `open' | |
from /usr/share/ruby/mkmf.rb:347:in `postpone' | |
from /usr/share/ruby/mkmf.rb:910:in `checking_for' | |
from /usr/share/ruby/mkmf.rb:1059:in `have_header' | |
from extconf.rb:16:in `<main>' | |
extconf failed, exit code 1 |
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
Some time ago I had trouble getting jekyll setup on a fresh Fedora installation. | |
Here a note to myself to have that done quickly in the future. | |
$ sudo dnf install rubygems ruby-devel gcc rpm-build | |
$ gem install jekyll |
Thanks.
Thanks also. Contributions worked including davidomarf's
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
I kept having problems after this in Fedora 30:
If you also have
make: g++: Command not found
, runsudo dnf install gcc-c++