我按照这个链接来构建LibreOffice:https://blog.documentfoundation.org/blog/2019/07/09/start-developing-libreoffice-download-the-source-code-and-build-on-windows/
在执行第8步时,我在Cygwin shell中运行./autogen.sh,它给出了以下错误:
$src_path不能包含空格,但它是'$src_path‘。(这是autogen.sh代码中的第135行)
为了删除错误,我删除了用户名中的空格,它位于这个位置-C:\cygwin64 64\home。它以某种方式在家里创建了两个用户名,一个有空格,没有空格。无论如何,我继续说下去,因为所有所需的文件都在用户名中,没有空格。在转到正确的目录(即没有空格的用户名)后,我在Cygwin中运行了./autogen.sh,但随后出现了以下错误:“无法找到al.exe作为/al.exe”(它显示错误位于autogen.sh的第296行)
我以为我做错了什么并试图撤销这些事情。
因此,我再次介绍了用户名中的空格,它合并了两个用户名(它将用户名与空格合并,没有空格)。
然后我从https://github.com/LibreOffice/core/blob/master/autogen.sh下载了./autogen.sh的原始文件,并注释掉了第135行:"die "$src_path不能包含空格,但它是'$src_path'.“if ($src_path =~ /)”
然后我再次运行./autogen.sh,它给出了以下错误:
./autogen.sh: line 1: $':\r': command not found
aclocal-1.16: error: non-option arguments are not accepted: 'Khare/libreoffice/m4'.
aclocal-1.16: Try '/usr/bin/aclocal-1.16 --help' for more information.
Failed to run aclocal at ./autogen.sh line 196.我被卡住了。谁来帮帮忙。
发布于 2020-07-04 15:01:47
https://stackoverflow.com/questions/62700322
复制相似问题