Error when running ./bin/buck build --show-output buck
When running ./bin/buck build --show-output buck
Shivs-MacBook-Pro:buck shivkumarmalik$ ./bin/buck build --show-output buck Warning: JAVA_HOME is set to "/Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home", which looks like a Java 11 path, but Buck requires Java 15. Ignoring JAVA_HOME. Set BUCK_RESPECT_JAVA_HOME to 1 to disable this behavior. Building: finished in 6.2 sec (100%) 375/1851 jobs, 91 updated Total time: 6.2 sec Command failed with exit code 1.
stderr: : error: Source option 6 is no longer supported. Use 7 or later.
: error: Target option 6 is no longer supported. Use 7 or later.
Errors: 2. Warnings: 0.
When running <source_only_abi>.
When building rule //src/com/facebook/buck/jvm/java:fat-jar-main#source-only-abi.
Even brew install buck is failing Shivs-MacBook-Pro:buck shivkumarmalik$ brew install buck Updating Homebrew... ==> Auto-updated Homebrew! Updated 1 tap (homebrew/core). ==> New Formulae proj@7 ==> Updated Formulae Updated 77 formulae.
==> Installing buck from facebook/fb
==> Downloading https://github.com/facebook/buck/releases/download/v2021.01.12.01/buck-2021.01.12.01.yosemite.bottle.tar.gz
Already downloaded: /Users/shivkumarmalik/Library/Caches/Homebrew/downloads/2ab45ceec4daf7c5124e199210a577ad8db53a56c80456dd5f9847b020baa0ae--buck-2021.01.12.01.yosemite.bottle.tar.gz
==> Pouring buck-2021.01.12.01.yosemite.bottle.tar.gz
cp: /usr/local/Cellar/buck/./2021.01.12.01_1/bin/buck: Permission denied
Error: Failure while executing; cp -pR /private/tmp/d20210523-15358-1az8yo2/buck/. /usr/local/Cellar/buck exited with 1. Here's the output:
cp: /usr/local/Cellar/buck/./2021.01.12.01_1/bin/buck: Permission denied
[DONE] I have it problem. @skm1907
I was able to correct the links that show below
https://stackoverflow.com/questions/16432071/how-to-fix-homebrew-permissions
https://gist.github.com/irazasyed/7732946
the last problem, he tried to install, but failed, he has to remove the buck, and then try to add again doing the link step like this.