facebookarchive / fb-adb

A better shell for Android devices
Other
1.14k stars 128 forks source link

brew install fb-adb error on macOS 10.12.1 #52

Open zhaoyingx opened 7 years ago

zhaoyingx commented 7 years ago

~ $ brew install fb-adb ==> Using the sandbox ==> Downloading https://github.com/facebook/fb-adb/archive/1.4.4.tar.gz Already downloaded: /Users/zhaoying/Library/Caches/Homebrew/fb-adb-1.4.4.tar.gz ==> ./autogen.sh ==> ../configure --prefix=/usr/local/Cellar/fb-adb/1.4.4 Last 15 lines from /Users/zhaoying/Library/Logs/Homebrew/fb-adb/02.configure: checking the archiver (ar) interface... ar checking for ppoll... no checking for signalfd4... no checking for dup3... no checking for mkostemp... yes checking for kqueue... yes checking for pipe2... no checking for ptsname... yes checking for accept4... no checking for fopencookie... no checking for funopen... yes checking for clock_gettime... yes checking for execvpe... no configure: error: could not find Android cross-compiler for i686-pc-linux-android configure: error: ../../stub-x86/configure failed for stub-x86

READ THIS: https://git.io/brew-troubleshooting If reporting this issue please do so at (not Homebrew/brew): https://github.com/Homebrew/homebrew-core/issues

The whole configure log from /Library/Logs/Homebrew/fb-adb/02.configure is here: https://gist.github.com/liontree/8835fcb64b3147ef825dac31568bc4ab

Anybody could help me? Thanks:-)

TheRisK commented 7 years ago

does anyone know how to fix this issue? I'm having the same issue.

Moonbloom commented 7 years ago

I wasn't able to fix the issue by installing via Homebrew, so i ended up pulling the git master and compiling it locally, then copying the fb-adb executable to /usr/local/bin/ and using that. Worked perfectly fine.

The commands needed to compile it are in the README file.

I'm also running on 10.12.1.

Homebrew is still running 1.4.4 as the newest version, while the git master is using version 2.0.0. So there must have been some breaking changes somewhere that has been fixed in version 2.0.0.

jjhesk commented 7 years ago

I have the same error

configure: error: could not find Android cross-compiler for i686-pc-linux-android
configure: error: ../../stub-x86/configure failed for stub-x86
CNG commented 7 years ago

I had the same error on 10.12.2 (16C67), and then also got fb-adb installed by compiling it after jumping through some hoops that may or may not have been required if the Brew method worked. I needed to install the full Android Studio and Java SE Development Kit, and then I needed to run:

brew tap homebrew/dupes
brew install homebrew/dupes/make
brew install android-ndk
brew install python3
android update sdk --no-ui --filter 'platform-tools'

Several gigabytes of downloads later, fb-adb compiled.

0xff7 commented 7 years ago

Getting this error on 10.12.5

timxcode@MacBook-Pro ~ $ brew install fb-adb
Updating Homebrew...
==> Auto-updated Homebrew!
Updated 2 taps (caskroom/cask, homebrew/core).
==> New Formulae
dcm2niix
==> Updated Formulae
afl-fuzz                   jboss-forge                rebar@3
cargo-completion           jhipster                   riemann-client
consul                     latexila                   rust
dbhash                     leaps                      saxon
diff-so-fancy              libextractor               sphinx-doc
dnsmasq                    menhir                     sqldiff
fetch-crl                  mikutter                   sqlite
fibjs                      netpbm                     sqlite-analyzer
fontconfig                 node-build                 squid
freetds                    nspr                       unrar
geckodriver                openldap                   vim
getdns                     pgcli                      wine
gnutls                     phoronix-test-suite        xonsh
irssi                      pilosa
jansson                    pypy3
==> Deleted Formulae
snescom

Error: No available formula with the name "fb-adb"
==> Searching for a previously deleted formula...
Warning: homebrew/core is shallow clone. To get complete history run:
  git -C "$(brew --repo homebrew/core)" fetch --unshallow

Error: No previously deleted formula found.
==> Searching for similarly named formulae...
Error: No similarly named formulae found.
==> Searching taps...
Error: No formulae found in taps.