Build from source on ubuntu
Posted: Sat Jun 16, 2018 5:27 pm
So, I came from Centos for the last 10 years, and, am new to ubuntu (xubuntu specifically). In the build from source wiki page, it says:
"If you have already installed a pre-built package and you have a need to try out a source code change, it would be preferable to use your distribution's build process to build a version that is compatible with the already installed version. There are differences in the placement of files between the downloaded packages and the code you build yourself."
So, that's me. I'd love to use the "distribution's build process" to build a compatible version with no mismatch on file locations, but, have no idea what that is for ubuntu. Obviously, I don't want stuff in /usr/local, but I simply don't know the process on ubuntu. Is there a set of instructions for building a compatible version on ubuntu?
Is it just a matter of configure --prefix=/usr? Or, are there other options to yield the same install directories as the ppa?
Note, I have 2 different use cases. One is to patch mythtv 29, which is what I want to go to the same location as the ppa, and, one is for playing around with some mods, which I would of course install somewhere else, probably /opt as that is empty at present. The /opt one would use a different db and configuration file, I know how to do that, I have run multiple non conflicting versions before. So, my question is only about the patched version to match ppa directories.
"If you have already installed a pre-built package and you have a need to try out a source code change, it would be preferable to use your distribution's build process to build a version that is compatible with the already installed version. There are differences in the placement of files between the downloaded packages and the code you build yourself."
So, that's me. I'd love to use the "distribution's build process" to build a compatible version with no mismatch on file locations, but, have no idea what that is for ubuntu. Obviously, I don't want stuff in /usr/local, but I simply don't know the process on ubuntu. Is there a set of instructions for building a compatible version on ubuntu?
Is it just a matter of configure --prefix=/usr? Or, are there other options to yield the same install directories as the ppa?
Note, I have 2 different use cases. One is to patch mythtv 29, which is what I want to go to the same location as the ppa, and, one is for playing around with some mods, which I would of course install somewhere else, probably /opt as that is empty at present. The /opt one would use a different db and configuration file, I know how to do that, I have run multiple non conflicting versions before. So, my question is only about the patched version to match ppa directories.