Code::Blocks Forums

User forums => General (but related to Code::Blocks) => Topic started by: ordak on July 20, 2018, 06:19:04 am

Title: Deleting previous builds
Post by: ordak on July 20, 2018, 06:19:04 am
Hi,

I have downloaded and built several Code::Blocks on Ubuntu. Can I move them to trash ?
Title: Re: Deleting previous builds
Post by: BlueHazzard on July 20, 2018, 12:31:34 pm
depends how you build them. Did you do a "make install"? If not you can simply delete it....
Title: Re: Deleting previous builds
Post by: ordak on July 20, 2018, 01:31:49 pm
depends how you build them. Did you do a "make install"? If not you can simply delete it....

As the last command I used :

Code
sudo make install
Title: Re: Deleting previous builds
Post by: oBFusCATed on July 20, 2018, 07:39:27 pm
If you've not used a separate prefix for all of them, but you've used the default of /usr/local, your doomed. They cannot be removed.
Title: Re: Deleting previous builds
Post by: BlueHazzard on July 20, 2018, 09:34:21 pm
Quote
If you've not used a separate prefix for all of them, but you've used the default of /usr/local, your doomed. They cannot be removed.
Is there no uninstall rule? That's a shame...

[EDIT:] this might help https://stackoverflow.com/questions/1506462/what-files-did-make-install-copy-and-where
Title: Re: Deleting previous builds
Post by: oBFusCATed on July 20, 2018, 09:39:40 pm
The uninstall rule uses the current build folder config to do the uninstall.
So if you're at version x, but you've installed version y. You might be out-of-luck if you want reliable uninstall.
Title: Re: Deleting previous builds
Post by: Jenna on July 21, 2018, 07:30:11 am
Quote
If you've not used a separate prefix for all of them, but you've used the default of /usr/local, your doomed. They cannot be removed.
Is there no uninstall rule? That's a shame...

[EDIT:] this might help https://stackoverflow.com/questions/1506462/what-files-did-make-install-copy-and-where
It's there, of course, but:
The uninstall rule uses the current build folder config to do the uninstall.
So if you're at version x, but you've installed version y. You might be out-of-luck if you want reliable uninstall.

If you make an change to the build-system you are probably lost.
You have to run uninstall before making changes or use the --prefix parameter when running configure to install in a seperate (if possible user-) folder to easily remove all files and not to clutter system folder.
No sudo needed and recommended not to use it, or you clutter your system folders with test-builds.
There have been several posts about the same problem in our forum.