Skip to content

How to uninstall without installed directory #600

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
astrung opened this issue May 23, 2015 · 3 comments
Closed

How to uninstall without installed directory #600

astrung opened this issue May 23, 2015 · 3 comments

Comments

@astrung
Copy link

astrung commented May 23, 2015

I have install openmpi1.8.4 2 months ago,and now i want to reinstall 1.8.5.But i have remove the installed directory,so i dont have any "configure" file to run make uninstall.So can we have another ways to remove it????

@jsquyres
Copy link
Member

jsquyres commented May 23, 2015

Open MPI only installs files in the installation tree -- it doesn't modify files, or put files outside the installation tree. So you basically have three options:

  1. If you installed Open MPI into a tree by itself (e.g., if you supplied --prefix=/opt/openmpi-1.8.4), you can just rm -rf /opt/openmpi-1.8.4 -- job done.
  2. If you installed Open MPI into a tree with other things (e.g., if you supplied --prefix=/usr/local), you can remove the individual Open MPI files yourself. E.g., rm -rf /usr/local/lib/libmpi* /usr/local/lib/openmpi ...). But for you to track down all the individual files to remove could be painful / annoying / error-prone.
  3. Same as Global / local MCA parameters #2, you could also download Open MPI 1.8.4 again, run configure with the prefix that you used to install 1.8.4 initially, and then just run make uninstall. That is, you don't have to build 1.8.4 -- just configure it with the same prefix you did before. Then Open MPI's "make" infrastructure will have enough information to make uninstall.

Option 3 might be your best bet. It's a little circumspect, but it'll work. Let us know.

See also this FAQ item about pretty much the same issue.

@jsquyres
Copy link
Member

Closing this due to lack of replies in a month. Feel free to reply on the issue if you need further info.

jsquyres pushed a commit to jsquyres/ompi that referenced this issue Nov 10, 2015
…_away_const

Topic/v2.x/no cast away const
@mbver
Copy link

mbver commented Nov 23, 2016

Thank you! That's exactly what I'm looking for. I got "tcp_peer_recv_connect_ack: received different version..." because I installed 1 version of OMPI in /usr/local (1.10.2 version) but I compiled everything with another version (1.8.5). So I have to remove the 1.10.2 version before running anything. Your guide works just beautifully.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants