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

xosadmin

BGPlayer / Codes learner / Love Linux
Posts
75
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,172
0

📮Comments

No Comment.
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,295 0
xosadmin
xosadmin
5 years ago
推荐 apt-get出现”No public key available”的解决方法
近日在维护Debian 8系统时,执行了apt-get update。执行完成后程序报出错误,错误内容如下: W: There is no public key available for the following key IDs: 这个 ...
  • 技术小絮
1,533 0
xosadmin
xosadmin
5 years ago
推荐 外网通过Zerotier访问内网其他主机的方法
Zerotier是一个非常卓越的组网软件。它可以以最简单的方式构成一张虚拟网络。目前有很多OpenWrt路由器固件已经附带了该功能。但是大部分路由器不带有此功能。因此,可以通过在内网内搭建跳板机的方式,来解决这一问题。 在本次测试中,跳板机 ...
  • Zerotier
  • 技术小絮
3,417 0
xosadmin
xosadmin
6 years ago
推荐 树莓派安装ffmpeg
近日想尝试传输自己的流式媒体。目前测试了Hyper-V虚拟机,效果并不理想。原因是Hyper-V太吃资源。后来,测试在Hyper-V虚拟机下安装Linux系统进行推流,由于是yum安装的ffmpeg,年代有点过于久远,并且编译安装比较慢。 ...
  • 技术小絮
2,859 0
xosadmin
xosadmin
1 year ago
推荐 Debian设置802.1q vlan的方法
802.1Q VLAN是一种非常常见的VLAN技术,Debian也支持本VLAN技术。本文将以Debian 12 x64作为演示。 首先,在操作系统下安装vlan程序包 apt-get install vlan -y 2. 将802.1 ...
  • 技术小絮
681 0
  • Windows FTP服务器通过PASV模式无法获取目录的解决方法
  • Proxmox日志出现大量lxcfs truncated错误的解决方案
  • Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
  • LXC上安装Gitlab时sysctl报错的解决方法
  • Proxmox VE通过全盘方式直通硬盘
  • Proxmox为KVM VNC启用剪贴板支持

文章聚合

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

Multilangual Translator

Copyright © 2016-2025 X-osadminの自留地. All rights reserved. Designed by nicetheme.
  • 博客主页 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