uber / nanoscope

An extremely accurate Android method tracing tool.
Apache License 2.0
1.25k stars 68 forks source link

brew install nanoscope error #91

Open lhjandroid opened 1 year ago

lhjandroid commented 1 year ago

It give an error message when run brew install nanoscope. Error: nanoscope: wrong number of arguments (given 1, expected 0) I have update the brew and the version is 3.6.2 and the os is mac. I don't know how to solve it

tricknology commented 1 year ago

I also have the same issue, well slightly different.

  1. When I tried to build it locally I had issues with connectivity to the registry.
  2. I found out it was my DNS (pi-hole and local)
  3. Once I disabled PiHole (whitelisting didn't work) I came to another error.:
  4. The libs in the Dockerfile script are missing / not found.

Fot the first error: unix:///var/run/docker.socket

https://gist.github.com/mipmip/1844353

`Your launch daemon com.apple.mDNSResponder.reloaded is not loaded properly. You can check this by entering sudo launchctl list | grep DNS. The result should yield something like this:

-   0   com.apple.mDNSResponderHelper.reloaded
108 0   com.apple.mDNSResponder.reloaded
108 is the pid and should differ on your system.

Check your com.apple.mDNSResponder.plist for errors with:

cat /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist

Then he goes on to say which ones to remove. If it's not clear in the link it's these:

He means: this ` Label

com.apple.mDNSResponder.reloaded
  <key>OnDemand</key>
<false/>`

snd this: 

`<key>InitGroups</key>
<false/>
 <key>com.apple.mDNSResponder</key>
    <true/>
        <key>com.apple.mDNSResponder.dnsproxy</key>
        <true/>`

Then:

sudo nano /private/var/db/com.apple.xpc.launchd/disabled.plist You may have to disable SIP to do so! <--- I did not, thank heavens.

Remove the mDNSResponder daemon from the launchctl database with:

   ` sudo launchctl remove com.apple.mDNSResponder.reloaded.` 

Re-add it with

   ` sudo launchctl load /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist`

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.mDNSResponder.plist sudo killall -HUP mDNSResponder

sudo killall -INFO mDNSResponder `

I haven't found a fix yet but just in case someone else goes through the same gauntlet I did.

This is the error I have now, hopefully I can drop in substitutes but the architecture is a bit worrisome because it's a pre-Apple silicon AOSP distr, though the machine itself should support it (or you can use Rosetta and the arch command but if those shared binaries don't support it then will have to find and complete those too! Fun..

E: Package 'gcc-multilib' has no installation candidate E: Unable to locate package g++-multilib E: Couldn't find any package by regex 'g++-multilib' E: Unable to locate package libc6-dev-i386 E: Unable to locate package lib32ncurses5-dev E: Unable to locate package lib32z-dev