레이블이 gcc인 게시물을 표시합니다. 모든 게시물 표시
레이블이 gcc인 게시물을 표시합니다. 모든 게시물 표시

2023년 10월 31일 화요일

compile problems of various manybody codes (in Ubuntu)

List of compile problems for various manybody nuclear physics codes. 

 (1) BigstickPublick : https://github.com/cwjsdsu/BigstickPublick
            gfortran had problems with MPI commands. 
        --> ifort could compile without problem
        or add compile option "-fallow-argument-mismatch"

 (2) imsrg : https://github.com/ragnarstroberg/imsrg
               missing libraries have to be installed. But, python binding was problem. 
        --> include python3 path in Makefile. (replace 'python-config' into 'python3-config') 
       (2-1) to build : goto "build/" and run "cmake .." 
                then "make install" 
       (2-2) After compile, one can run  "imsrg++  [arguments]" 
               Python script to specify command line arguments can be found in "work/" folder. 
       (2-3)  To get documentation, run "doxygen  [.dox file]" in "doc/" folder.  



 (3) NuHamil : https://github.com/Takayuki-Miyagi/NuHamil-public
          *       no submodule
        --> "git submodule init" and "git submodule update"               
            *       missing hdf5.mod 
        --> add include path " -I/usr/include/hdf5/serial" 
               (first install "sudo apt install libhdf5-dev hdf5-tools")
             *      cannot find -lhdf5_fortran 
        --> add path "-L/usr/lib/x86_64-linux-gnu/hdf5/serial" 
             * may need additional libraries installed 
                      "sudo apt install libgsl-dev" 

(4) HartreeFock:  https://github.com/Takayuki-Miyagi/HartreeFock 
                    no submodule 
        --> same solution as above 
                     argument mismatch 
        --> edit Makefile, Debug=off and add compile option "-fallow-argument-mismatch"


 Tips: In general, if some library is already installed but could not be found, solutions are usually add correct path/location. How to find the path os installed library in Ubuntu? 
 try " dpkg --get-selections | grep -v deinstall | grep [name]
then " dpkg -L packagename "to find the path.