{"id":245,"date":"2015-10-26T10:37:51","date_gmt":"2015-10-26T10:37:51","guid":{"rendered":"http:\/\/95.85.43.55\/?page_id=245"},"modified":"2024-07-24T14:38:49","modified_gmt":"2024-07-24T14:38:49","slug":"installing-from-binary-packages","status":"publish","type":"page","link":"https:\/\/opm-project.org\/?page_id=245","title":{"rendered":"Installing from binary packages"},"content":{"rendered":"\n<h4 class=\"wp-block-heading\">Installing from packages<\/h4>\n\n\n\n<p>Below are instructions for installing OPM from binary package repositories on some selected Linux distributions. After completing the instructions we suggest that you test the installation by going through the <a href=\"\/\/opm-project.org\/?page_id=197\">SPE1 tutorial<\/a>. There is a&nbsp;<a href=\"https:\/\/www.youtube.com\/watch?time_continue=1&amp;v=r1hL1lvwG9c\">YouTube tutorial<\/a> that shows how this works in practice.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">Ubuntu Linux 24.04 or 22.04 (64 bit version only)<\/h4>\n\n\n\n<p>The easiest way to install the Ubuntu packages is to first add the opm personal package archive (ppa). In order to do that we need to install the apt-add-repository command.<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get update\nsudo apt-get install software-properties-common\n<\/pre>\n\n\n\n<p>Then we add the repository, and run update again:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-add-repository ppa:opm\/ppa\nsudo apt-get update\n<\/pre>\n\n\n\n<p>At this point, all the OPM modules should be available to install. To see a list of (for example) the opm-simulators packages:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">apt-cache search opm-simulators\n<\/pre>\n\n\n\n<p>Then, to install the opm-simulators (including Flow) and their dependencies,<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install mpi-default-bin\nsudo apt-get install libopm-simulators-bin \\\n   python3-opm-common\n<\/pre>\n\n<p>\nIf you want to use the Python bindings to run a blackoil simulation using Python, then please also install these binding:\n<\/p>\n\n\n<pre class=\"wp-block-preformatted\">sudo apt-get install python3-opm-simulators<\/pre>\n\n\n\n<div style=\"padding: 12px; background-color: #ddddff; line-height: 1.4;\"><em>Note 1<\/em>: the mpi install above is required for the mpi libraries which the OPM executables are linked to, even those that are not intended to be run with mpirun. The reason the opm packages do not depend on that package is that by Debian policy the user should be allowed to choose which MPI implementation to use (above we picked the default set by Ubuntu).<\/div>\n\n\n\n<div style=\"padding: 12px; background-color: #ddddff; line-height: 1.4;\">\n<p><em>Note 2<\/em>: if you have old versions of prerequisite libraries already installed (for example from installing a previous release of OPM) it may be necessary to upgrade them:<\/p>\n<pre>sudo apt-get update\nsudo apt-get upgrade<\/pre>\n<\/div>\n\n\n\n<div style=\"padding: 12px; background-color: #ddddff; line-height: 1.4;\"><em>Note 3<\/em>: some users have experienced trouble with Flow simply aborting with no error message. In some cases that can be related to locale issues. Check by running the &#8220;locale&#8221; command. Flow requires the &#8220;C&#8221; or an english locale to run correctly. One way to fix this can be to put the following in your <code>.bash_profile<\/code> (note the initial point in the filename), and open a new terminal (command) window:<\/div>\n\n\n\n<div style=\"padding: 12px; background-color: #ddddff; line-height: 1.4;\">\n<p>LANG=&#8221;en_US.UTF-8&#8243; export LANG LC_ALL=&#8221;en_US.UTF-8&#8243; export LC_ALL<\/p>\n<p><em>Note 4:<\/em> The package python3-opm-common is needed by the simulator (included in libopm-simulators-bin) if your models use PYACTION. It is also needed for using the Python bindings python3-opm-simulators as they build upon it.<\/p>\n<\/div>\n\n\n\n<h5 class=\"wp-block-heading\"><\/h5>\n\n\n\n<h5 class=\"wp-block-heading\">Red Hat Enterprise Linux 7 or 8<\/h5>\n\n\n\n<p>First add the opm package repository:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum-config-manager --add-repo \\\nhttps:\/\/www.opm-project.org\/package\/opm.repo\n<\/pre>\n\n\n\n<p>The OPM software is split in several packages. To list all available OPM packages you can use:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum search opm-<\/pre>\n\n\n\n<p>For example you can install the opm-simulators binary package to get access to the Flow reservoir simulator:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum install opm-simulators-bin \\\n   python3-opm-common<\/pre>\n\n\n\n<p>If you want to use the Python bindings to run a blackoil simulation using Python, then please also install these binding:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum install python3-opm-simulators<\/pre>\n\n\n\n<p>Development packages are available using the -devel suffix. For example, to install the opm-upscaling development package use:<\/p>\n\n\n\n<pre class=\"wp-block-preformatted\">sudo yum install opm-upscaling-devel<\/pre>\n\n\n\n<div style=\"padding: 12px; background-color: #ddddff; line-height: 1.4;\"><em>Note 1<\/em>:<br>\nIf you want to install the MPI parallel version of Flow, you must choose an&nbsp;MPI implementation, either mpich or openmpi, and instead use the following command:<p><\/p>\n<pre>sudo yum install opm-simulators-openmpi-bin<\/pre>\n<p>For mpich, just replace openmpi with mpich in the above command. In order to run Flow in parallel using mpirun you must also load the required module first:<\/p>\n<pre>module load mpi\/openmpi-x86_64<\/pre>\n<p>To use mpich instead, replace openmpi with mpich in the above command.<\/p>\n<p><em>Note 2: <\/em>The package python3-opm-common is needed by the simulator (included in libopm-simulators-bin) if your models use PYACTION. It is also needed for using the Python bindings python3-opm-simulators as they build upon it.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>Installing from packages Below are instructions for installing OPM from binary package repositories on some selected Linux distributions. After completing the instructions we suggest that you test the installation by going through the SPE1 tutorial. There is a&nbsp;YouTube tutorial that shows how this works in practice. Ubuntu Linux 24.04 or 22.04 (64 bit version only) &hellip; <a href=\"https:\/\/opm-project.org\/?page_id=245\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">Installing from binary packages<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":5,"featured_media":0,"parent":0,"menu_order":0,"comment_status":"closed","ping_status":"closed","template":"","meta":{"footnotes":""},"_links":{"self":[{"href":"https:\/\/opm-project.org\/index.php?rest_route=\/wp\/v2\/pages\/245"}],"collection":[{"href":"https:\/\/opm-project.org\/index.php?rest_route=\/wp\/v2\/pages"}],"about":[{"href":"https:\/\/opm-project.org\/index.php?rest_route=\/wp\/v2\/types\/page"}],"author":[{"embeddable":true,"href":"https:\/\/opm-project.org\/index.php?rest_route=\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/opm-project.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=245"}],"version-history":[{"count":42,"href":"https:\/\/opm-project.org\/index.php?rest_route=\/wp\/v2\/pages\/245\/revisions"}],"predecessor-version":[{"id":1749,"href":"https:\/\/opm-project.org\/index.php?rest_route=\/wp\/v2\/pages\/245\/revisions\/1749"}],"wp:attachment":[{"href":"https:\/\/opm-project.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=245"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}