当我尝试编译 MikTex 时出现编译错误

当我尝试编译 MikTex 时出现编译错误

我已经安装了运行命令所需的所有依赖项cmake -G "Unix Makefiles"。该命令执行成功。接下来,我运行make命令,但出现以下错误:

In file included from /home/hubert/Pobrane/miktex-2.9-2016-08-17/Programs/DviWare/dvipdfm-x/source/dpxfile.c:39:0:
/home/hubert/Pobrane/miktex-2.9-2016-08-17/Programs/DviWare/dvipdfm-x/source/dpxfile.c: In function ‘dpx_create_temp_file’:
/home/hubert/Pobrane/miktex-2.9-2016-08-17/Programs/DviWare/dvipdfm-x/source/dpxfile.c:827:15: error: ‘_MAX_PATH’ undeclared (first use in this function)
     tmp = NEW(_MAX_PATH + 1, char);
               ^
/home/hubert/Pobrane/miktex-2.9-2016-08-17/Programs/DviWare/dvipdfm-x/source/mem.h:37:50: note: in definition of macro ‘NEW’
 #define NEW(n,type)     (type *) new(((uint32_t)(n))*sizeof(type))
                                                  ^
/home/hubert/Pobrane/miktex-2.9-2016-08-17/Programs/DviWare/dvipdfm-x/source/dpxfile.c:827:15: note: each undeclared identifier is reported only once for each function it appears in
     tmp = NEW(_MAX_PATH + 1, char);
               ^
/home/hubert/Pobrane/miktex-2.9-2016-08-17/Programs/DviWare/dvipdfm-x/source/mem.h:37:50: note: in definition of macro ‘NEW’
 #define NEW(n,type)     (type *) new(((uint32_t)(n))*sizeof(type))
                                                  ^
Programs/DviWare/dvipdfm-x/CMakeFiles/MiKTeX209-dvipdfmx.dir/build.make:206: polecenia dla obiektu 'Programs/DviWare/dvipdfm-x/CMakeFiles/MiKTeX209-dvipdfmx.dir/source/dpxfile.c.o' nie powiodły się
make[2]: *** [Programs/DviWare/dvipdfm-x/CMakeFiles/MiKTeX209-dvipdfmx.dir/source/dpxfile.c.o] Błąd 1
CMakeFiles/Makefile2:3759: polecenia dla obiektu 'Programs/DviWare/dvipdfm-x/CMakeFiles/MiKTeX209-dvipdfmx.dir/all' nie powiodły się
make[1]: *** [Programs/DviWare/dvipdfm-x/CMakeFiles/MiKTeX209-dvipdfmx.dir/all] Błąd 2
Makefile:149: polecenia dla obiektu 'all' nie powiodły się
make: *** [all] Błąd 2

sudo make当我尝试使用,make install和编译 MikTex 时,我也会收到此错误sudo make install。我在 Toshiba Satellite C660D-102 计算机上安装了 Linux Mint 18 Sarah 64 位系统。谁能帮我?

答案1

输出表明变量 _MAX_PATH 未声明。你声明了吗?如果没有,你必须这样做。简单的逻辑。如果不告诉程序它的值是什么以及值的类型,就不能给函数一个变量。如果不是这种情况,请发布您的代码。

相关内容