简体   繁体   English

在远程计算机上运行emacs make install时出错

[英]Error when running emacs make install on remote machine

I am trying to install emacs on a machine that I'm accessing through ssh. 我正在尝试在通过ssh访问的计算机上安装emacs。 I downloaded the emacs-24.5.tar.gz which I transferred to the root directory of my remote machine. 我下载了emacs-24.5.tar.gz,并将其转移到远程计算机的根目录中。

I ran the ./configure command and then navigated to the emacs-24.5 folder and ran the make install command 我运行了./configure命令,然后导航到emacs-24.5文件夹并运行了make install命令

I unfortunately ran into this error 不幸的是我遇到了这个错误

/bin/mkdir: cannot create directory `/usr/local/share/icons': Permission denied
/usr/bin/install: cannot create regular file `/usr/local/share/icons/hicolor/128x128/apps/emacs.png': No such file or directory
make: *** [install-etc] Error 1

How do I get emacs working on the remote machine now? 现在如何使emacs在远程计算机上工作?

Your description of what steps you took make it a little difficult to know if you missed anything. 您对所采取的步骤的描述使您很难知道是否错过了任何东西。 For example, I'm assuming you ran tar on the tarball before you ran configure or make? 例如,我假设您在配置或制作之前先在​​tar包上运行过tar? Also, little concerned when you say you ran configure and THEN navigated to the 24.5 directory? 另外,当您说您运行了configure并且然后导航到24.5目录时,您几乎不用担心吗? You should be running make install from the same directory/folder where you ran configure. 您应该从配置时所在的目录/文件夹中运行make install。 You also didn't indicate you had run make bootstrap. 您也没有表明您已经运行了make bootstrap。

The steps should be 步骤应该是

  • scp emacs-24.5.tar.gz user@remote-host:~ scp emacs-24.5.tar.gz user @ remote-host:〜
  • ssh user@remote-host ssh user @ remote-host
  • tar xzf emacs-24.5.tar.gz 焦油xzf emacs-24.5.tar.gz
  • cd emacs-24.5 cd emacs-24.5
  • ./configure 。/配置
  • make bootstrap 使引导
  • sudo make install 须藤使安装
  • Notice in the output from the make install there are directions on an additional command you need to run to set movemail permissions. 请注意,在make install的输出中,有一些关于您需要运行以设置movemail权限的附加命令的说明。 This command also needs to be run under sudo 该命令也需要在sudo下运行

I'm assuming your not ssh'ing intot the remote host as root as this would be a bad practice. 我假设您不以root用户身份将远程主机插入,因为这将是一个不好的做法。 This means that when you do the make install, you need to run the process with root privileges, so you need to use sudo. 这意味着在进行make install时,需要以root特权运行该进程,因此需要使用sudo。

You should also check the output from configure and make sure there are no errors. 您还应该检查configure的输出,并确保没有错误。 Configure will also list emacs features which are turned on/off depending on whether you have various supporting libraries installed. 配置还将列出emacs功能,这些功能根据您是否安装了各种支持库而被打开/关闭。 If you scroll the terminal output from configure up a couple of pages, you will see the printout. 如果从配置了几页的页面滚动终端输出,您将看到打印输出。 If there are features listed with a 'no' which you want/expect, you will need to go through the documentation and work out which additional supporting libraries you need. 如果您想要/期望的功能标有“否”,则需要阅读文档并确定需要哪些其他支持库。 However, most of the time, with modern linux distros setup for desktop use, everything will likely already be there. 但是,大多数时候,随着现代Linux发行版安装在桌面上,一切都可能已经存在。 Might be different on a server and I can't speak about Windows and what it might require. 服务器上可能会有所不同,我无法谈论Windows及其可能需要的内容。

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

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