![brew install mongodb 1.4 brew install mongodb 1.4](https://zellwk.com/images/2020/install-mongodb/list.png)
Unzip the file and you’ll get a new folder php-5.5.3.
BREW INSTALL MONGODB 1.4 DOWNLOAD
The sources used to be available from the MAMP website, but I couldn’t find them anywhere.įind the correct source from, in this case I’m after 5.5.3, so let’s download it: wget You’ll need the PHP source in order to compile the mongo-php database driver. Start your MAMP application, click on Preferences and select the PHP tab. Bit of a beast, so time to grab a brew (caffeinated or alcoholic, your choice).
![brew install mongodb 1.4 brew install mongodb 1.4](https://miro.medium.com/max/1224/1*pQCmLrHrLZcIjBqcCkY6Mw.gif)
BREW INSTALL MONGODB 1.4 FREE
It’s a free download, fire up the App Store, search for Xcode and install it. Step 2 – Install Autconf & Grab Xcode brew install autoconf Thanks to Daniel Farrelly for the pointers in his blog post. Let’s not get ahead of ourselves, this is where it gets tricky. Download and install it from Step 1 – Install Mongo brew install mongodbĮasy, peasy. In case anyone hits the same problem, here’s how I got it working…I’m using the brew package manager to make life easier and install packages. If you’re not tinkering with Mongo on a Mac, best click away now Īre you wanting to tinker with the fancy schmancy NoSQL database Mongo and you’re running MAMP on your Mac? Should be a doddle to install, right? Erm, not so much. Remember if you’re changing your package.json file to depend on mongo 1.4.9, you’ll need to run “npm update” to actually install it to you project folder.A brief and thoroughly geeky blog post. To note: trying to start it by just calling “mongod” produces an error similar to yours. Starting the mongod daemon with this line works for me. In my case, I got a message in terminal saying “Or, if you don’t want/need a background service you can just run: And it’s not even necessary, as you’ll see in index.js, the very next action taken is to load up the bson.js file from lib/bson/bson.jsĪs to your error, when you installed mongodb, the author “mkatz” told you to note (copy) the summary that was spit out by “brew install mongodb”. You can get the error to go away by simply copying lib/bson/bson.js (or browser_build/bson.js) into /build/release.
![brew install mongodb 1.4 brew install mongodb 1.4](https://p.calameoassets.com/131216041215-9f7ca36fb4305919078d7ef2a2f02240/p1.jpg)
There you can see the reason is that index.js can’t find the “bson” file/directory in its build/release subfolder. The error is produced by “node_modules/bson/ext/index.js”. Basically mongoDB requires BSON 0.2.12, which on OSX has nothing in its build/release directory. This is not your problem: “Failed to load c++ bson extension, using pure JS version”. I posted a new entry with step 5 above under the old 1.3.23, then upgraded once again to 1.4.9, restarted node.js and the browser and viola, the new entry appeared in the table. The problem was not with the get, but with the post, which I found by reverting back to 1.3.23 and loading the page from step 6 above and seeing the table with my prior entries. Go to “ and see the table is now created.Īdditional: the older dependency “mongodb”: “1.3.23” does not appear to be compatible with the current mongod daemon.I’ve definitely got mongod running, here’s the output from that: “js-bson: Failed to load c++ bson extension, using pure JS versionĮrror! Exiting… Must start MongoDB first” Hi guys, I’m at the end of the “Using Your Collection Driver” section, and when I run index.js I get: