Page 1 of 1

If you compile - remember build-essential and checkinstall

Posted: Tue Sep 20, 2016 12:59 am
by xenopeek
For compiling to work build-essential must be installed. Install it from Software Manager or with apt install build-essential.

Most compilation instructions will say to run the command sudo make install to install the software after compiling. You should instead use the command sudo checkinstall. That does the same thing but will make the software and its files known to your package managers (e.g. Software Manager and apt ) so that you can easily remove the software or replace it with a newer version. For this you will first have to install checkinstall. Install it from Software Manager or with the command: apt install checkinstall.

(Edit: if you want to recompile a package installed from the Linux Mint repositories—for example to apply a patch you need—see the How to recompile a package from source topic instead.)

Re: If you compile - remember build-essential and checkinstall

Posted: Tue Sep 20, 2016 1:30 am
by Lucap
Sounds like it should make life easier. :)

Re: If you compile - remember build-essential and checkinstall

Posted: Tue Sep 20, 2016 4:12 am
by Pjotr
Good tip! Thank you. :)

Re: If you compile - remember build-essential and checkinstall

Posted: Sat Oct 01, 2016 5:39 pm
by grundblom
I find I have to have the build-essential group package before I can get the Virtualbox additions to install correctly.
Thanks for the tip!

Re: If you compile - remember build-essential and checkinstall

Posted: Sat Oct 01, 2016 5:50 pm
by Cosmo.
glen_il wrote:I find I have to have the build-essential group package before I can get the Virtualbox additions to install correctly.
I have never seen this in countless numbers of virtual machines, that I build. What you need is dkms, but that comes pre-installed on every Mint installation.

Re: If you compile - remember build-essential and checkinstall

Posted: Sun Oct 02, 2016 1:18 am
by grundblom
Cosmo, thank you for that information. I have been doing that with Mint and Ubuntu VMS but now I can see that it was not necessary.
Thanks for the tip, I did not know about dkms yet and learning more about it.

Re: If you compile - remember build-essential and checkinstall

Posted: Mon Mar 27, 2017 5:19 pm
by Pat D
Wow.
All this frustration and the info was right here.
"Checkinstall" !!!

Thank you.

Re: If you compile - remember build-essential and checkinstall

Posted: Wed Apr 26, 2017 2:07 am
by SGreen
Indeed another thank you from my end, just in time to avoid the limitation

Re: If you compile - remember build-essential and checkinstall

Posted: Wed Apr 26, 2017 1:50 pm
by digitography
checkinstall

Command not found!
Mint 18.1

Re: If you compile - remember build-essential and checkinstall

Posted: Wed Apr 26, 2017 2:17 pm
by xenopeek
You failed your reading test.
xenopeek wrote:For this you will first have to install checkinstall. Install it from Software Manager or with the command: apt install checkinstall.

Re: If you compile - remember build-essential and checkinstall

Posted: Wed Apr 26, 2017 2:48 pm
by digitography
Should have gone to Specsavers.

Re: If you compile - remember build-essential and checkinstall

Posted: Wed Dec 12, 2018 5:38 pm
by redlined
hi xenopeek!

I was about to upgrade my dangerous newb status and give this tutorial a try on my daily driver (LM19.1 beta Cinnamon 4.0.6, laptop). Is there any (other) precautions or considerations in doing this? (e.g. changes to system that may be undesirable for "production" machine that I need be aware of).

Also, this particular build from source project (streamtuner2) I am looking at completing is bascially for a patched file that is a fix by dev but not in the repos yet.

I see your other tutorial How to recompile package from source and understand this scenario fits more under that heading, however I wanted to build entire project from latest source (which includes other fixes besides the one truly problematic file). Am I reading this correctly and it would be better to use this tutorial than recompile tutorial?

Thanks!

Re: If you compile - remember build-essential and checkinstall

Posted: Thu Dec 13, 2018 6:39 am
by xenopeek
As Mario suggests on your Sourceforge discussion, you should compile streamtuner2 from source. You can do that with this tutorial so you can also uninstall / upgrade it easily. The "How to recompile package from source" tutorial is indeed only useful if you have a patch you want to apply to the version from the repository—not when you want a new upstream version.

As no other programs or OS components depend on streamtuner2 you should have no worries to give this a try. Just use "sudo checkinstall" instead of "make install".

Re: If you compile - remember build-essential and checkinstall

Posted: Thu Dec 13, 2018 12:20 pm
by redlined
xenopeek wrote:
Thu Dec 13, 2018 6:39 am
As Mario suggests on your Sourceforge discussion, you should compile streamtuner2 from source. You can do that with this tutorial so you can also uninstall / upgrade it easily. The "How to recompile package from source" tutorial is indeed only useful if you have a patch you want to apply to the version from the repository—not when you want a new upstream version.

As no other programs or OS components depend on streamtuner2 you should have no worries to give this a try. Just use "sudo checkinstall" instead of "make install".
Thank you for confirming! I did run sudo checkinstall late last night and now have my own latest version installed. It was really a learning event as Mario did refresh the packages he has up at sourceforge. Very cool, thank you for putting up this guide and the other for recompile! I always thought this one was tempting, like a carrot on stick pinned in newbie section and all as it is, finally stretched out and took a bite :mrgreen: