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

📮Comments

No Comment.
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,109 0
xosadmin
xosadmin
3 years ago
推荐 Debian 11启用rc.local方法
rc.local是一个令大家耳熟详的文件,它在Redhat系列操作系统中可以让用户添加自定义开机脚本并运行。但是在Debian 11操作系统中,这个功能不被默认开启。这篇文章将介绍如何开启rc.local。话不多说,开始~ 先通过以下命令 ...
  • 技术小絮
2,903 0
xosadmin
xosadmin
2 years ago
推荐 在OpenVZ或LXC下使用Zerotier
众所周知,Zerotier是一个十分方便的p2p组网方式,OpenVZ和LXC是一种容器式的虚拟化。因此,OpenVZ和LXC的ppp和tun功能默认处于关闭状态。这也导致Zerotier在OpenVZ或者LXC架构下的虚拟机默认无法使用( ...
  • 技术小絮
353 0
xosadmin
xosadmin
7 years ago
推荐 【原创】Intel Core 2 Duo类CPU安装OSX Yosemite的随记
Copyright Proclaim:本教程和工具及系统仅供娱乐及个人测试使用,请不要用于商业用途。系统版权归属苹果公司。部分工具和系统镜像来自于威锋和远景论坛收集。 大家好!又有一段时间没有更新博客了。这次,有幸获得了一台搭载Intel ...
  • 技术小絮
2,987 2
xosadmin
xosadmin
1 year ago
推荐 Debian上重装Nginx的方法
1. 卸载现有Nginx以及配套包: apt-get remove nginx -y apt-get autoremove 2. 删除配置目录(在删除前可以备份以备恢复): cp -r /etc/nginx /home/backup-ngi ...
  • 技术小絮
414 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