Skip to content

Latest commit

 

History

History
139 lines (116 loc) · 9.13 KB

cygwin.md

File metadata and controls

139 lines (116 loc) · 9.13 KB

Keyword

cygwin windows as linux

Reference

상황/ 궁금증

  • command key 를 windows용으로 또 익히기 귀찮아서 linux 환경처럼 사용할 수 있는 cygwin설치
  • git SSH 사용해서 local pc와 server 연결해놓을 경우, 가상path 문제(로 짐작됨) 때문에 push가 안됨
  • [삽질중] SSH 제대로 읽어오기 위해
    • cygwin 기본 path windows와 같게 설정해보기
      • 같게 설정하면 한글이 와장창 다 깨진다
        • 인터넷에 나와있는 설정들은 왜 다 다르게 설명하지... 뭐가 맞는 건지 몰라서 이것저것 설정하다가
        • 설정이 엉망이 되어서 밀어버림

정리

Installation

  • 첫 install 후에도 setup~.exe (windows version에 따라 파일명 다름) 사용해 추가 plugin, package 설치
    • download 에러시에도 재시동해서 사용. pending tab에서 error난 package 들이 보임.
    • retry시에도 package download때문에 에러가 날 경우, 다른 mirror 에서 시도.
  • 환경변수 setting
  • ssh 사용 (cygwin 관리자모드로 실행해야함)
  • 주요 설치 plugin : gcc,g+, wget, patch, ruby,ruby-devel,rubygem, openssh, cron, vim, nano, tar, unzip
  • 설정파일 변경시, terminal종료 후 재시작(Run as Administrator) / 재부팅해야하는 경우도 있음!
  • package 설치시에 ~-devel 이 있음. 다른 package 관리하면서 compile해야할 경우가 많기때문에, 해당 package를 설치했더라도 오류가 나는 경우, devel package 핑요여부를 한번 더 체크해주는게 나음 stackoverflow - what-are-devel-packages

Gem setting

  $ gem install gollum
Building native extensions.  This could take a while...
ERROR:  Error installing gollum:
        ERROR: Failed to build gem native extension.

    current directory: /cygdrive/c/Users/ohahohah/cygwin/.rvm/gems/ruby-2.4.1/gems/charlock_holmes-0.7.5/ext/charlock_holmes
/cygdrive/c/Users/ohahohah/cygwin/.rvm/rubies/ruby-2.4.1/bin/ruby.exe -r ./siteconf20180205-3616-14j5mhk.rb extconf.rb
checking for -licui18n... no
which: no brew in (/cygdrive/c/Users/ohahohah/cygwin/.rvm/gems/ruby-2.4.1/bin:/cygdrive/c/Users/ohahohah/cygwin/.rvm/gems/ruby-2.4.1@global/bin:/cygdrive/c/Users/ohahohah/cygwin/.rvm/rubies/ruby-2.4.1/bin:/usr/local/bin:/usr/bin:/cygdrive/c/ProgramData/Oracle/Java/javapath:(중략))
checking for -licui18n... no


***************************************************************************************
*********** icu required (brew install icu4c or apt-get install libicu-dev) ***********
***************************************************************************************
*** extconf.rb failed ***
Could not create Makefile due to some reason, probably lack of necessary
libraries and/or headers.  Check the mkmf.log file for more details.  You may
need configuration options.
(이해 생략)

apt-cyg 설치 (optional)

  • apt-cyg : apt-get 처럼 cygwin에서 설치할 수 있음
  • cygwin 공식 installGUI (setupx86_~.exe)로 설치하는게 원칙이나, 검색해서 없는 패키지의 경우에 사용함.
  • apt-cyg github

home directory 바꾸기

SSH 설정변경

Etc

git

git commit
Vim warning: output is not to a terminal
Vim warning: input is not from a terminal

Vim

memo

Table of Contents

  * [Keyword](#keyword)
  * [Reference](#reference)
  * [상황/ 궁금증](#상황-궁금증)
  * [정리](#정리)
     * [Installation](#installation)
        * [Gem setting](#gem-setting)
        * [apt-cyg 설치 (optional)](#apt-cyg-설치-optional)
     * [home directory 바꾸기](#home-directory-바꾸기)
     * [SSH 설정변경](#ssh-설정변경)
     * [Etc](#etc)
     * [git](#git)
     * [Vim](#vim)
  * [memo](#memo)

Created by gh-md-toc