首先,如果有人已经提出了这个问题,我很抱歉,在这种情况下,请将链接粘贴到此处,因为我没有找到任何内容。我正在学习 vagrant,使用 virtualbox 我在运行虚拟机时没有问题,但如果我想使用 VMware 作为提供程序。我遇到此消息,但找不到摆脱此问题的方法。我认为一切都配置良好,但显然有些问题。
当我启动时vagrant up --provider=vmware_desktop,我收到以下错误消息:
Vagrant encountered an unexpected communications error with the
Vagrant VMware Utility driver. Please try to run the command
again. If this error persists, please contact support@hashicorp.com
Run Code Online (Sandbox Code Playgroud)
我目前使用的是 Fedora 35
Operating System: Fedora Linux 35 (Workstation Edition)
Kernel: Linux 5.17.5-200.fc35.x86_64
Architecture: x86-64
Run Code Online (Sandbox Code Playgroud) 我在网上没有找到答案,如果有的话请链接...
#include <stdio.h>
int main(){
FILE*fp;
char arr[4];
printf("Opening...\n");
fp=fopen("slide.txt", "r");
printf("Opened\n");
if(fp==NULL){
printf("No such file\n");
return 1;
}
fscanf(fp, "%s", arr);
printf("Printing...\n");
printf("%s\n", arr);
printf("Printed\n");
printf("Closing...\n");
fclose(fp);
printf("Closed\n");
return 0;
}
Run Code Online (Sandbox Code Playgroud)
文件内容:
ciao
Run Code Online (Sandbox Code Playgroud)
我的输出:
Opening...
Opened
Printing...
ciao
Printed
Closing...
Segmentation fault (core dumped)
Run Code Online (Sandbox Code Playgroud)