网站首页 > 博客文章 正文
大家好,我是袁庭新。分享一个我在使用luarocks来安装luarocks模块报错的解决方法。
在Unix系统中安装LuaRocks。本文我以CentOS 7.x系统为例,来讲解如何安装LuaRocks。
$ cd /opt
$ wget https://luarocks.org/releases/luarocks-3.11.1.tar.gz
$ tar zxpf luarocks-3.11.1.tar.gz
$ cd luarocks-3.11.1$ ./configure && make && sudo make install
$ luarocks install luasocket
$ lua
Lua 5.4.7 Copyright (C) 1994-2024 Lua.org, PUC-Rio
> require "socket"
table: 0xd196700 /usr/local/share/lua/5.4/socket.lua
这里需要注意的是,如果按照LuaRocks官方文档使用sudo luarocks install luasocket命令来安装luasocket模块,提示"sudo: luarocks:找不到命令"的信息,如下所示。解决这个问题的方法是,将sudo luarocks install luasocket命令中的sudo去掉,然后再执行该命令。如果没有出现该问题,请忽略此步骤的操作。
# sudo luarocks install luasocket
sudo: luarocks:找不到命令
查看已安装的luasocket模块的信息描述。
$ luarocks show luasocket
在LuaRocks包管理器中卸载luasocket模块(移除模块)。
$ luarocks remove luasocket
如果想在Windows系统上安装LuaRocks,可参考https://github.com/luarocks/luarocks/wiki/Installation-instructions-for-Windows文档,但这里不推荐这么做。
- 上一篇: Linux超能力命令sudo详解
- 下一篇: Linux sudo 命令的威力,比你想象的更有用
猜你喜欢
- 2024-12-28 sudo快可以在Windows中使用了,以下是它的内容和使用方法
- 2024-12-28 使用sudo运行的程序,无法输入中文的原因和解决方法
- 2024-12-28 Linux sudo命令用法
- 2024-12-28 Linux系统sudo命令使用详解
- 2024-12-28 Linux系统中su、sudo、sudo su、sudo -i命令的用法和区别小结
- 2024-12-28 Linux sudo 命令的威力,比你想象的更有用
- 2024-12-28 Linux下 sudo命令
- 2024-12-28 Linux超能力命令sudo详解
- 2024-12-28 Linux基本功系列之sudo命令
- 2024-12-28 Linux快速上手 - 常用命令:sudo, uname, whoami,who,su, id
你 发表评论:
欢迎- 07-07Xiaomi Enters SUV Market with YU7 Launch, Targeting Tesla with Bold Pricing and High-Tech Features
- 07-07Black Sesame Maps Expansion Into Robotics With New Edge AI Strategy
- 07-07Wuhan's 'Black Tech' Powers China's Cross-Border Push with Niche Electronics and Scientific Firepower
- 07-07Maven 干货 全篇共:28232 字。预计阅读时间:110 分钟。建议收藏!
- 07-07IT运维必会的30个工具(it运维工具软件)
- 07-07开源项目有你需要的吗?(开源项目什么意思)
- 07-07自动化测试早就跑起来了,为什么测试管理还像在走路?
- 07-07Cursor 最强竞争对手来了,专治复杂大项目,免费一个月
- 最近发表
-
- Xiaomi Enters SUV Market with YU7 Launch, Targeting Tesla with Bold Pricing and High-Tech Features
- Black Sesame Maps Expansion Into Robotics With New Edge AI Strategy
- Wuhan's 'Black Tech' Powers China's Cross-Border Push with Niche Electronics and Scientific Firepower
- Maven 干货 全篇共:28232 字。预计阅读时间:110 分钟。建议收藏!
- IT运维必会的30个工具(it运维工具软件)
- 开源项目有你需要的吗?(开源项目什么意思)
- 自动化测试早就跑起来了,为什么测试管理还像在走路?
- Cursor 最强竞争对手来了,专治复杂大项目,免费一个月
- Cursor 太贵?这套「Cline+OpenRouter+Deepseek+Trae」组合拳更香
- 为什么没人真的用好RAG,坑都在哪里? 谈谈RAG技术架构的演进方向
- 标签列表
-
- ifneq (61)
- 字符串长度在线 (61)
- messagesource (56)
- aspose.pdf破解版 (56)
- promise.race (63)
- 2019cad序列号和密钥激活码 (62)
- window.performance (66)
- qt删除文件夹 (72)
- mysqlcaching_sha2_password (64)
- ubuntu升级gcc (58)
- nacos启动失败 (64)
- ssh-add (70)
- jwt漏洞 (58)
- macos14下载 (58)
- yarnnode (62)
- abstractqueuedsynchronizer (64)
- source~/.bashrc没有那个文件或目录 (65)
- springboot整合activiti工作流 (70)
- jmeter插件下载 (61)
- 抓包分析 (60)
- idea创建mavenweb项目 (65)
- vue回到顶部 (57)
- qcombobox样式表 (68)
- tomcatundertow (58)
- pastemac (61)
本文暂时没有评论,来添加一个吧(●'◡'●)