makefile - 在 Windows 10 中使用 Ubuntu 在 trec_eval 中尝试命令“make”或“Makefile”时出错
问题描述
当我在 Ubuntu Windows 10 上的 trec_eval v 8.1 中编写命令“make”或“Makefile”时,出现此错误:
make: gcc: Command not found
Makefile:33: recipe for target 'trec_eval' failed
make: *** [trec_eval] Error 127.
我尝试使用 trec eval 9 执行此操作,但出现此错误:segmentation fault (core dumped)
.
解决方案
你得到了一个gcc: Command not found
,因为 gcc 目前没有安装在 Ubuntu 中,所以使用以下命令安装它:
sudo apt update
sudo apt install make gcc
这将安装 gcc 的默认版本。要安装更新版本的 gcc,请sudo apt install gcc-8
改为运行。
推荐阅读
- python - 在 python 中将嵌套列表转换为列表理解时出现未定义错误
- python - 可疑文件操作:无法在我的 django 项目文件夹中配置媒体根目录和基本目录
- apache-camel - Apache Camel File 监视组件可以在远程文件位置上工作吗?
- pandas - 部分初始化的模块'datetime'没有属性'now
- html - 在 Angular 组件中通过 nativeElement.focus() 控制标签顺序
- excel - 循环工作表以整合数据
- flutter - 如何:检查 ListView 是否可滚动/是否大于屏幕
- spring-boot - 如何在 Spring Boot 中为现有 RabbitMQ 队列关闭自动队列声明?
- php - 检测和处理大于 post_max_size 的 POST 请求
- ffmpeg - 如何处理碎片化 mp4 容器中的单个片段?