fedora26 安装 jekyll 报错
来源:互联网 发布:myeclipse连接数据库 编辑:程序博客网 时间:2024/05/05 12:44
错误信息
[root@localhost ~]# gem install jekyllBuilding native extensions. This could take a while...ERROR: Error installing jekyll: ERROR: Failed to build gem native extension. current directory: /usr/local/share/gems/gems/ffi-1.9.18/ext/ffi_c/usr/bin/ruby -r ./siteconf20170611-5518-zl7dpc.rb extconf.rbchecking for ffi.h... *** extconf.rb failed ***Could not create Makefile due to some reason, probably lack of necessarylibraries and/or headers. Check the mkmf.log file for more details. You mayneed 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}/lib --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}/lib --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:1091:in `block in have_header' from /usr/share/ruby/mkmf.rb:942:in `block in checking_for' from /usr/share/ruby/mkmf.rb:350:in `block (2 levels) in postpone' from /usr/share/ruby/mkmf.rb:320:in `open' from /usr/share/ruby/mkmf.rb:350:in `block in postpone' from /usr/share/ruby/mkmf.rb:320:in `open' from /usr/share/ruby/mkmf.rb:346:in `postpone' from /usr/share/ruby/mkmf.rb:941:in `checking_for' from /usr/share/ruby/mkmf.rb:1090:in `have_header' from extconf.rb:16:in `<main>'To see why this extension failed to compile, please check the mkmf.log which can be found here: /usr/local/lib/gems/ruby/ffi-1.9.18/mkmf.logextconf failed, exit code 1Gem files will remain installed in /usr/local/share/gems/gems/ffi-1.9.18 for inspection.Results logged to /usr/local/lib/gems/ruby/ffi-1.9.18/gem_make.out
解决
查看 /usr/local/lib/gems/ruby/ffi-1.9.18/mkmf.log
[root@localhost ~]# cat /usr/local/lib/gems/ruby/ffi-1.9.18/mkmf.log"pkg-config --exists libffi"package configuration for libffi is not found"gcc -o conftest -I/usr/include -I/usr/include/ruby/backward -I/usr/include -I. -D_FILE_OFFSET_BITS=64 -O2 -g -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector-strong --param=ssp-buffer-size=4 -grecord-gcc-switches -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -march=i686 -mtune=atom -fasynchronous-unwind-tables -fPIC conftest.c -L. -L/usr/lib -L. -Wl,-z,relro -specs=/usr/lib/rpm/redhat/redhat-hardened-ld -fstack-protector -rdynamic -Wl,-export-dynamic -m32 -lruby -lpthread -ldl -lcrypt -lm -lc"gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directorychecked program was:/* begin */1: #include "ruby.h"2: 3: int main(int argc, char **argv)4: {5: return 0;6: }/* end */
搜索:
gcc: error: /usr/lib/rpm/redhat/redhat-hardened-cc1: No such file or directory
stackoverflow
安装redhat-rpm-config
sudo dnf install redhat-rpm-config
再执行gem install jekyll
成功。
阅读全文
1 0
- fedora26 安装 jekyll 报错
- Mac安装jekyll报错Operation not permitted
- ubuntu安装jekyll报错 exit code 1
- fedora26安装记录
- fedora26安装日语输入法
- Fedora26安装StartUML
- fedora26版本安装MYSQL5.7
- Jekyll serve 报错
- 安装jekyll
- jekyll 安装
- Jekyll 安装
- 如何在fedora26安装chromium安装flash
- AMD ryzen fedora26 安装Nvidia驱动
- windows 安装jekyll
- jekyll安装成功
- Windows上安装Jekyll
- Windows 上安装 Jekyll
- window下jekyll安装
- 深入理解Eureka
- 165. Compare Version Numbers
- 读取本地文件assets内容
- [leetCode刷题笔记]520. Detect Capital
- java Socket编程
- fedora26 安装 jekyll 报错
- tophat常见错误
- 字符串匹配KMP(看毛片)算法
- linux如何查看端口被哪个进程占用的方法
- Java三大主流框架概述
- ToString("X2")的含义及使用
- oracle约束+check+暴力删除表,无视外键+查看用户创建的表+查看约束
- 21天web错误统计
- RMQ( 区间最值,区间频繁次数)