Installing packages from source in Ubuntu
I just found these instructions in the Ubuntu documentation:
I can’t believe I hadn’t read this before, it explains several things I didn’t know. To start with, it recommends installing the following packages using “apt-get install”:
build-essential
automake
checkinstall
I already had build-essential, and I went ahead and got the other two. I knew that the first step was to run the configure script, using “./configure”. But I didn’t realize this is the script that will define where the software gets installed (ie. the lib and include directories). To see the options for a configure script, use the command <code>./configure –help</code>
Then there’s the make command, which is used to compile the code.
The part that was really different was using “checkinstall” – I have been using “make install”. Using checkinstall actually creates a .deb file, which makes removing the package later on much easier. If I ever want to remove it later, I just have to use the command dpkg -r gdal171.
So, this is all good, I think I learned some things, but I am *still* getting the same errors when I try to install MB-System – undefined references to anything related to GDAL.
