读取文件<path>时出错:没有这样的文件或目录@ rb_sysopen <path

时间:2016-10-26 17:15:58

标签: ruby jekyll

=“”

我正在使用Windows 10而且我一直有这个问题使用jekyll。似乎是jekyll社区中一个持续存在的问题,但我找不到解决问题的答案。有没有人找到任何好的解决方案?编辑:我也在使用Jekyll 3.3.0

repo - https://github.com/dkbollig/Drago-CMS

#include <iostream>

using namespace std;

int main()
{
    int a, b, d;

    cout << "Hello guys" << endl;

    cout << "Bucky's Student21 here" << endl;
    cout << "today we are going to divide two numbers, and going to check whether one is divisible by other or not \n";

    cout << "If the number 1 is divisible by number 2, i will recognize it \n";

    cout << "enter number 1 \n";
    cin >> a;

    cout << "enter number 2 \n";
    cin >> b;

    d = a % b;
    if (d = 0) {
        cout << "number 1 is divisible by number 2 \n";
    }
    else {
        cout << "number 1 is not divisible by number 2 \n ";
    }
    cout << "Hence now as you got to know whether the number 1 is divisible by number 2 or not \n";

    return 0;
}

谢谢!

德里克

Error

2 个答案:

答案 0 :(得分:0)

可能修复:

这些文件和设置可能会显示真正的错误,但您似乎已经从某处引用错误路径的错误消息:

C:/repo/drago-cms/_layouts/post.html
C:/repo/Drago-CMS/repo/drago-cms/_layouts/post.html

答案 1 :(得分:0)

想出来了。在命令行中我使用了像这样的

的cd命令
cd repo/projectname --> doesn't work

我的实际文件夹名称是“ProjectName”。 jekyll命令是大小写敏感的,如果它不完全相同则不起作用。

cd repo/ProjectName --> works