Error en la terminal /dev/fd/12:18: command not found: compdef

Hola a todos, el dia de ayer estaba tratando de desinstalar el programa MongoDB de mi Mac, pero se me quedo atascada la terminal y ahora me aparece el siguiente mensaje cada vez que la inicio /dev/fd/12:18: command not found: compdef..... Soy nuevo en esto y si alguien me puede dar una mano para poder solucionar ese error lo agradeceria.

MacBook Pro 13″, macOS 10.15

Posted on Apr 13, 2024 11:26 PM

Reply

Similar questions

2 replies

Apr 14, 2024 6:54 PM in response to fjgutierrez

Google Translation:

fjgutierrez wrote:

Hello everyone, yesterday I was trying to uninstall the MongoDB program from my Mac, but the terminal got stuck and now I get the following message every time I start it /dev/fd/12:18: command not found : compdef..... I'm new to this and if someone can give me a hand to solve this error I would appreciate it.


Here are the instructions that should have been followed when uninstalling MongoDB depending on which edition of MongoDB you were using:

https://www.mongodb.com/basics/uninstall-mongodb


It is a bit telling that the uninstall instructions were not included in the user guide although installation instructions were included.


It is possible the issue is with Homebrew damaging one of the zsh configuration files when uninstall was interrupted. Or maybe it is some other MongoDB item that is still configured to automatically launch during boot, but since part of MongoDB is now gone, you get this error. Try to uninstall MongoDB again. Maybe you will need to reinstall the same version, before you can uninstall it depending on the uninstall utility.


Unfortunately there have been a lot of posts recently where Homebrew has been implicated in causing problems. Unless you are knowledgeable with the command line to fix things, the easiest way forward is likely to start completely over by performing a clean install of macOS by first erasing the disk followed by reinstalling macOS & restoring from a backup.


FYI, if you are going to use command line utilities such as Homebrew or MacPorts, then you should really learn more about the command line. Just because these utilities appear simple to use to install open source software not available in a precompiled binary, you still need to know how these items interact with the OS and how to properly manage them within macOS especially since they may also install different versions of built-in macOS command line utilities which can wreak havoc if you don't understand how Homebrew works.


And always have frequent and regular backups of your computer in case something goes wrong so you can restore your data if necessary.

Apr 14, 2024 5:25 AM in response to fjgutierrez

fjgutierrez wrote:

Hola a todos, el dia de ayer estaba tratando de desinstalar el programa MongoDB de mi Mac, pero se me quedo atascada la terminal y ahora me aparece el siguiente mensaje cada vez que la inicio /dev/fd/12:18: command not found: compdef..... Soy nuevo en esto y si alguien me puede dar una mano para poder solucionar ese error lo agradeceria.
https://discussions.apple.com/content/attachment/92349c77-e58f-4096-9c22-ad7bad80dd77

You are right the Terminal command compdef does not exist


Applications that are Not download from the Apple Apps Store may require an Uninstaller from the Developer of this application


Other, may work by dragging the Application onto the Trash


To be very sure what method is required


Suggest checking with the Developer


https://www.mongodb.com/lp/cloud/atlas/try4?utm_content=controldbaasterms&utm_source=google&utm_campaign=search_gs_pl_evergreen_atlas_core_prosp-brand_gic-null_amers-ca_ps-all_desktop_eng_lead&utm_term=mongocloud&utm_medium=cpc_paid_search&utm_ad=p&utm_ad_campaign_id=12212624311&adgroup=115749704143&cq_cmp=12212624311&gad_source=1&gclid=EAIaIQobChMI-7mu5dfBhQMVKR6tBh2G8A0PEAAYASAAEgIWB_D_BwE





This thread has been closed by the system or the community team. You may vote for any posts you find helpful, or search the Community for additional answers.

Error en la terminal /dev/fd/12:18: command not found: compdef

Welcome to Apple Support Community
A forum where Apple customers help each other with their products. Get started with your Apple Account.