Skip to content

Latest commit

 

History

History
66 lines (53 loc) · 2.18 KB

msys2_setup.org

File metadata and controls

66 lines (53 loc) · 2.18 KB

準備

  • MSYS2のインストール https://www.msys2.org/
  • C:\msys64\mingw64.exe のプロパティで、「管理者として実行」にチェックを入れる
  • C:\msys64\mingw64.ini を以下のように変更(シンボリックリンクの作成、WindowsのPath継承)
    #MSYS=winsymlinks:nativestrict
    #MSYS=error_start:mingw64/bin/qtcreator.exe|-debug|<process-id>
    #CHERE_INVOKING=1
    #MSYS2_PATH_TYPE=inherit
    MSYSTEM=MINGW64
        
    MSYS=winsymlinks:nativestrict
    #MSYS=error_start:mingw64/bin/qtcreator.exe|-debug|<process-id>
    #CHERE_INVOKING=1
    MSYS2_PATH_TYPE=inherit
    MSYSTEM=MINGW64
        
  • C:\msys64\etc\nsswitch.conf を以下のように変更(ホームディレクトリの変更)
    db_home: cygwin desc
        
    db_home: windows cygwin desc
        

パッケージインストール

pacman -Syu
pacman -Su

pacman -S \
       base-devel \
       git \
       mingw-w64-x86_64-ag \
       mingw-w64-x86_64-delta \
       mingw-w64-x86_64-emacs \
       mingw-w64-x86_64-gnupg \
       mingw-w64-x86_64-jq \
       mingw-w64-x86_64-toolchain \
       rsync \
       unzip \
       vim

パッケージグループ以外で明示的にインストールしたパッケージ一覧

pacman -Q -e | grep -v -f <(pacman -Q --group base-devel mingw-w64-x86_64-toolchain | cut -d' ' -f2)