Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
howto:roteiro_pzlinux_eng [2019/02/26 14:49]
phil
howto:roteiro_pzlinux_eng [2020/04/27 09:51]
phil
Line 1: Line 1:
 ====    How to Install and use NeoPZ library under Linux  ==== ====    How to Install and use NeoPZ library under Linux  ====
 \\ \\
-This tutorial was tested successfully under Linux Ubuntu 16.04 LTS 64 bits, but may succeed ​+This tutorial was tested successfully under Linux Ubuntu 16.04/18.04 LTS 64 bits, but may succeed ​
 under other versions of Linux as all steps here can be run in either identical or analogous forms. under other versions of Linux as all steps here can be run in either identical or analogous forms.
 Versions of third party libraries mentioned here are garanteed to work, so you should stick to them at first to make sure Versions of third party libraries mentioned here are garanteed to work, so you should stick to them at first to make sure
Line 20: Line 20:
 **PART A** - Building NeoPZ so it can be used as a library **PART A** - Building NeoPZ so it can be used as a library
   
-1) Installing CMake (required minimum version: 3.11.0)+1) Installing CMake (required minimum version: 3.17.1)
  
    ​Unfortunatley,​ CMake version bundled with Ubuntu 16.04 is too old for our purpose here,    ​Unfortunatley,​ CMake version bundled with Ubuntu 16.04 is too old for our purpose here,
Line 29: Line 29:
      This file is not an installer, but actually a tree that is ready to be used, with      This file is not an installer, but actually a tree that is ready to be used, with
      ​executable files and other necessary files. On the download page, look for      ​executable files and other necessary files. On the download page, look for
-     '​Binary distributions'​. Then, as an example, you will see file '​cmake-3.13.1-Linux-x86_64.tar.gz'​.+     '​Binary distributions'​. Then, as an example, you will see file '​cmake-3.17.1-Linux-x86_64.tar.gz'​.
  
 1.2) Unpack the .tgz file in your //​Downloads//​ folder; 1.2) Unpack the .tgz file in your //​Downloads//​ folder;
Line 35: Line 35:
 1.3) To make cmake "​visible"​ as a command in bash, edit your file //​.profile//,​ which is located at your home folder. You must append cmake  1.3) To make cmake "​visible"​ as a command in bash, edit your file //​.profile//,​ which is located at your home folder. You must append cmake 
 binary full path to environment variable PATH present in this file. For instance: binary full path to environment variable PATH present in this file. For instance:
-       ​PATH="​$PATH:​$HOME/​Downloads/​cmake-3.11.2-Linux-x86_64/​bin"​+       ​PATH="​$PATH:​$HOME/​Downloads/​cmake-3.17.1-Linux-x86_64/​bin"​
  
 1.4) To make that modification effective, you must logout and then login again. To test if new version of cmake is now "​visible"​ to bash, run: 1.4) To make that modification effective, you must logout and then login again. To test if new version of cmake is now "​visible"​ to bash, run:
Line 59: Line 59:
 </​code>​  ​   </​code>​  ​  
 2.2.2) Download lapack library source code file (for example: //​lapack-3.8.0.tar.gz//​) from site http://​www.netlib.org/​lapack and unpack 2.2.2) Download lapack library source code file (for example: //​lapack-3.8.0.tar.gz//​) from site http://​www.netlib.org/​lapack and unpack
-it in a working folder.+it in a working folder. After the unpacking, there will be a folder named //​lapack-3.8.0//​.
  
-2.2.3) '​cd'​ into the initial folder of lapack source tree just unpacked and run the command: +2.2.3) ​Create a sibiling folder //​lapack-3.8.0-build//​ and '​cd'​ into it. Then, run the command: 
-    ​ccmake+    ​ccmake ​../​lapack-3.8.0
     ​(Then,​ turn on the options LAPACKE, CBLAS and SHARED_LIBS) ​     ​(Then,​ turn on the options LAPACKE, CBLAS and SHARED_LIBS) ​
  
Line 92: Line 92:
       Follow steps 2.4.1 and 2.4.2 to install it.       Follow steps 2.4.1 and 2.4.2 to install it.
 2.4.1) Download source code tree file at https://​www.boost.org/​. ​ 2.4.1) Download source code tree file at https://​www.boost.org/​. ​
-       For example, you can download file '​boost-1.66.0.tar.gz'​ and unpack it in a working folder. ​+       For example, you can download file '​boost-1.72.0.tar.gz'​ and unpack it in a working folder. ​
 2.4.2) '​cd'​ into the initial folder of boost source tree just unpacked and run the commands: 2.4.2) '​cd'​ into the initial folder of boost source tree just unpacked and run the commands:
 <​code>​ <​code>​
Line 202: Line 202:
       ./SBFem2D       ./SBFem2D
 </​code>​   ​ </​code>​   ​
-   HINT: The SBFem project needs a NeoPZ library built with third party Intel MKL library, so please configure NeoPZ with '​USING_MKL'​ option turned on before building and installing NeoPZ, otherwise SBFem will fail.+   HINT: The SBFem project needs a NeoPZ library built with third party Intel MKL library, so please configure NeoPZ with '​USING_MKL'​ option turned on before building and installing NeoPZ, otherwise SBFem building ​will fail.  
 +    
 +   ​HINT2:​ SBFem is a live project and may eventually present its own code errors during compiling time. The goal here is not about making SBFem work, but actually make it '​import'​ and use NeoPZ library.
  
        
-//​Updated: ​Feb/2019 at LabMeC - UNICAMP - Brazil//+//​Updated: ​Apr/2020 at LabMeC - UNICAMP - Brazil//
 //by LCCM// //by LCCM//

QR Code: URL of current page
QR Code: URL of current page howto:roteiro_pzlinux_eng (generated for current page)