I just created a new meteor app (blaze) and when I try starting the app on terminal, I get this error
/home/akpet/.meteor/packages/meteor-tool/.2.7.1.b4y9ws.2u0y++os.linux.x86_64+web.browser+web.browser.legacy+web.cordova/mt-os.linux.x86_64/dev_bundle/mongodb/bin/mongod:
error while loading shared libraries: libcurl.so.4: cannot open shared object
file: No such file or directory
Unexpected mongo exit code 127. Restarting.
Can’t start Mongo server.
Here are a couple of things to try:
Okay, try this:
– I think this may wipe your current mongo db, so you should export it first so as to be able to import it later if necessary.
This is a pretty thorough reset for Meteor. It might be worth a try in your case.
Download an entirely fresh copy of your source via git clone
Copy the .meteor directory into the new project folder from the previous source folder
Run meteor reset and meteor update (Make sure to have copies of your mongodb files so as to upload them again to local mongo after the reset )
Uninstall Mongo from your local dev system and re-installed it
Run mongo --shell in the terminal to access the mon…
This is a new project I just created, so there is nothing in the database
but all the same, I have run the meteor reset all the same and it didn’t solve the problem
It just keeps showing "Unexpected mongo exit code 127
Hi @koakpet , can you provide the information below so I can help you figure out what is going on
Node version
Meteor version
OS and OS version
MongoDB version
What did you use to install Meteor and which command are you running
You are missing cURL
you need to install the libcurl
package you can get the sources via:
git clone https://github.com/curl/curl.git
But best to use your package manager, as I don’t know your distribution here’s all the ways you can get it (remember to run an update first to get the latest and greatest)
Ubuntu:
$ sudo apt update && sudo apt upgrade
$ sudo apt install curl
Freebsd:
$ sudo pkg update && sudo pkg upgrade
$ sudo pkg install curl
CentOS / RHEL:
$ sudo apt-get install curl
Gentoo:
$ sudo emerge curl
Suse: Install cURL on openSUSE using the Snap Store | Snapcraft
Enjoy
thank you so much
I use Ubuntu, immediately I ran the commands you shared, my problem was fixed
2 Likes
Nice! You’re welcome man. Glad to be able to help!