我正在尝试使用GNU make安装emacs ESS。 我按照以下的ESS安装说明进行操作 链接:
第2步和第3步:
http://ess.r-project.org/Manual/ess.html#Installation
对于每个步骤,我在使用make时遇到错误: 以下是每个步骤的说明和错误消息:
第一条指示:
我的行动:
C:\Program Files\ESS\ess-17.11>make
系统讯息:
cd etc; make all
make[1]: Entering directory `/cygdrive/c/Program Files/ESS/ess-17.11/etc'
make[1]: Nothing to be done for `all'.
make[1]: Leaving directory `/cygdrive/c/Program Files/ESS/ess-17.11/etc'
cd lisp; make all
make[1]: Entering directory `/cygdrive/c/Program Files/ESS/ess-17.11/lisp'
emacs -batch -no-site-file -no-init-file -l ./ess-comp.el -f batch-byte-compile ess-custom.el
emacs: not found
make[1]: [ess-custom.elc] Error 127
make[1]: Leaving directory `/cygdrive/c/Program Files/ESS/ess-17.11/lisp'
make: [all] Error 2
第二条指示:
我的行动:
C:\Program Files\ESS\ess-17.11>make install
系统讯息:
cd etc; make install
make[1]: Entering directory `/cygdrive/c/Program Files/ESS/ess-17.11/etc'
mkdir -p /usr/share/emacs/etc/ess/icons
mkdir -p /usr/share/emacs/etc/ess/ESSR/R
cp -p .IS.RELEASE git-ref *.S sas-keys.* ess-sas-sh-command *.jl /usr/share/emacs/etc/ess
cp -p icons/*.xpm /usr/share/emacs/etc/ess/icons
cp -p ESSR/LOADREMOTE ESSR/VERSION /usr/share/emacs/etc/ess/ESSR
cp -p ESSR/R/*.R ESSR/R/.*.R /usr/share/emacs/etc/ess/ESSR/R
chmod +x /usr/share/emacs/etc/ess/ess-sas-sh-command
chmod: not found
make[1]: *** [install] Error 127
make[1]: Leaving directory `/cygdrive/c/Program Files/ESS/ess-17.11/etc'
make: *** [install] Error 2
我很感激您使用make安装ESS的帮助。
由于 圣拉斐尔
答案 0 :(得分:2)
您正尝试在Windows命令下执行,这些命令适用于Linux环境。 具体来说,您的安装失败的行如下:
emacs -batch -no-site-file -no-init-file -l ./ess-comp.el -f batch-byte-compile ess-custom.el
emacs: not found
和
chmod +x /usr/share/emacs/etc/ess/ess-sas-sh-command
chmod: not found
Windows下没有chmod
命令。以下是cmd等效项:https://www.cyberciti.biz/tips/windows-change-access-permissions-from-the-command-line.html
您提供的ESS手册建议采用以下方法:
Windows和macOS用户注意事项:最简单的方法 在您的机器上安装Emacs是通过下载Emacs二进制文件 文森特古勒; Emacs Modified for macOS或Emacs Modified for Windows.
我还建议你安装Emacs Modified for Windows,因为在windows下安装make会太困难/太昂贵 - 几乎不可能。