Questions tagged [apple-m1]

NOTICE: Questions using this tag must be related to programming, your question will risk being closed otherwise. Do not use if you are discussing software or operating system subjects. If you need support you can try https://apple.stackexchange.com.

Apple M1 is an ARM based system on a chip designed by Apple Inc.

2791 questions
20
votes
7 answers

Installing ruby with ruby-install causes build error on Mac M1

When installing ruby 2.6.6 or 2.7.2 using ruby-install on mac M1, the following error occurs. Ruby 3.0.0 works fine however anything older will error out with readline and not allow ruby to install. readline.c:1905:37: error: use of undeclared…
mirageglobe
  • 2,446
  • 2
  • 24
  • 30
20
votes
5 answers

How to install Mongodb on Apple M1 chip

I'm trying to install Mongodb community server on macbook air with the new M1 chip following the official mongodb tutorial. However im running into this problem. ~ ❯❯❯ brew install mongodb-community@4.4 Error: Cannot…
Glutch
  • 662
  • 1
  • 6
  • 19
19
votes
2 answers

mach-o file, but is an incompatible architecture have 'x86_64', need 'arm64e' M1 MAC

from PyQt6.QtWidgets import * from model.Department import Department from view.main_window import Ui_Form from model.Department import Department, Employee class Homewidget(QWidget,Ui_Form): def __init__(self): …
MrAhmed Alhamed
  • 223
  • 2
  • 3
  • 9
19
votes
4 answers

M1 Mac - Issue bringing up ElasticSearch. Cannot run jdk/bin/java

Have done a bit of searching to no avail. Attempting to setup a project with an Elasticsearch docker container. Works on my older intel MacBook but no luck so far with the new system. elasticsearch | Exception in thread "main"…
jesseb
  • 193
  • 1
  • 1
  • 5
18
votes
2 answers

Check architecture in dockerfile to get amd/arm

We're working with Windows and Mac M1 machines to develop locally using Docker and need to fetch and install a .deb package within our docker environment. The package needs amd64/arm64 depending on the architecture being used. Is there a way to…
Nick Davies
  • 573
  • 5
  • 15
18
votes
2 answers

Error loading psycopg2 module: Library not loaded: libpq.5.dylib

I am trying to run a Django project with Postgres database. I use Postgres 13.4 installed via postgressapp (UNIVERSAL with all currently supported versions) and python 3.9 (in venv). I work on Mac with Apple M1 chip, macOS Big Sur. I faced the…
kokserek
  • 530
  • 8
  • 21
18
votes
1 answer

Ruby open-uri can't open url (m1 mac)

i start to learn ruby and scraping and i try to open an url with open and i got lib/scrapper.rb:7:in `initialize': No such file or directory @ rb_sysopen - https://en.wikipedia.org/wiki/Douglas_Adams (Errno::ENOENT) from lib/scrapper.rb:7:in `open'…
Maxime Crespo
  • 199
  • 1
  • 10
17
votes
3 answers

docker-compose fork/exec permission denied

Last night I updated Docker desktop to the latest version 4.10.1 and today when I tried to run my containers, I get this error: Cannot start Docker Compose application. Reason: fork/exec [docker-app-path]/bin/docker-compose-v1: permission…
Milkncookiez
  • 6,817
  • 10
  • 57
  • 96
17
votes
2 answers

Docker get-started: WARNING: The requested image's platform (linux/arm64/v8) does not match the detected host platform (linux/amd64)

I'm starting the "get-started" guide from official Docker website. At the Part 4 "Share the application", I'm facing this error message when I try to run my image on the docker hub from play-with-docker.com. WARNING: The requested image's platform…
Srevinu
  • 215
  • 1
  • 2
  • 7
17
votes
3 answers

Android Emulator stop working after update to 31.2.6 [M1/Apple Silicon]

After updating Android emulator to 31.2.6 today, emulator stop working. It says Connecting to the Emulator and process of qemu-system-aarch64 is become unresponsive It worked well on previous version of emulator, which I downloaded with Arctic Fox,…
Akbolat SSS
  • 1,761
  • 15
  • 23
17
votes
5 answers

Why is numpy native on M1 Max greatly slower than on old Intel i5?

I just got my new MacBook Pro with M1 Max chip and am setting up Python. I've tried several combinational settings to test speed - now I'm quite confused. First put my questions here: Why python run natively on M1 Max is greatly (~100%) slower than…
graphitump
  • 631
  • 1
  • 5
  • 13
17
votes
3 answers

M1 MacBook Pro Android Studio Installation Issue - No SDK being downloaded

I am trying to setup Android Studio on my refurbished M1 MBP. I am getting stuck in Android Studio Setup Wizard where it is giving me an error. Another thing I notice is there is no Android/sdk directory created in my Library folder when I install…
bjjdroid
  • 183
  • 1
  • 6
17
votes
2 answers

Unable to install Chromium inisde a docker container on M1 macbook

I am Running docker on an M1 Macbook Pro , here i am using this docker script FROM node:current-buster # Create and set user RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb RUN apt-get update && apt install -y…
Srinjoy Choudhury
  • 622
  • 1
  • 4
  • 19
17
votes
6 answers

Dynamodb local setup on M1 apple silicon mac

I did a local setup of dynamodb using https://docs.aws.amazon.com/amazondynamodb/latest/developerguide/DynamoDBLocal.DownloadingAndRunning.html I am able to start the instance using the following command java -Djava.library.path=./DynamoDBLocal_lib…
Ahsan Ejaz
  • 173
  • 1
  • 1
  • 5
16
votes
2 answers

what is SPI Check while uploading iOS?

while uploading the app from xcode 13.x it stuck to "Performing SPI Check.." any idea what is this about?, added a pic for reference.
Abdul Karim
  • 4,359
  • 1
  • 40
  • 55