라벨이 Windows인 게시물 표시

[Windows] terminal에서 wget, curl을 이용하여, file download 해보자!

Windows에서 wget으로 외부 library 혹은 package를 command line으로 설치하기 순서 1. wget 설치 [관리자 모드] choco install -y wget 2. curl 설치 (Windows 11에서는 curl을 사용할 수 있으나, 최신으로 사용하기 위해) [관리자 모드] choco install -y curl * 주의: "C:\Windows\System32\curl.exe"이 Chocolatey보다 우선이기 때문에, PATH를 "C:\ProgramData\chocolatey\bin"가 "C:\Windows\System32"보다 우선하도록 변경하면 해결된다. (선택적) 3. jq 설치 [관리자 모드] choco install -y jq 4. bsdtar 설치 ( libarchive 설치) 4.1 파일 다운로드받기 wget -Url https://libarchive.org/downloads/libarchive-v3.6.2-amd64.zip -OC:\Temp\libarchive-v3.6.2-amd64.zip 4.2 적당한 위치에 libarchive-v3.6.2-amd64.zip를 압축해제 ("libarchive\...") 4.3 "libarchive\bin"를 path에 등록 5. 예시 시험하기 예) 참고  Stack overflow  예시 wget -qO-  https://plugins.jetbrains.com/files/$( curl https://plugins.jetbrains.com/api/plugins/4415/updates | jq -r '.[0].file') | bsdtar -xvf- -C "%APPDATA%\JetBrains\IntellijIdea2023.1\plugins"

[python] Windows에서 Python/ Pip 설치

이미지
Python을 Windows에서 설치해보자 설치 방법 #1:  chocolate 를 이용하면, 조금 더 편하게 설치할 수 있다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 C:\Users\ * * * > choco install python Chocolatey v1. 4. 0 Installing the following packages: python By installing, you accept licenses  for  the packages. Progress: Downloading python3  3. 11. 3. ..  100 % Progress: Downloading python311  3. 11. 3. ..  100 % Progress: Downloading vcredist2015  14. 0. 24215. 20170201. ..  100 % Pr...

[Windows] Chocolatey upgrade

Chochlatey upgrade  절차는 아주 간단하다. Windows Terminal (혹은 Command LIne)에서, 아래와 같이 싫행하면 된다. 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 C:\Users\ * * * > choco upgrade chocolatey  - y4 Chocolatey v1. 2. 1 Upgrading the following packages: chocolatey By upgrading, you accept licenses  for  the packages.   You have chocolatey v1. 2. 1  installed. Version  1. 4. 0  is available based on your source(s). Progress: Downloading chocolatey  1. 4. 0. ..  100 %   chocolatey v1. 4. 0 chocolatey package files upgrade completed. Performing other installation steps. Creating ChocolateyInstall as an environment variable (targeting  'Machine' )   Setting ChocolateyInstall ...

[flutter] [✗] Windows Version (Unable to confirm if installed Windows version is 10 or greater)

 문제 flutter doctor 했을 때, [✗] Windows Version (Unable to confirm if installed Windows version is 10 or greater) 원인 Windows version을 알아올 수 없다. flutter 3.7.x 까지는 "systeminfo"로 부터 "OS Version"을 추출하는데, 영어를 제외한 운영체제에 대한 배려가 없다. 그래서, 그 값을 추출하지 못하는 것이다. 해결법 flutter channel stable 아닌, naughty 급 (master, dev, 등) 으로 바꿈 (개인적으로 비추) flutter channel master 오류를 무시 (실제 아무 상관없다) "...\flutter\packages\flutter_tools\lib\src\windows\windows_version_validator.dart" 파일, 아래 줄 참고 const String kWindowsOSVersionSemVerPattern =     r'^(OS Version:\s*)([0-9]+\.[0-9]+\.[0-9]+)(.*)$';

[flutter] "Error: Unable to find git in your PATH." 문제 해결 (MS Windows)

문제 Error: Unable to find git in your PATH. 혹은, 프로세스가 그냥 종료가 되어 버림 해결법 command line 을 administrator mode로 실행해서 해본다. 필요한 PATH를 등록한다. C:\Windows\System32 C:\Windows\Wbem C:\Windows\System32\WindowsPowerShell\v1.0 C:\Windows\System32\OpenSSH C:\Program Files\Git\cmd C:\Program Files\Git\bin C:\Program Files\Git\mingw64\bin C:\flutter\bin git 을 새로 설치한다. flutter를 새로 설치한다. git의 "safe. Directory" 설정을 맞춰 준다. git config --global --add safe.directory '*' <= 이 경우, 전체인데, 어디가 빠진 곳인지 모를 경우, 이렇게 하면 해결된다.

NPM/Yarn script를 Platform(Windows, macOS, linux 등)으로 구분하여 동작하기

 NPM/Yarn script를 Platform(Windows, macOS, linux 등)으로 구분하여 동작하기 Platform이 다르면, 호출 명령이 차이가 있는 경우가 있고, path delimeter('⧵', '/') 문제가 종종 발생한다. - package.json ... "script": { "build": "cd android && ./gradlew assembleDebug", // Platform별로 하려면 "build.windows": "cd android && .\\gradlew assembleDebug", // Windows "build.macOS": "cd android && ./gradlew assembleDebug", // macOS "build.linux": "cd android && ./gradlew assembleDebug", // linux ... }, ... 위에서, "npm run build"를 Windows 에서 호출하면,  ... '.'은(는) 내부 또는 외부 명령, 실행할 수 있는 프로그램, 또는 배치 파일이 아닙니다. 와 같은, 오류가 발생하게 된다. 반대로, macOS/Linux에서는 문제 없이 실행될 것이다. 이를 문제 없이, Windows에서 호출하려면, "npm run build.windows"처럼 해줘야 하는데, 이는 굉장히 불편하고 복잡하다. 이를 해결하기 위해서, 좋은 방법 중 하나가, " run-script-os "를 사용하는 것을 추천한다. 아래와 같이 하면 된다. 1. run-script-os를 추가 (global ("...