If you're getting this kind of error when running Node.js programs with binary dependencies that don't support M1 yet, e.g.:
$ yarn test
dyld[51175]: missing symbol called
dyld[51176]: missing symbol called| def reverseProxy = Action.async(parse.raw) { | |
| request: Request[RawBuffer] => | |
| // Create the request to the upstream server: | |
| val proxyRequest = | |
| WS.url("http://localhost:8887" + request.path) | |
| .withFollowRedirects(false) | |
| .withMethod(request.method) | |
| .withVirtualHost("localhost:9000") | |
| .withHeaders(flattenMultiMap(request.headers.toMap): _*) | |
| .withQueryString(request.queryString.mapValues(_.head).toSeq: _*) |
| /** | |
| * From a file that contains | |
| * doc_id w1 w2 w3 ... lines, separated by tabs | |
| * return an inverted index Map of w -> Set(doc_id) | |
| * | |
| * @param filename well isn't it obvious | |
| * @return Map[String,Set[String]] | |
| */ | |
| import scala.collection.immutable.Map |
Prereq:
apt-get install zsh
apt-get install git-coreGetting zsh to work in ubuntu is weird, since sh does not understand the source command. So, you do this to install zsh
wget https://github.com/robbyrussell/oh-my-zsh/raw/master/tools/install.sh -O - | zsh