관심있는 것들 정리

M1 Macbook에서 Emacs에 ruby를 사용하기 위한 간단 설정 본문

utility 사용법/emacs

M1 Macbook에서 Emacs에 ruby를 사용하기 위한 간단 설정

내공강화 2021. 4. 24. 21:30

기본적인 ruby 사용을 위한 설정은 다음 페이지에 잘 정리가 되어 있다

worace.works/2016/06/07/getting-started-with-emacs-for-ruby/

 

Getting Started with Emacs for Ruby

Getting Started with Emacs for Ruby 07 Jun 2016 Lately I’ve been gradually drawing a few students at Turing into the Emacs fold. Along the way I’ve been thinking about what is needed for a minimal but sufficient Emacs setup for working with Ruby code.

worace.works

Emacs는 brew를 이용하여 다운 받지 않고, Universal binary를 다음 사이트에서 다운 받아 설치하여 사용하였다.

emacsformacosx.com

 

GNU Emacs For Mac OS X

 

emacsformacosx.com

여기서, 문제가 되는 것은

1. seeing is believing을 설정할 때인데, rbenv를 이용해 ruby를 설치하거나 gem을 설치할 때, 에러가 발생한다는 점이다. 인터넷에 여러가지 꼼수가 있지만, sudo를 사용해야 하거나 로제타를 이용한 방법이라 여기서는 관련해서는 언급을 하지 않는다. 없어서 못 쓸 기능은 아니니 나중에 m1용으로 안정화되었을 때 설치하면 될 것 같다.

2. security 문제로, inf-ruby 수행 시 insecure writable 에러로 계속 irb 실행이 되지 않는다. 이 경우 다음 페이지를 참조하여, writable 에러가 발생하는 디렉토리 몇곳에 대해 권한 조정을 해 주면 된다. 시스템 디렉토리인 경우, 부담스럽지만, /Applications/Emacs.app 아래 디렉토리들에 대해 발생하는 문제이므로, 큰 부담없이 수행해주면 된다.

stackoverflow.com/questions/3952243/warning-insecure-world-writable-dir-usr-local-bin-in-path-mode-040777

 

warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777

Every time I run this command rails server: warning: Insecure world writable dir /usr/local/bin in PATH, mode 040777 I searched for a solution here and they said to type: chmod go-w /usr/loca...

stackoverflow.com

 

반응형