1/17/2024 0 Comments Mongodb compass apple silicon![]() ![]() Thanks in advance.Īfter installing a newer PHP version where previously I used 7.3.24 and updated to 7.4.16. Somebody knows how can I solve this please? Or if I can install the mongodb driver without using pecl. I tried with arch -x86_64 sudo pecl install mongodb In file included from fatal error: 'pcre2.h' file not found In file included from /private/tmp/pear/temp/mongodb/php_phongo.c:29: I'm trying to install the mongodb driver running: sudo pecl install mongodbīut fails after a while: mp/pear/temp/mongodb/src/contrib/ -DHAVE_CONFIG_H -g -O2 -c /private/tmp/pear/temp/mongodb/php_phongo.c -fno-common -DPIC -o. With Zend OPcache v7.4.15, Copyright (c), by Zend Technologies ![]() Zend Engine v3.4.0, Copyright (c) Zend Technologies Remember to run these commands in the Rosetta Terminal!Īnd there you have it – mongo is now running on your machine.I have php 7.4 installed on my macbook pro m1 % php -v To run mongo, do the following: # run mongo as a macOS serviceīrew services start when you want to stop mongo as a service run thisīrew services stop verify mongo is running the status code should be started but why not add them here: # install xcode cliīrew install 3: Now that everything is installed, we can run mongo on our machine (finally!) Once you have homebrew installed, you can pretty much follow the instructions on mongo’s doc site using the Rosetta terminal. If you don’t already have Homebrew on your machine, run this command in your terminal /bin/bash -c "$(curl -fsSL )" When you open up the new Rosetta Terminal, you will be asked to download Rosetta, select yes and don’t ignore it like I did initially □ Now, right click on the newly renamed rosetta terminal, and click get info and select open using Rosetta this will enable the Rosetta Translation Environment we need to run intel binaries. Rename the new terminal to Rosetta Terminal so you don’t get confused which is which. Go to finder > applications > terminal, right click on the terminal and select duplicate this will create a new terminal for you to work with. Now, let’s get to the installations! Step 1: Create a copy of your terminal Personally, I prefer using iTerm with zsh, but if I need to use a separate terminal to run the DB, so shall I do. We need to run mongo using the Rosetta2 Terminal.We need to use Homebrew to install mongoDB on our machines.Īs of Feb 2021, Homebrew fully supports Apple Silicon (M1 Processor) with v3.0.0.This explains why when I was trying to use Insomnia, I got a message telling me to install Rosetta2 - I ignored the message and didn’t use Insomnia because I had no idea who Rosetta was and why I needed her on my machine □ Since many of the applications and software that we use are still running on intel, we need to use the Rosetta2 terminal to get these binaries to process. Previous to Apple’s M1 Processors, Macs ran on the intel processor. To get mongoDB running on M1 macs, we need to use macOS’ Rosetta Translation Environment to run intel binaries.Gaah, that error freaked me out a little and I had to do a Google deep dive to figure out how to get mongo running on my machine. ![]() If you use zsh like I do, you may come across an error like this when trying to run mongo on your machine: zsh: bad CPU type in executable: mongo. MongoDB (mongo) isn’t natively supported on the M1 processors as of this writing. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |