linux gem安装软件,安装gem报错
1.相应的环境:
ubuntu12.04 ruby 2.4
2.通过
bundle install --deployment --without development test postgres aws
安装gem的时候报错:
Gem::Ext::BuildError: ERROR: Failed to build gem native extension.
current directory:
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/json-1.8.1/ext/json/ext/generator
/usr/local/bin/ruby -r ./siteconf20170122-2448-oz1rn0.rb extconf.rb
creating Makefile
current directory:
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR=" clean
current directory:
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR=" compiling generator.c In file included from
generator.c:1:0: ../fbuffer/fbuffer.h: In function 'fbuffer_to_s':
../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2
arguments, but only 1 given ../fbuffer/fbuffer.h:175:20: warning:
initialization makes integer from pointer without a cast [enabled by
default] generator.c: In function 'generate_json': generator.c:840:25:
error: 'rb_cFixnum' undeclared (first use in this function)
generator.c:840:25: note: each undeclared identifier is reported only
once for each function it appears in generator.c:842:25: error:
'rb_cBignum' undeclared (first use in this function) generator.c: At
top level: cc1: warning: unrecognized command line option
"-Wno-self-assign" [enabled by default] cc1: warning: unrecognized
command line option "-Wno-constant-logical-operand" [enabled by
default] cc1: warning: unrecognized command line option
"-Wno-parentheses-equality" [enabled by default] cc1: warning:
unrecognized command line option "-Wno-tautological-compare" [enabled
by default] make: * [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in
/home/git/gitlab/vendor/bundle/ruby/2.4.0/gems/json-1.8.1 for
Results logged to
/home/git/gitlab/vendor/bundle/ruby/2.4.0/extensions/x86-linux/2.4.0-static/json-1.8.1/gem_make.out
An error occurred while installing json (1.8.1), and Bundler cannot
Make sure that gem install json -v '1.8.1' succeeds before bundling.
但是看到Make sure that gem install json -v '1.8.1' succeeds before bundling.
于是我就手动安装了gem install json -v '1.8.1' ,
依然报错:
Building native extensions. This could take a while...
ERROR: Error installing json:
ERROR: Failed to build gem native extension.
current directory: /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.1/ext/json/ext/generator
/usr/local/bin/ruby -r ./siteconf20170122-3475-aueo31.rb extconf.rb
creating Makefile
current directory: /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR=" clean
current directory: /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.1/ext/json/ext/generator
make "DESTDIR="
compiling generator.c
In file included from generator.c:1:0:
../fbuffer/fbuffer.h: In function 'fbuffer_to_s':
../fbuffer/fbuffer.h:175:47: error: macro "rb_str_new" requires 2 arguments, but only 1 given
../fbuffer/fbuffer.h:175:20: warning: initialization makes integer from pointer without a cast [enabled by default]
generator.c: In function 'generate_json':
generator.c:840:25: error: 'rb_cFixnum' undeclared (first use in this function)
generator.c:840:25: note: each undeclared identifier is reported only once for each function it appears in
generator.c:842:25: error: 'rb_cBignum' undeclared (first use in this function)
generator.c: At top level:
cc1: warning: unrecognized command line option "-Wno-self-assign" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-constant-logical-operand" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-parentheses-equality" [enabled by default]
cc1: warning: unrecognized command line option "-Wno-tautological-compare" [enabled by default]
make: *** [generator.o] Error 1
make failed, exit code 2
Gem files will remain installed in /usr/local/lib/ruby/gems/2.4.0/gems/json-1.8.1 for inspection.
Results logged to /usr/local/lib/ruby/gems/2.4.0/extensions/x86-linux/2.4.0-static/json-1.8.1/gem_make.out
本人并不太了解ruby,gem,我只是安装依赖ruby的软件时候遇到的。请哪位大神帮忙看一下,该问题应该怎么解决?还有讲讲ruby , gem , ruby-rails,bundle之间的关系!
谢谢!
linux gem安装软件,安装gem报错相关推荐
- debug笔记—编译报错usr/bin/ld: cannot find -lfl 解决办法;yum 安装软件时,报错:No package XXX available 解决办法
问题1: 在编译GEOS-Chem中KPP时,出现问题: usr/bin/ld: cannot find -lfl 原因:参考链接:https://www.royalchen.com/?p=2170 ...
- python3 使用 pi3 安装软件时候,报错找不到 SSL 附解决方法
问题形容 pip is configured with locations that require TLS/SSL, however the ssl module in Python is not ...
- CentOS使用yum命令安装软件失败,报错“Couldn‘t open file /data/ceph/ceph/repodata/repomd.xml“
问题 CentOS服务器中使用yum install -y sshpass命令安装sshpass失败,显示错误: 解决 /etc/yum.repos.d中查看yum源的配置文件,发现是使用本地的yum ...
- Interproscan linux版本详细安装教程及运行报错解决方案
解决问题:interproscan 软件 在Linux中配置(个人经验,仅供参考~) 文章目录 @[TOC](文章目录) 一.参考文档 二.需要软件 Software requirements: 三. ...
- Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/redis-server.
此文首发于我的个人博客:Linux/ubuntu 安装 redis 4.0报错解决:redis-server.service: Can't open PID file /var/run/redis/r ...
- linux安装tomcat后启动报错Cannot find ./catalina.sh的解决方法
linux安装tomcat后启动报错: Cannot find ./catalina.sh The file is absent or does not have execute permission ...
- linux系统Nginx下载安装步骤(含报错解决方法)
linux系统Nginx下载安装步骤(含报错解决方法) 基础步骤 安装过程可能出现的报错及解决方法 执行 ./configure --prefix=/opt/nginx 报错 执行 make inst ...
- gpt磁盘标签linux,解决安装CentOS6.5时 报错 提示“sda 必须有一个GPT磁盘标签”
解决安装CentOS6.5时 报错 提示"sda 必须有一个GPT磁盘标签" 今天想在thinkpad t430u上安装CentOS6.5 时总共遇到了两个问题 1> u盘安 ...
- 宝塔linux版apache安装了启动不,解决Linux宝塔apache启动失败:报错AH00526: Syntax error on line...
Linux宝塔apache启动失败:报错 AH00526: Syntax error on line 解决方案错误信息:AH00526: Syntax error on line 54 of /www ...
- VM安装windows Server 2019报错:windows找不到microsoft软件许可条款。请确保安装源有效,然后重新启动安装“已解决
VM安装windows Server 2019报错:windows找不到microsoft软件许可条款.请确保安装源有效,然后重新启动安装"已解决 新建虚拟机的时候选择"稍候安装操 ...
最新文章
- 深度学习入门,一文讲解神经网络的构成、训练和算法
- Java 利用replaceAll 替换中括号
- Java中Dom解析XML
- SAP 4.6C升级ECC6.0 WS_QUERY 的改法
- 历史上的今天:编程语言中null引用的十亿美元错误
- 元宵快乐:看SQL大师们用SQL绘制的团圆
- 1.1内置数据类型概述
- Windows常见错误
- 解决ntp的错误:no server can be used,exiting
- STM32F简单应用
- LeetCode 299. Bulls and Cows(公牛和母牛)
- 初始化一个java空数组_Java 数组的两种初始化方式
- PHP能源管理系统ems,EMS能源管理系统
- Pygame实战:利用Python实现智能五子棋,实现之后发现我玩不赢它。
- 潘粤明、富而喜悦齐预测卡塔尔世界杯巴西必夺冠走红网络!
- 《现代加工技术》第1章 绪论
- 语言学大师 —— 乔姆斯基
- 浅析ER模型与关系模型
- java计算机毕业设计vue图书档案管理系统MyBatis+系统+LW文档+源码+调试部署
- EVT、DVT、PVT是什么意思
热门文章
- linux怎么进入系统安装界面,Linux图形化界面安装全过程
- 服务器协议失败,Chrome中的HTTPS服务器“不支持的协议错误”
- Tout= ((arr+1)*(psc+1))/Tclk公式理解汇总
- Android-使用HttpURLConnection实现多线程下载
- L13:MySQL - 性能与SQL优化2
- win7无法查看win10工作组计算机,win7不显示工作组解决方法
- 从西直门立交桥谈IT架构与重构
- 电信光猫 中兴ZXHN F412破解
- js保留2位小数(且四舍五入)
- HTB打靶日记:Soccer