emacs 24 on windows 7, tramp cannot find plink program

孤街醉人 提交于 2019-12-04 12:43:43

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

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

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

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.

I was able to resolve this and I did not have to install cygwin.

Try adding the path where putty was installed to your exec-path variable in emacs. Execute the following elisp code in emacs or put it in your .emacs file. Make sure the slashes are forward, not backslashes, as Emacs and Windows use different conventions.

(add-to-list 'exec-path "C:/Program Files (x86)/PuTTy")

check what exec-path is set to by typing C-h v exec-path

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!