简体   繁体   English

安装旧版本的Emacs(19.34)

[英]Installing older versions of Emacs (19.34)

I am having some trouble installing an older version of emacs (19.34) to run an old script. 我在安装旧版本的emacs(19.34)来运行旧脚本时遇到了一些麻烦。 Currently, I have downloaded the source code and tried to compile but I am getting some error which I don't seem to understand (there are some previous errors with line endings too, but they can be fixed). 当前,我已经下载了源代码并尝试进行编译,但是出现了一些我似乎不理解的错误(以前也有一些行尾错误,但可以修复)。

I am first running the ./configure script, then running 我首先运行./configure脚本,然后运行

gmake && gmake install

I am getting this error 我收到此错误

Producing `src/paths.h' from `src/paths.in'.
src/paths.h is unchanged
Producing `src/paths.h' from `src/paths.in'.
src/paths.h is unchanged
cd lib-src; gmake all  \
  CC='gcc' CFLAGS='-g -O' CPPFLAGS='' \
  LDFLAGS='' MAKE='gmake'
gmake[1]: Entering directory `/user/b/user1/emacs-19.34/lib-src'
gmake[1]: Nothing to be done for `all'.
gmake[1]: Leaving directory `/user/b/user1/emacs-19.34/lib-src'
cd src; gmake all  \
  CC='gcc' CFLAGS='-g -O' CPPFLAGS='' \
  LDFLAGS='' MAKE='gmake'
gmake[1]: Entering directory `/user/b/user1/emacs-19.34/src'
cd ../lwlib/; gmake -w
gmake[2]: Entering directory `/user/b/user1/emacs-19.34/lwlib'
gmake[2]: Nothing to be done for `all'.
gmake[2]: Leaving directory `/user/b/user1/emacs-19.34/lwlib'
CC='gcc' CFLAGS='-g -O' MAKE='gmake'
"C_SWITCH_X_SITE=-I/usr/openwin/include"
/bin/sh: C_SWITCH_X_SITE=-I/usr/openwin/include: not found
gmake[1]: *** [really-lwlib] Error 1
gmake[1]: Leaving directory `/user/b/user1/emacs-19.34/src'
gmake: *** [src] Error 2

I have checked that /usr/openwin/include is present in the server, and have manually added /usr/openwin/include to PATH and LD_LIBRARY_PATH. 我检查了服务器中是否存在/ usr / openwin / include,并已将/ usr / openwin / include手动添加到PATH和LD_LIBRARY_PATH。 Somehow, the Makefile is not picking it up. 不知何故,Makefile没有将其拾取。

The server config is SunOS 5.10, Generic January 2005. I do not have sudo access, but I have manually set the install path to my local home directory. 服务器配置为SunOS 5.10,Generic 2005年1月。我没有sudo访问权限,但已将安装路径手动设置为本地主目录。

Any suggestions? 有什么建议么?

Thanks in advance! 提前致谢!

Edit: Any suggestions that I could install Emacs 19.34 on the server without installing from source would be helpful too. 编辑:我可以在不从源代码安装的情况下在服务器上安装Emacs 19.34的任何建议也会有所帮助。

Where are the double quotes around this line coming from? 这条线的双引号来自哪里?

"C_SWITCH_X_SITE=-I/usr/openwin/include"

It looks like /bin/sh is complaining about this entire line "not found", rather than setting an environment variable as that line seems to be intended to do. 看起来/ bin / sh抱怨这整行“未找到”,而不是设置该行似乎打算这样做的环境变量。

If this line is not something you set yourself, then trying a different shell ( SHELL=/usr/local/bin/bash gmake for example) might work. 如果这行不是您自己设置的,则尝试使用其他shell(例如SHELL=/usr/local/bin/bash gmake )可能会起作用。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM