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

📮Comments

No Comment.
xosadmin
xosadmin
3 years ago
推荐 vsftpd提示500 OOPS: vsftpd: refusing to run with writable root inside chroot()解决方法
问题:在安装完vsftpd后,尝试连接时,提示500 OOPS: vsftpd: refusing to run with writable root inside chroot() 解决此问题,只需要执行以下操作: 在/etc/vsft ...
  • 技术小絮
545 0
xosadmin
xosadmin
8 months ago
推荐 Proxmox通过CLI向LXC挂载已有虚拟磁盘的方法
LXC采用.raw格式的虚拟硬盘,在proxmox中也不例外。然而,LXC或Proxmox并没有提供向KVM那样能在CLI中直接挂载.img到虚拟机的方法。但是,可以通过以下方法进行挂载已有磁盘。 关闭目标LXC容器 将已有的磁盘文件复制 ...
  • proxmox
  • 技术小絮
664 0
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,880 0
xosadmin
xosadmin
6 years ago
推荐 树莓派安装ffmpeg
近日想尝试传输自己的流式媒体。目前测试了Hyper-V虚拟机,效果并不理想。原因是Hyper-V太吃资源。后来,测试在Hyper-V虚拟机下安装Linux系统进行推流,由于是yum安装的ffmpeg,年代有点过于久远,并且编译安装比较慢。 ...
  • 技术小絮
2,863 0
xosadmin
xosadmin
5 years ago
推荐 Proxmox “QEMU version ‘x.x.x’ is too old”问题的解决方法
最近在Proxmox操作时发现,由于集群中有一台服务器的Proxmox安装时间较早,因故在迁移虚拟机到该服务器时遇到了这样一个错误:Installed QEMU version ‘x.x.x’ is too old ...
  • proxmox
  • 技术小絮
3,150 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