๋ณธ๋ฌธ ๋ฐ”๋กœ๊ฐ€๊ธฐ
DART APP ๊ฐœ๋ฐœ

DART ๊ฐœ๋ฐœ ํ™˜๊ฒฝ ์„ธํŒ…ํ•˜๊ธฐ (+ brew ์—๋Ÿฌ ํ•ด๊ฒฐ)

by ๋„์บ๋ฆฌ๐Ÿฑ 2024. 1. 3.
๋ฐ˜์‘ํ˜•

 

https://dart.dev/get-dart์‚ฌ์ดํŠธ์˜

get Dart ์— ๋‚˜์˜ค๋Š” ๋ช…๋ น์–ด ๋Œ€๋กœ ์ง„ํ–‰ํ•˜๋ฉด๋จ.

 

macOs ๊ฐ™์€ ๊ฒฝ์šฐ ์•„๋ž˜ ๋ช…๋ น์–ด ์น˜๋ฉด ๋จ.

$ brew tap dart-lang/dart
$ brew install dart

 

 

๊ทผ๋ฐ, ์ตœ๊ทผ์— x-code๋ฅผ ์‚ญ์ œ ํ–ˆ์—ˆ๋˜ ๊ฑธ ๊นœ๋นก ํ–ˆ๋‹ค. ๊ทธ๋ž˜์„œ ์•„๋ž˜์™€ ๊ฐ™์€ ์—๋Ÿฌ๋ฅผ ๋งŒ๋‚ฌ๋‹ค.

MacBookPro ~ % brew tap dart-lang/dart
Error: Git is unavailable
Error: 'git' must be installed and in your PATH!
Error: Git is unavailable

 

 

๋ฌธ์ œ๋ฅผ ์ง„๋‹จํ•˜๊ณ , ํ•˜๋ผ๋Š”๋Œ€๋กœ ํ•ด์คฌ๋‹ค. 

โบ ) brew doctor : homebrew์™€ ๊ด€๋ จ๋œ ๋ฌธ์ œ๋ฅผ ์ง„๋‹จํ•˜๊ณ  ํ•ด๊ฒฐํ•ฉ๋‹ˆ๋‹ค.

๊ทธ๋ž˜์„œ brew install git , xcode-select --install  ์ˆ˜ํ–‰.

MacBookPro ~ % brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

์ƒ๋žต
Warning: Git could not be found in your PATH.
Homebrew uses Git for several internal functions, and some formulae use Git
checkouts instead of stable tarballs. You may want to install Git:
  brew install git

Warning: No developer tools installed.
Install the Command Line Tools:
  xcode-select --install

Warning: Unbrewed header files were found in /usr/local/include.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.

 

 

 

๊ทธ๋ฆฌ๊ณ  ์ž˜ ์„ค์น˜๋˜์—ˆ๋‹ค.

 

% brew install dart

==> Fetching dart-lang/dart/dart

==> Downloading https://storage.googleapis.com/dart-archive/channels/stable/release/3.2.6/sdk/dart

########################################################################################### 100.0%

==> Installing dart from dart-lang/dart

==> Caveats

Please note the path to the Dart SDK:

  /opt/homebrew/opt/dart/libexec

==> Summary

๐Ÿบ  /opt/homebrew/Cellar/dart/3.2.6: 1,022 files, 571.7MB, built in 10 second

 

 

๊ทธ๋ฆฌ๊ณ  vscode ์—์„œ dart extension์„ ์„ค์น˜ํ•˜๊ณ  dart ์–ธ์–ด ์—ฐ์Šต์„ ์‹œ์ž‘ํ•œ๋‹ค.

๋ฐ˜์‘ํ˜•

๋Œ“๊ธ€