X-osadminの自留地
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
77
Comments
0

友情链接 – Friendly Links

  • Add your site here…
xosadmin
5 years ago

gem (Zlib::GzipFile::Error) not in gzip format 的解决方案

近日在使用老版本ruby安装sqlite3时,遇到了这样的一个错误,报错如下:

ERROR: While executing gem … (Zlib::GzipFile::Error)
not in gzip format

这个错误是由于网络或ruby源配置问题所导致的。旧版的ruby引用的是http://gems.rubyforge.org/,本源地址已经被废弃。所以,我们需要更换软件源成新的地址,命令如下:

gem sources -a http://rubygems.org/

# 删除无效的旧源地址

gem sources -r http://gems.rubyforge.org/

如果有必要的话,可以执行gem update –system来做刷新。

同时,部分同学在解决完上面的问题后,会遇到如下的一些问题,问题报错如下:

./sqlite3_ruby.h:15:27: fatal error: ruby/encoding.h: No such file or directory

这时,只需要在gem install后面加上 -v <版本号>即可。

Enjoy~

 

Ref: https://jyamtan.hatenablog.com/

  • 技术小絮
等 人表示很赞
1,210
0

📮Comments

No Comment.
xosadmin
xosadmin
4 years ago
推荐 为proxmox 6/7一键开启bbr
新版Proxmox 6/7基于debian buster/bullseye操作系统,已采用5.10以上内核,因此符合免更换内核开启bbr的条件。只需要按照以下操作进行操作即可: echo “net.core.default_qd ...
  • proxmox
  • 技术小絮
1,339 0
xosadmin
xosadmin
6 years ago
推荐 树莓派如何更换成国内源
随着树莓派的兴起,开始学习并使用树莓派的开发者们越来越多。很多人在学习时选用树莓派官方的Raspbian系统。但此系统由于为外国人开发,所以从中调用的软件源比较慢,对大陆的小伙伴非常不利。今天,讲述一下更换树莓派软件源为国内软件源的办法。 ...
  • 技术小絮
1,819 0
xosadmin
xosadmin
4 years ago
推荐 curl: (35) Peer reports incompatible or unsupported protocol version的解决方法
近日在做CentOS 7维护时,在尝试curl时,遇到了curl: (35) Peer reports incompatible or unsupported protocol version.的问题。本问题是由于相应的包版本过老导致的。 ...
  • 技术小絮
2,330 0
xosadmin
xosadmin
5 years ago
推荐 apache提示You don’t have permission to access /* on this server.的解决方法
首先,X-osadmin在这里祝大家520快乐!近日有朋友遇到了这样一个问题:在CentOS 8下安装php-fpm+apache,在浏览器打开时均提示You don’t have permission to access / ...
  • 技术小絮
3,853 0
xosadmin
xosadmin
7 years ago
推荐 SolusVM OpenVZ虚拟机无法启动的一些解决思路
问题截图 由Google的结果和其他网友的分享,可以得出,这个问题产生的原因很多。在下面,为大家列出一部分比较常见的原因及一些解决方案,仅适用于SolusVM+OpenVZ架构。 1.宿服务器未进入OpenVZ内核模式 有许多朋友在安装 ...
  • 技术小絮
3,548 0
  • HPE Microserver系列降低噪音的一种办法
  • Debian 13 Trixie安装Proxmox VE
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法

文章聚合

  • Debian 13 Trixie安装Proxmox VE
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持
  • Proxmox报出RRDC/RRD update error的解决方法

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. 萌ICP备20258855号
  • 博客主页 HomePage
  • 技术小絮 Tech
  • 作品发布 Works
  • 软件专题 Softs
    • proxmox
    • openwrt
    • chromebook
    • Zerotier
    • 虚拟化
  • 友情链接 Following
Welcome
Forgot password?
Welcome
Forgot password?
Social Login
Login with WeChat QR Code
Unregistered WeChat IDs will be automatically used to create an account.
Scan and Reply with Keywords「登录」Get Verification Code
Social Login
Free registration
Social Login
Reset password
Back to Login