- android - 多次调用 OnPrimaryClipChangedListener
- android - 无法更新 RecyclerView 中的 TextView 字段
- android.database.CursorIndexOutOfBoundsException : Index 0 requested, 光标大小为 0
- android - 使用 AppCompat 时,我们是否需要明确指定其 UI 组件(Spinner、EditText)颜色
各位程序员大家好,
我开始学习lua了。从自述文件中,我必须安装 luarocks 的“显示”,而问题出现了。当我输入“luarocks install display”时,
Installing https://raw.githubusercontent.com/torch/rocks/master/display-scm-0.rockspec...
Using https://raw.githubusercontent.com/torch/rocks/master/display-scm-0.rockspec... switching to 'build' mode
Missing dependencies for display:
async >= 1.0
luasocket >= 2.0
Using https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec... switching to 'build' mode
Cloning into 'async'...
remote: Counting objects: 210, done.
remote: Compressing objects: 100% (184/184), done.
remote: Total 210 (delta 19), reused 172 (delta 19), pack-reused 0
Receiving objects: 100% (210/210), 403.80 KiB | 437.00 KiB/s, done.
Resolving deltas: 100% (19/19), done.
make LUA_BINDIR=/home/marvin/torch/install/bin
LUA_LIBDIR=/home/marvin/torch/install/lib
LUA_INCDIR=/home/marvin/torch/install/include
basename: missing operand
Try 'basename --help' for more information.
make -C lhttp_parser LUA=
LUA_BINDIR=/home/marvin/torch/install/bin
LUA_LIBDIR=/home/marvin/torch/install/lib
LUA_INCDIR=/home/marvin/torch/install/include
make[1]: Entering directory '/tmp/luarocks_async-scm-1-9028/async/lhttp_parser'
cc -c lhttp_parser.c -o lhttp_parser.o -Ihttp-parser -I
/home/marvin/torch/install/include -D_LARGEFILE_SOURCE -
D_FILE_OFFSET_BITS=64 -Wall -Werror -fPICCPPFLAGS=-fPIC make -C http-parser http_parser.o
make[2]: Entering directory '/tmp/luarocks_async-scm-1-9028/async/lhttp_parser/http-parser'
cc -fPIC -I. -DHTTP_PARSER_STRICT=0 -Wall -Wextra -Werror -O3 -c
http_parser.c
http_parser.c: In function ‘http_parser_parse_url’:
http_parser.c:2093:18: error: this statement may fall through [-Werror=implicit-fallthrough=]
found_at = 1;
~~~~~~~~~^~~
http_parser.c:2096:7: note: here
case s_req_server:
^~~~
cc1: all warnings being treated as errors
Makefile:35: recipe for target 'http_parser.o' failed
make[2]: *** [http_parser.o] Error 1
make[2]: Leaving directory '/tmp/luarocks_async-scm-1-9028/async/lhttp_parser/http-parser'
Makefile:17: recipe for target 'http-parser/http_parser.o' failed
make[1]: *** [http-parser/http_parser.o] Error 2
make[1]: Leaving directory '/tmp/luarocks_async-scm-1-9028/async/lhttp_parser'
Makefile:6: recipe for target 'lhttp_parser/lhttp_parser.so' failed
make: *** [lhttp_parser/lhttp_parser.so] Error 2
Error: Failed installing dependency:
https://raw.githubusercontent.com/torch/rocks/master/async-scm-1.rockspec - Build error: Failed building.
到目前为止我已经搜索但没有找到相关的解决方案,我认为问题存在于“async”的安装中,但我不知道如何解决它。感谢您的帮助!
最好的,马文
最佳答案
我通过使用以下命令降级我的 gcc 版本解决了这个问题
sudo add-apt-repository ppa:ubuntu-toolchain-r/test
sudo apt-get 更新
sudo apt-get install gcc-5 g++-5
sudo update-alternatives --install/usr/bin/gcc gcc/usr/bin/gcc-5 60 --slave/usr/bin/g++ g++/usr/bin/g++-5
/p>
希望这对您有所帮助。
关于linux - Luarocks 安装异步失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/48940431/
是否有可用的 API/命令,以便我可以检查可用的最新版本的 rock 是什么?类似于 npm info xxx。 我能找到的最好的是luarocks search xxx;希望有一个更好的端点可以提供
我对使用 luarocks 之类的东西来安装库还很陌生,我遇到了一个问题,我不知道在安装 Lapis 的依赖项时如何解决。 如您所见,我没有为 Lapis 安装任何依赖项(我假设它们会在我尝试下载 L
使用 Luarocks,我遵循了 Creating a rock 上的教程.但是,我很难创建一个包含多个文件的包。当我的包分布在多个文件中时,我需要做哪些与教程不同的事情? 示例 - 一个文件 假设我
我安装手电筒如下 http://torch.ch/docs/getting-started.html 但是当我使用 luarocks 安装库时,比如 itorch,我命令 luarocks insta
使用 Luarocks,我遵循了 Creating a rock 上的教程.但是,我很难创建一个包含多个文件的包。当我的包分布在多个文件中时,我需要做哪些与教程不同的事情? 示例 - 一个文件 假设我
在 luarocks install lyaml 上我收到以下错误: 错误:找不到 YAML 的预期文件 libyaml.a、libyaml.so 或 libyaml.so.*——您可能必须在系统中安
免责声明:另一个用户在这里也有类似的问题,但从未得到回答。也许这次会有所不同。 我正在尝试安装Copas,但是依赖项之一是LuaSocket。但是,当我尝试安装LuaSocket时,出现以下错误: s
我正在研究 Debian 稳定版 Linux。我通过命令安装了 luafilesystem 模块: luarocks --local install luafilesystem 但是,在lua源文件中
我正在尝试使用 luarocks 安装 numlua: luarocks make numlua-0.3-1.rockspec 但出现以下错误: /usr/bin/ld: numlua.o: relo
各位程序员大家好, 我开始学习lua了。从自述文件中,我必须安装 luarocks 的“显示”,而问题出现了。当我输入“luarocks install display”时, Installi
我试图要求我使用 luarocks 下载的模块 require "lualogging" 但是lua(和我!)找不到这个模块下载到哪里。这是我所做的 我已经使用 apt-get 安装了 luarock
lua -e "print(package.path)" ./?.lua;/usr/share/lua/5.1/?.lua;/usr/share/lua/5.1/?/init.lua;/usr/lib
我有以下 luarocks: package = "project-name" version = "1.0-1" source = { url = "..." } description =
LuaRocks 忽略 rockspec 中的模块名称并使用文件名是否正常? build = { type = "builtin", modules = { apricot =
我正在阅读这里的说明:https://github.com/sixin-zh/mpiT 用于安装 EASGD 包。 当我执行 luarocks make mpit-mvapich-1.rockspec
我按照以下说明在我的 windows xp(32 位)系统中安装了 luarocks http://luarocks.org/en/Installation_instructions_for_Wind
操作系统:Linux Ubuntu 服务器 18.04 我用 luarocks install hdf5 安装了 hdf5并收到此错误: /lua/5.1/hdf5/ffi.lua:71: Unsup
我安装了 luarocks: $ sudo apt-get install luarocks 我通过 luarocks 安装 lua-cjson: $sudo luarocks install lua
在 NodeJS/NPM 中,您可以创建一个 package.json并运行 npm install将所有依赖项安装到项目中的文件夹中:./node_modules . (一个项目可以是一个应用程序或
我的电脑环境是: Win7Pro 64位 VS2015 LuaForWindows_v5.1.5-52.exe luarocks-2.4.4-win32 mysql-installer-communi
我是一名优秀的程序员,十分优秀!