emacs에서 tramp 사용 중 tramp-remote-path 가 적용이 안될때
      글쓴이: madman93 / 작성시간: 수, 2010/08/18 - 12:19오후    
  
  Emacs        : NTEmacs 23.1.50.1
Tramp Version: 2.1.17-pre
Tramp method : plink
.emacs tramp  설정 값 
(add-to-list 'tramp-remote-path "/usr/gnutools/bin") (add-to-list 'tramp-remote-path "/usr/gnutools/ccache")
or
(setq tramp-remote-path 
         (append '("/usr/gnutools/bin" 
                        ) tramp-remote-path))별의 별 방법을 다 해 봤지만 무슨 문제인지 알 도리가 없다.
직접 tramp.el 을 수정하도록 한다.
(defun tramp-set-remote-path (vec)
  "Sets the remote environment PATH to existing directories.
I.e., for each directory in `tramp-remote-path', it is tested
whether it exists and if so, it is added to the environment
variable PATH."
  (tramp-message vec 5 (format "Setting $PATH environment variable"))
  (tramp-send-command
   vec (format "PATH=%s:/usr/gnutools/bin:/usr/gnutools/ccache; export PATH"
           (mapconcat 'identity (tramp-get-remote-path vec) ":"))))
  ;; (tramp-send-command
  ;;  vec (format "PATH=%s; export PATH"
  ;;          (mapconcat 'identity (tramp-get-remote-path vec) ":"))))
 
<code>
 
이렇게 수정을 하고 나서
 
M-x byte-compile-file 을 통해서 elc 파일로 만들어 주면 끝이다.Forums: 


댓글 달기