# spresense sdk install 詰まったこと ```bash= brew tap discoteq/discoteq brew install flock curl -L https://raw.githubusercontent.com/sonydevworld/spresense/master/install-tools.sh > install-tools.sh bash install-tools.sh ``` 出たエラー ```bash= x share/gcc-arm-none-eabi/samples/src/minimum/ x share/gcc-arm-none-eabi/samples/src/minimum/minimum.c x share/gcc-arm-none-eabi/samples/src/minimum/Makefile x share/gcc-arm-none-eabi/samples/src/fpin/ x share/gcc-arm-none-eabi/samples/src/fpin/Makefile x share/gcc-arm-none-eabi/samples/src/fpin/fpin.c x share/gcc-arm-none-eabi/samples/src/makefile.conf command tar vjxf gcc-arm-none-eabi-10.3-2021.10-mac.tar.bz2 --strip-components=1 -C /Users/haruto/spresenseenv/usr failed by Error. ``` install-tools.shの ``` run_progress() { if [ -n "$VERBOSE" ]; then "$@" if [ $? -ne 0 ]; then echo command "$@" failed. exit 1 fi else echo -n "=== $@ " errfile=$(mktemp) "$@" 2> "$errfile" | awk ' BEGIN {ORS=""} NR % 10 == 0 { print "."; fflush() } END { print "\n"}' result=$(grep -i 'err' "$errfile") if [ "$result" != "" ]; then cat "$errfile" rm -f "$errfile" echo command "$@" failed by Error. exit 1 fi rm -f "$errfile" fi } ``` を ``` run_progress() { if [ -n "$VERBOSE" ]; then "$@" if [ $? -ne 0 ]; then echo command "$@" failed. exit 1 fi else echo -n "=== $@ " errfile=$(mktemp) result=$(grep -i 'err' "$errfile") if [ "$result" != "" ]; then cat "$errfile" rm -f "$errfile" echo command "$@" failed by Error. exit 1 fi rm -f "$errfile" fi } ``` に変更したらインストールできた ``` haruto@IMBA ~ % bash install-tools.sh == Install base command line tools == Install additional tools == Install cross toolchain openocd-0.11.0-spr1-20230313-macosx.tar.bz2: OK === tar vjxf openocd-0.11.0-spr1-20230313-macosx.tar.bz2 --strip-components=1 -C /Users/haruto/spresenseenv/usr Installation is done. haruto@IMBA ~ % source ~/spresenseenv/setup ```
×
Sign in
Email
Password
Forgot password
or
By clicking below, you agree to our
terms of service
.
Sign in via Facebook
Sign in via Twitter
Sign in via GitHub
Sign in via Dropbox
Sign in with Wallet
Wallet (
)
Connect another wallet
New to HackMD?
Sign up