As I tend to do frequent fresh installations of Ubuntu, I decided to make a list of all the libraries I would have to install manually as well as how I installed them ( e.g. via code, software center, other).
Contents
C++ compiler
To my surprise Ubuntu 14.04 (16.04 was ok) had no c++ compiler, however installation requires two lines of code
1 2 |
sudo apt-get update sudo apt-get install g++ |
Building Essentials
That’s easy too:
1 2 |
sudo apt-get update sudo apt-get install build-essential |
MPI compilers
First download openmpi from their website and extract it locally. Then
1 2 |
./configure --prefix=/path/to/install/openmpi make all install |
Last we have to define the paths so that the programs can see the new library. First open an editor
1 |
gedit ~/.profile |
and add at the end of the file the following lines:
1 2 |
export PATH=$PATH:/path/to/OPENMPI/bin export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/path/to/OPENMPI/lib |
log out and log in and you are all set.
CMAKE
Cmake is a very important tool to have and the installation is also straightforward.
Download the code for their website and extract the files. The following lines should be enough for the installation:
1 2 3 |
./bootstrap --prefix=/path/to/CMAKE make make install |
Flex and Bison
These two libraries were required by various packages.
1 2 3 |
sudo apt-get update sudo apt-get upgrade sudo apt-get install flex bison |
doxygen
Just follow the guide
CGAL
You can use the following two lines to get the version that’s already compiled, which is typically older than the most recent
1 2 |
sudo apt-get install libcgal-dev sudo apt-get install libcgal-demo |
OpenSceneGraph
That’s one of the few libraries that I have always failed to compiled from the source, therefore I always get the one provided by the repositories
1 2 3 |
sudo apt-get build-dep openscenegraph sudo apt-get install libopenscenegraph-dev openscenegraph sudo apt-get install openscenegraph-doc openscenegraph-examples gxine xine-ui libxine1-doc |
splint
1 2 |
sudo apt-get update sudo apt-get install splint |
Octave
1 2 3 |
sudo apt-add-repository ppa:octave/stable sudo apt-get update sudo apt-get install octave |
If the command window executes but doesn’t print the commands use the following
1 |
sudo apt-get install octave-strings |
Ubuntu Software Center
This is a list of software to get right from the software center
- Krusader (Similar to total commander)
- Geany (Great Text editor)
- QGIS (as an alternative to ArcGIS)
- graphviz
- Gnuplot
- Povray
- PETSc
- splint