Configure is used when installing various tools using source code on Ubuntu, and you can use prefix to specify the install path
./configure --prefix=...
View the default installation path
./configure -h | grep prefix
display
--prefix=PREFIX install in PREFIX [/usr/local]
Under normal circumstances, it will be installed by default in /usr/local