nobiot / Zero-to-Emacs-and-Org-roam

Step by step guide from zero to installing and setting up Emacs and Org-roam on Windows 10

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Consider installing `clang` instead of `msys2`

vt52 opened this issue · comments

commented

## Install MSYS2
![](images/2021-08-07T145656.png)
![](images/2021-08-07T145709.png)
Run MSYS2 after installation completes.
![](images/2021-08-07T145907.png)
You can simply install `gcc` by typing:
pacman -S gcc
![](images/2021-08-07T150326.png)
You could update the package repository as instructed in the documentaion; you can do it but you don't have to.

In Windows 11, at least, the following worked for me (and feels a little less involved than MSYS2). From admin CMD prompt:

  1. winget install LLVM.LLVM
  2. set PATH=%PATH%;%PROGRAMFILES%\LLVM\bin
  3. (optional) where clang to verify clang is available
  4. run emacs from this prompt and proceed to "Install Org-roam in Emacs" phase -- emacsql-sqlite should compile fine...

Thank you. Do you need to do something to get winget working? Or every Windows 11 installation comes with it?

commented

looks like it's built-in to Windows 10 (build 1809 and newer) and Windows 11 [ref]

Okay, thank you. I’ll see if I have it. If it works, I’ll consider switching over. I’d also see if this way works for pdf-tools (msys2 works).