I want to have two versions of Gmsh: 2.10.1 (http://gmsh.info/bin/Linux/gmsh-2.10.1-Linux64.tgz) and 3.0.6 (the latest) on my Ubuntu 16.04 LTS machine. Both of which I seem to have installed successfully. However, I observed something weird:
apt-cache policy gmsh
gives this:
gmsh:
Installed: 2.10.1+dfsg1-1ubuntu4
Candidate: 2.10.1+dfsg1-1ubuntu4
Version table:
*** **2.10.1+dfsg1-1ubuntu4** 500
500 http://gb.archive.ubuntu.com/ubuntu xenial/universe amd64 Packages
100 /var/lib/dpkg/status
While gmsh -version
gives
3.0.6
What does it mean? Is this also related to another observation that the Ubuntu Software listed only 2.10.1 version before I installed 3.0.6 and after installation of 3.0.6 it doesn't list anything for gmsh.
Running gmsh
starts the 3.0.6 version. I don't know how to start the other.
Assuming I've both the versions, I believe I'll have to do something like source the correct files from .bashrc with some aliases? I'm not sure how. Can someone help? What's going on and how can I use both versions as per need?
sudo make install
) are usually placed in/usr/local/bin
. Do you have Gmsh here - please add output ofls -al /usr/local/bin/gmsh
to the question. – N0rbert Jul 02 '18 at 16:50Also, 'dpkg -L gmsh-2.10.1+dfsg1-1ubuntu4' gives: 'dpkg-query: package 'gmsh-2.10.1+dfsg1-1ubuntu4' is not installed'
– 83ingD33p Jul 02 '18 at 17:09dpkg -L gmsh
. Please add output ofls -al /usr/local/bin/gmsh
to the question. And/usr/local/bin/gmsh -version
or/usr/local/bin/gmsh --version
(do not remember real syntax). – N0rbert Jul 02 '18 at 17:09-rwxr-xr-x 1 root root 198622472 Jun 12 16:15 /usr/local/bin/gmsh
. The version command gives3.0.6
. – 83ingD33p Jul 02 '18 at 17:14