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,196
0

📮Comments

No Comment.
xosadmin
xosadmin
5 years ago
推荐 Proxmox挂载Windows Samba时报错的解决方法
近日在Proxmox的Web界面上挂载由Windows Server 2008共享的CIFS(Samba共享)时,界面报出以下错误: create storage failed: error with cfs lock ‘fil ...
  • proxmox
  • 技术小絮
5,908 0
xosadmin
xosadmin
3 years ago
推荐 git提示server certificate verification failed的解决方法
在部分Ubuntu或者Debian系统上,git在clone或者push时可能会报出server certificate verification failed的错误,具体报错如下: server certificate verifica ...
  • 技术小絮
812 0
xosadmin
xosadmin
6 years ago
推荐 树莓派安装ffmpeg
近日想尝试传输自己的流式媒体。目前测试了Hyper-V虚拟机,效果并不理想。原因是Hyper-V太吃资源。后来,测试在Hyper-V虚拟机下安装Linux系统进行推流,由于是yum安装的ffmpeg,年代有点过于久远,并且编译安装比较慢。 ...
  • 技术小絮
2,884 0
xosadmin
xosadmin
7 years ago
推荐 虚拟机(VPS)及内网端口转发的几种方法
最近云鼎群有很多朋友开始尝试搭建属于自己的VPS品牌。但很多人因为资金紧张,不得不选择单IP的服务器(下称母鸡)。因此,NAT VPS应运而生。NAT VPS,顾名思义,利用NAT技术使单IP的利用率最大化。因为共用一个IP,所以每位用户 ...
  • 技术小絮
5,769 0
xosadmin
xosadmin
4 years ago
推荐 apt-get时提示different from other instances的解决方案
近日在升级Ubuntu系统时,apt-get提示”trying to overwrite shared ‘/usr/share/doc/libselinux1/changelog.Debian.gz’, ...
  • 技术小絮
1,139 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