Windows 7上的emacs 24,流浪汉找不到plink程序 [英] emacs 24 on windows 7, tramp cannot find plink program

查看:212
本文介绍了Windows 7上的emacs 24,流浪汉找不到plink程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试将Emacs 24.2与Windows 7上的Tramp一起使用,以远程编辑Linux服务器上的文件.我安装了Putty Suit程序和OpenSSH.我还将腻子衣服中的plink.exe放入emacs 24文件夹下的bin文件夹中,并将文件夹emacs24/bin添加到PATH环境变量中.

I am trying to use Emacs 24.2 with Tramp on windows 7 to remotely edit files on a linux server. I installed the Putty suit program and OpenSSH. I also placed the plink.exe in the putty suit into the bin folder under the emacs 24 folder, and added the folder emacs24/bin into the PATH environment variable.

但是,当我尝试使用迷你缓冲区中的命令/username @ host:filename从emacs访问远程文件时,我从emacs中收到以下错误消息:plink无法识别为内部或外部命令.看来emacs找不到plink程序.但是,当我尝试在Windows cmd中运行plink时,它可以找到plink程序.另外,我可以在Windows cmd中SSH到远程服务器.

However, when I try to access the remote file from emacs with the command in the minibuffer: /username@host:filename, I get the following error message from emacs: plink is not recognized as an internal or external command. It seems that emacs cannot find the plink program. But, when I try to run plink in windows cmd, it can find the plink program. Also, I can ssh to the remote server in windows cmd.

谁能告诉我我的问题是什么?我需要安装cygwin使其工作吗?非常感谢.

Can anyone tell me what's my problem? Do I need to install cygwin to make it work? Thanks a lot.

推荐答案

要使plink正常运行,我必须将PuTTY路径添加到系统搜索路径中.

To get tramp with plink to work, I had to add my PuTTY path to my system search path.

在Windows 10上: 控制面板>>系统和安全>>系统>>高级系统设置>>环境变量

On Windows 10: control panel >> System & Security >> System >> advanced system settings >> enviroment variables

在PATH中,我附加了PuTTY路径:C:\ Program Files(x86)\ PuTTY

To PATH I appended the PuTTY path: C:\Program Files (x86)\PuTTY

我猜关键是在PowerShell或命令提示符下,您需要能够运行plink而无需指定路径.

I'm guessing the key is that from PowerShell or the command prompt, you need to be able to run plink without specifying the path.

这篇关于Windows 7上的emacs 24,流浪汉找不到plink程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆