LIGGGHTS Installation Guide for Ubuntu 12.04 LTS and 13.04

Submitted by rahulsoni on Mon, 09/09/2013 - 08:09

"LIGGGHTS INSTALLATION GUIDE FOR UBUNTU 12.04 LTS, 13.04 LTS, 14.04 LTS, 15.10"

Fairly the whole credit goes to the writers of previously existing posts especially Paul.

  1. ##Installing Libraries g++ and git-core
  2. sudo apt-get install libvtk5-dev libeigen2-dev libopenmpi-dev g++ git-core

    Following two lines have helped me trobleshooting some errors in installing in ubuntu 14. (Instead of make ubuntuVTK, I tried make fedora for this case).
    sudo apt-get install build-essential git
    sudo apt-get install openmpi-common openmpi-bin libopenmpi-dev

    ##Checking installations
    which mpirun
    /usr/bin/mpirun comes up?
    which mpic++
    /usr/bin/mpic++ comes up?
    mpic++ -v
    gcc-Version 4.7.3 (Ubuntu/Linaro 4.7.3-1ubuntu1) comes up at the last line?

    ##Installing cmake
    sudo apt-get install cmake
    sudo apt-get install cmake-curses-gui

  3. ##Installing VTK
  4. Download vtk-5.8.0.tar.gz from http://www.vtk.org/VTK/resources/software.html#previous2
    Note: If VTK-5.8 not found then download it from here https://www.dropbox.com/s/t2q569ykfygpqej/VTK-5.8.tar.gz?dl=0
    Extract downloaded folder into home directory
    Note: Now a days, VTK-5.8 is troibling compilation with newer gcc-6 in new version of ubuntu. You can move ahead with VTK-7.1 with the same procedure.
    cd /home/"user"/VTK
    rm CMakeCache.txt [optional]
    sudo cmake .
    Note: (a) If encountered error such as In file included from /usr/include/GL/glx.h:333:0,
    from /home/rahul/VTK-5.8/Rendering/vtkXOpenGLRenderWindow.cxx:31:
    /usr/include/GL/glxext.h:480:143: error: ‘GLintptr’ has not been declared
    eadCtx, GLXContext writeCtx, GLenum readTarget, GLenum writeTarget, GLintptr re
    then either follow at http://stackoverflow.com/questions/28761702/getting-error-glintptr-has-n... or open VTK-directory/Rendering/vtkXOpenGLRenderWindow.cxx and then uncomments the line with text #define GLX_GLXENT_LEGACY and perform sudo make
    (b) If you find difficulty or error in configuring, it is recommended to change INSTALL_PREFIX. Do ccmake /home/"user"/VTK, and then change the CMAKE_INSTALL_PREFIX from /usr/local to /usr. Then, enter c to configure and g to generate.
    (c) If you find the error error: 'S_IFLNK' undeclared (first use in this function) then a small commit (http://www.paraview.org/Bug/view.php?id=12568) can fix the issue. Refer to https://sites.google.com/site/rahuliitdhn/liggghts/vtk-compilation-errors
    (d) In any case, if you encounter an error of following type:
    CMake Error at VTK/CMake/vtkCompilerExtras.cmake:47 (if):
    if given arguments:
    "gcc: error: ARGS: No such file or directory
    gcc (GCC) 6.1.1 20160621 (Red Hat 6.1.1-3)

    Then, edit file VTK/CMake/vtkCompilerExtras.cmake for string (REGEX MATCH "[345]\\.[0-9]\\.[0-9]*" to string (REGEX MATCH "[3456]\\.[0-9]\\.[0-9]*". More info at https://www.cfd-online.com/Forums/openfoam-installation/175841-openfoam-...

    sudo make
    sudo make install
    The last instructions will install .h, .a and .cmake files under /usr/local, such as /usr/local/include/vtk-5.8 and /usr/local/lib/vtk-5.8. For convenience of upgrading, it would be useful to create symbolic links (short cut) of /usr/local/include/vtk-5.8 and /usr/local/lib/vtk-5.8 in the global environment:
    cd /usr/local/include
    sudo ln -s vtk-5.8 vtk (It will create a symbolic link named vtk of vtk-5.8 inside /usr/local/include)
    cd /usr/local/lib/
    sudo ln -s vtk-5.8 vtk
    After installing VTK, go to the directory where cmake is installed, e.g. /usr/share/cmake-2.8. Then, go to the subdirectory Modules and open the file FindVTK.cmake and you will see the following lines:
    # The following cache entries must be set by the user to locate VTK:
    # VTK_DIR - The directory containing VTKconfig.cmake.
    At the end of the messages (it could be after (# License text for the above reference.)) add in a new line:
    SET (VTK_DIR "/usr/local/lib/vtk") (Note: This step is generally not required for cmake version 3.0 or more)

  5. ##Installing LIGGGHTS
  6. git clone https://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git $HOME/LIGGGHTS-PUBLIC

    ##Compiling LIGGGHTS with jpg, png support
    gedit /$HOME/LIGGGHTS-PUBLIC/src/MAKE/Makefile.ubuntuVTK
    In the line that defines LMP_INC switch: at the end add a tab followed by "-DLAMMPS_JPEG -DLAMMPS_PNG"
    In the line that defines JPG_INC switch add at the end "-I/usr/include"
    In the line that defines JPG_LIB switch add at the end "-ljpeg -lpng "
    In the line that defines VTK_INC switch replace vtk version 5.2 with installed version 5.8 (or if any other is installed, better to check the version inside directory /usr/include/)
    Note: Sometimes VTK might have been installed in a slightly different location, that depends on its configuration at the first stage. In such a case LIGGGHTS shall not be able to find it, and thus, it will throw error such as
    ../dump custom vtk: fatal error: vtkSmartPointer.h: No such file or directory
    Then, check the VTK location whether it /usr/include/ or /usr/local/include then make appropriate changes in the Makefile line. e.g. VTK_INC = -I/usr/local/include/vtk-5.8
    Similarly, for creating movie file add "-DLAMMPS_FFMPEG" after a tab in LMP_INC switch line. For this you will need FFMPEG package in Ubuntu. See http://www.ffmpeg.org/download.html and http://ubuntuforums.org/showthread.php?t=2219550 for installing FFMPEG in Ubuntu. Or else, you can enter following command:
    sudo add-apt-repository ppa:jon-severinsson/ffmpeg
    sudo apt-get update
    sudo apt-get install ffmpeg
    sudo apt-get install frei0r-plugins

    or
    if [ $(cat /etc/*-release | grep "DISTRIB_CODENAME=" | cut -d "=" -f2) == 'trusty' ];
    then sudo add-apt-repository 'deb http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu trusty main' && sudo add-apt-repository 'deb http://ppa.launchpad.net/jon-severinsson/ffmpeg/ubuntu saucy main' && sudo apt-get update
    fi
    ]

    cd /home/"user"/LIGGGHTS-PUBLIC/src
    sudo make clean-all
    sudo make ubuntuVTK or make fedora
    For problem compiling liggghts 3.0 or more please refer to http://www.cfdem.com/forums/compile-problems
    After successful compiling liggghts:
    sudo ln -s /$HOME/LIGGGHTS-PUBLIC/src/lmp_ubuntuVTK /usr/bin/liggghts
    or
    sudo gedit ~/.bashrc
    Add following lines (with appropriate path) at the end of file and save it.
    alias "liggghts=/path to LIGGGHTS-PUBLIC/src/lmp_ubuntuVTK"

    Open new terminal and type
    liggghts
    Liggghts comes up, telling version, compiling date etc.
    ctrl+d

  7. ##Checking LIGGGHTS for a simulation
  8. cd /home/"user"/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear
    liggghts < in.chute_wear
    Simulation will create dump files in the post folder.

  9. ## Install LPP for postprocessing
  10. sudo apt-get install python-numpy
    sudo git clone https://github.com/CFDEMproject/LPP.git $HOME/LPP
    gedit ~/.bashrc
    add at the bottom alias lpp="python $HOME/LPP/src/lpp.py"

  11. ##Checking the lpp installation
  12. Open new terminal
    cd /home/"user"/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear/post
    lpp dump*.chute
    .vtk files will be created in the post folder which can be used later for visualization of simulation in paraview.

    Alternatively, if you have successfully installed the VTK and compiled LIGGGHTS with VTK support, you can directly write the dump files in vtk format without requiring the vtk conversion as discussed above. An example of such dump command to write directly in vtk is shown below:
    dump dump_id group_id custom/vtk dump_frequency post/dump*.vtk id type type x y z ix iy iz vx vy vz fx fy fz omegax omegay omegaz radius
    Please refer to liggghts manual dump command of cutsom/vtk style for more details.

  13. ##Install Syntax Highlighting for gedit
  14. cd ~
    wget https://sites.google.com/site/rahuliitdhn/files-1/language-specs.tar.gz?...
    Extract the downloaded file or run tar -zxvf language-specs.tar.gz?...
    sudo mv $HOME/language-specs/liggghts.lang /usr/share/gtksourceview-3.0/language-specs

  15. ##Installing paraview
  16. Note: sudo apt-get install paraview install an older version of paraview, which in my case was crashing while opening a .stl file. .stl file represents geometry in LIGGGHTS simulation. I don't about others but in my case it was crashing. So, I decided to install paraview 4.

    Download the latest binary installer tar.gz file of paraview from http://www.paraview.org/paraview/resources/software.php
    Extract the tar.gz file in the same directory
    cd /home/"user"/Downloads {if the tar.gz is downloded in Downloads directory otherwise cd to appropriate directory}
    sudo cp -r ParaView-4.0.1-Linux-32bit /opt/ {Check the folder name for any corrections; make corrections according to 64 bit version}
    Check if it is installed by
    cd ~
    /opt/ParaView-4.0.1-Linux-32bit/bin/paraview {correct for 64 bit paraview, check the exact folder name in /opt/}
    Paraview should open up now
    Add the PATH to bashrc file, so that paraview opens only by entering paraview
    gedit ~/.bashrc
    Add the following line at bottom
    export PATH=/opt/ParaView-4.0.1-Linux-32bit/bin/:$PATH {correct for 64bit paraview}
    Check if paraview installed by entering paraview in new terminal. Check the version of paraview at the top.
    Note: (a) if received error like /opt/ParaView-4.4.0-Qt4-Linux-64bit/lib/paraview-4.4/paraview: error while loading shared libraries: libGenericIO.so: cannot open shared object file: No such file or directory. It is caused by shared library issue especially in Paraview-4.4Qt4.
    Enter the following commands
    cd
    sudo chmod -R a+rx /opt/ParaView-4.4.0-Qt4-Linux-64bit/
    (b) if you have installed any other version of paraview earlier then opening paraview through Dash Home may open a different version.

  17. ##Checking the simulated results
    In paraview, open folder /home/"user"//LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear then select all .stl files. Again, in paraview open folder /home/"user"/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear/post and open all .vtk files.
    Click on Apply they play simulation.
  18. ##Enabling parallel processing in LIGGGHTS
  19. see processors command in manual to add feature in in.script
    gedit ~/.bashrc
    add at the bottom export WM_NCOMPPROCS=2 (where is the number of processors in your pc)
    command to initiate simulation with parallel computing mpirun -np 2 liggghts -in in.script

rahulsoni | Mon, 09/30/2013 - 11:19

My pleasure.... Chris

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

AGl | Mon, 09/30/2013 - 14:39

Thanks for the installation guide.

> Note: sudo apt-get install paraview install an older version of paraview, which in my case was crashing while opening a .stl file

There was a bug in Paraview-version, which was uploaded into Ubuntu 12.04 [1], [2].
It is finally fixed now (hopefully).

> make ubuntuVTK
If you use this makefile, you do need lpp either. Just add as a dump-command the following:
dump dmpVTK all atom/vtk 200 post/dumpVTK_*.vtu

and directly after the simulation you will get dumpVTK-files, which can be opened
by ParaView.

Why actually are you installing VTK from sources? Packaged VTK should work without
even need to modify files, the version of VTK in 12.04 and 13.04 is 5.8.

Please, review all your "sudo"-commands. It should be used only in the case, when it is
really needed. Otherwise, you have a chance to rewrite system-files and break the system.
"sudo cmake .", "sudo make". "sudo git clone" are the commands, which can be executed
from "normal" user. It is not windows with its "administration-rights".

[1] https://bugs.launchpad.net/ubuntu/+source/paraview/+bug/1072053
[2] https://answers.launchpad.net/ubuntu/+source/paraview/+question/231980

rahulsoni | Mon, 10/28/2013 - 18:25

Thanks AGI for your information. I am new to this field and I am learning all these. I struggled to install LIGGGHTS and thereafter though to share how I did it. So, it can benefit others. Sorry for mistakes.

And thanks dmv, its my pleasure.

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

rahulsoni | Thu, 02/06/2014 - 13:50

Sorry for delayed repsonse. You can go ahead with Ubuntu

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

vasava | Thu, 01/23/2014 - 11:28

I managed to follow your instructions and install everything. What should I do to install CFDEM for coupling?? Thanks.

rahulsoni | Thu, 02/06/2014 - 13:55

Sorry for delayed response. Which verison of LIGGGHTS it is. From where you have downloded it

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

rahulsoni | Thu, 02/06/2014 - 14:35

A similar problem of mine was solved by sudo make ubuntuVTK followed by sudo make clean-all

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

rahulsoni | Sat, 02/08/2014 - 08:25

A similar problem of mine was simply solved by sudo make clean-all

rahul@rahul:~/LIGGGHTS-PUBLIC/src$ sudo make ubuntuVTK
[sudo] password for rahul:
grep: angle_*.h: No such file or directory
grep: dihedral_*.h: No such file or directory
grep: improper_*.h: No such file or directory
make[1]: Entering directory `/home/rahul/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK'
make[1]: *** No rule to make target `/usr/include/i386-linux-gnu/bits/predefs.h', needed by `angle.o'. Stop.
make[1]: Leaving directory `/home/rahul/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK'
make: *** [ubuntuVTK] Error 2

rahul@rahul:~/LIGGGHTS-PUBLIC/src$ sudo make clean-all
rm -rf Obj_*

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

Daddy | Mon, 01/27/2014 - 10:14

Hey people,

I am trying to run a small example with LIGGGHTS but i am having hard time, i get this error from my terminal:
LIGGGHTS 1.5.3 based on lammps-10Mar10
Created orthogonal box = (-0.5 -0.2 -0.4) to (0.1 0.2 0.15)
1 by 1 by 1 processor grid
ERROR: Invalid pair style
kabagire@kabagire-K75DE:~/LIGGGHTS-PUBLIC/examples/LIGGGHTS/Tutorials_public/chute_wear$

please can some one give me some clue,
Regards

rahulsoni | Thu, 02/06/2014 - 13:54

Opt for the latest version of LIGGGHTS. Lots have changed

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

EhsanCFD | Fri, 02/07/2014 - 14:26

when I try sudo make ubuntuVTK I get
make[1]: *** No rule to make target `angle.o', needed by `../lmp_ubuntuVTK'. Stop.
make[1]: Leaving directory `/home/ehsan/LIGGGHTS/Software/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK'
make: *** [ubuntuVTK] Error 2

I tried sudo make clean-all before that and I got
rm -rf Obj_*

Any idea whats the problem ?

EhsanCFD | Fri, 02/07/2014 - 15:23

I tried make fedora, which instaled ligghts but I guess there will be problem for vtk post processing

rahulsoni | Fri, 02/07/2014 - 16:02

heard about this problem from multiple platforms. Expecting LIGGGHTS developer to comment on this.

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

PaulWinkler's picture

PaulWinkler | Thu, 02/13/2014 - 11:00

Hi,

can confirm that. That's how it worked for me on Mint 16 Cinnamon (short version, no jpeg, png, vtk, mpi...) :


## Install Liggghts 3.x by compiling
## 1. Install Packages
sudo apt-get install git libvtk5-dev libeigen2-dev libopenmpi-dev
which mpic++
/usr/bin/mpic++ comes up?
## 2. Get Liggghts via Git
cd ~
git clone https://github.com/CFDEMproject/LIGGGHTS-PUBLIC
## 3. Compiling Liggghts
cd $HOME/LIGGGHTS-PUBLIC/src
make clean-all
make stubs
make serial
sudo ln -s /$HOME/LIGGGHTS-PUBLIC/src/lmp_serial /usr/bin/liggghts
liggghts
Liggghts comes up, telling version, compiling date etc.

On SuseLE compiling looks fine, no errors, but LIGGGHTS doesn’t run proper. Tried different compilers, versions ans flags. All I git was files between 3 and 80 MB size. There's the same error with pair styles, but the script is running fine on an other machine with version 3.0...

Regards,
Paul

rahulsoni | Tue, 03/25/2014 - 15:03

For those who encountered following error:
hplaptop@hplaptop:~/LIGGGHTS-PUBLIC/src$ sudo make ubuntuVTK
make[1]: Entering directory `/home/hplaptop/.local/share/Trash/files/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK'
make[1]: *** No rule to make target `angle.o', needed by `../lmp_ubuntuVTK'. Stop.
make[1]: Leaving directory `/home/hplaptop/.local/share/Trash/files/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK'
make: *** [ubuntuVTK] Error 2

I have also encountered the same error. Then I noticed I did not follow the following part of step 3:

After installing VTK, go to the directory where cmake is installed, e.g. /usr/share/cmake-2.8. Then, go to the subdirectory Modules and open the file FindVTK.cmake and you will see the following lines:
# The following cache entries must be set by the user to locate VTK:
# VTK_DIR - The directory containing VTKconfig.cmake.
At the end of the messages (it could be after (# License text for the above reference.)) add in a new line:
SET (VTK_DIR "/usr/local/lib/vtk")

After correct procedure I got the package compiled.

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

rahulsoni | Tue, 03/25/2014 - 16:00

Web links are updated now

--
Regards

Rahul Kumar Soni
Scientist, CSIR - IMMT, India

Soumen Maji's picture

Soumen Maji | Sat, 05/17/2014 - 13:07

Sir, I've UBUNTU- 13.10. and OpenFoam-2.3.0. I've installed LIGGGHTS (serial no. 4 which you have mentioned at the beginning).
So, please tell me sir that (I) this UBUNTU and OpenFoam version are fine with LIGGGHTS? (2) If yes then how I execute LIGGGHTS tutorials (means commands or syntax) ? and If no then what I've to do for my case? (3) shall I install all parts which you have mentioned at the beganning for complete CFDEM COUPLING? This OpenFoam and UBUNTU version are fine for CFDEM COUPLING?

SOUMEN

Misterblobby | Sat, 06/28/2014 - 16:39

Has anyone tried this procedure on Ubuntu 14.04, with the newest version of liggghts?

ansubru | Wed, 07/09/2014 - 15:14

Good day Sir!!

I would firstly like to thank you for posting this step-wise installation guide. It was very helpful. I have followed all the steps and when i execute 'liggghts' in a fresh terminal after compilation (step 4 last few bits) I get the following error..

ask@ask-HP-Z230-Tower-Workstation:~$ liggghts
--------------------------------------------------------------------------
A requested component was not found, or was unable to be opened. This
means that this component is either not installed or is unable to be
used on your system (e.g., sometimes this means that shared libraries
that the component requires are unable to be found/loaded). Note that
Open MPI stopped checking at the first component that it did not find.

Host: ask-HP-Z230-Tower-Workstation
Framework: crs
Component: none
--------------------------------------------------------------------------
[ask-HP-Z230-Tower-Workstation:30334] *** Process received signal ***
[ask-HP-Z230-Tower-Workstation:30334] Signal: Segmentation fault (11)
[ask-HP-Z230-Tower-Workstation:30334] Signal code: Address not mapped (1)
[ask-HP-Z230-Tower-Workstation:30334] Failing at address: 0x28
[ask-HP-Z230-Tower-Workstation:30334] [ 0] /lib/x86_64-linux-gnu/libpthread.so.0(+0xfcb0) [0x7f6f407e6cb0]
[ask-HP-Z230-Tower-Workstation:30334] [ 1] /usr/lib/libopen-pal.so.0(mca_base_select+0x108) [0x7f6f39641518]
[ask-HP-Z230-Tower-Workstation:30334] [ 2] /usr/lib/libopen-pal.so.0(opal_crs_base_select+0x7e) [0x7f6f3965390e]
[ask-HP-Z230-Tower-Workstation:30334] [ 3] /usr/lib/libopen-pal.so.0(opal_cr_init+0x31e) [0x7f6f396320ee]
[ask-HP-Z230-Tower-Workstation:30334] [ 4] /usr/lib/libopen-pal.so.0(opal_init+0x159) [0x7f6f39631a59]
[ask-HP-Z230-Tower-Workstation:30334] [ 5] /usr/lib/libopen-rte.so.0(orte_init+0x4d) [0x7f6f3cd4fa0d]
[ask-HP-Z230-Tower-Workstation:30334] [ 6] /usr/lib/libmpi.so.0(+0x362e1) [0x7f6f40f3c2e1]
[ask-HP-Z230-Tower-Workstation:30334] [ 7] /usr/lib/libmpi.so.0(MPI_Init+0x16b) [0x7f6f40f5d3fb]
[ask-HP-Z230-Tower-Workstation:30334] [ 8] liggghts(main+0x1d) [0x5d44ed]
[ask-HP-Z230-Tower-Workstation:30334] [ 9] /lib/x86_64-linux-gnu/libc.so.6(__libc_start_main+0xed) [0x7f6f4043876d]
[ask-HP-Z230-Tower-Workstation:30334] [10] liggghts() [0x5d5981]
[ask-HP-Z230-Tower-Workstation:30334] *** End of error message ***
Segmentation fault (core dumped)

I have no idea what is going on. There must be some issue with the open-mpi package. I ran pre-requisite checks and my 12.04 LTS has this package installed (as desired by the program). I have repeatedly tried to clear dependencies (sudo make clean all) and re-compile the program. But every time I land in this error. Could you help me out in any manner??

Best regards

ansubru

ansubru | Thu, 07/10/2014 - 12:10

Hi again!!

I was able to install liggghts after a lot of effort. It turns out that were some issues with my open-mpi libraries. I re-installed the latest open-mpi libraries and the program installation works like a charm ..

ansubru

marcelo | Wed, 03/22/2017 - 14:29

I have done all the procedures described in this topic. When I tried to perform a tutorial (conveyor) in the Ligggths directory, he advised me to install Liggghts through "sudo apt-get install liggghts". Why?

j-kerbl's picture

j-kerbl | Mon, 04/10/2017 - 19:26

Hi Marcelo,

the ubuntuVTK Makefile of LIGGGHTS is designed to work with VTK-5.8
If you use the new auto Makefile, -> "make -j nProcs auto" , it should auto-detect the VTK version. And it is designed to work with VTK-7.

Cheers,
Josef

___duffy__ | Sat, 04/29/2017 - 04:44

Hi,
I have encountered the following compilation error after following the installation directions posted in this topic precisely except that I used a different add-apt-repository for ffmpeg because the one designated was missing.
I would appreciate any hints to solve this problem.
Regards,
Akio Miyoshi, Dr. Eng, CEO, Insight, Inc.

miyoshi@liggght-dem:~/workspace/work_liggghts/LIGGGHTS-PUBLIC/src$ sudo make ubuntuVTK
[sudo] password for miyoshi:
mv: cannot stat 'style_contact_model.tmp': No such file or directory
make[1]: Entering directory `/home/miyoshi/workspace/work_liggghts/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK'
mpic++ -O2 -funroll-loops -fstrict-aliasing -Wall -Wno-unused-result -DLAMMPS_GZIP -DLAMMPS_VTK -DLAMMPS_JPEG -DLAMMPS_PNG -DLAMMPS_FFMPEG -I/usr/include -I/usr/include/vtk-5.8 -c ../universe.cpp
mpic++ -O2 angle.o angle_hybrid.o atom.o atom_map.o atom_vec.o atom_vec_atomic.o atom_vec_charge.o atom_vec_ellipsoid.o atom_vec_hybrid.o atom_vec_line.o atom_vec_sph.o atom_vec_sph_var.o atom_vec_sphere.o atom_vec_sphere_w.o bond.o bond_hybrid.o bounding_box.o cfd_datacoupling.o cfd_datacoupling_file.o cfd_datacoupling_mpi.o cfd_regionmodel_none.o change_box.o citeme.o comm.o compute.o compute_atom_molecule.o compute_bond_local.o compute_centro_atom.o compute_cluster_atom.o compute_cna_atom.o compute_com.o compute_com_molecule.o compute_contact_atom.o compute_coord_atom.o compute_displace_atom.o compute_erotate_multisphere.o compute_erotate_sphere.o compute_erotate_sphere_atom.o compute_group_group.o compute_gyration.o compute_gyration_molecule.o compute_inertia_molecule.o compute_ke.o compute_ke_atom.o compute_ke_multisphere.o compute_msd.o compute_msd_molecule.o compute_nparticles_tracer_region.o compute_pair_gran_local.o compute_pe.o compute_pe_atom.o compute_pressure.o compute_property_atom.o compute_property_local.o compute_property_molecule.o compute_rdf.o compute_reduce.o compute_reduce_region.o compute_rigid.o compute_slice.o compute_stress_atom.o compute_surface.o compute_temp.o contact_models.o container_base.o create_atoms.o create_box.o custom_value_tracker.o delete_atoms.o delete_bonds.o dihedral.o dihedral_hybrid.o displace_atoms.o domain.o dump.o dump_atom_vtk.o dump_custom.o dump_custom_vtk.o dump_custom_vtm.o dump_decomposition_vtk.o dump_euler_vtk.o dump_image.o dump_local.o dump_local_gran.o dump_local_gran_vtk.o dump_mesh.o dump_mesh_stl.o dump_mesh_vtk.o dump_movie.o dump_particle.o dump_xyz.o error.o finish.o fix.o fix_adapt.o fix_addforce.o fix_ave_atom.o fix_ave_correlate.o fix_ave_euler.o fix_ave_histo.o fix_ave_spatial.o fix_ave_time.o fix_aveforce.o fix_base_liggghts.o fix_box_relax.o fix_buoyancy.o fix_cfd_coupling.o fix_cfd_coupling_convection.o fix_cfd_coupling_convection_impl.o fix_cfd_coupling_convection_species.o fix_cfd_coupling_force.o fix_cfd_coupling_force_implicit.o fix_check_timestep_gran.o fix_check_timestep_sph.o fix_contact_history.o fix_contact_history_mesh.o fix_contact_property_atom.o fix_contact_property_atom_wall.o fix_continuum_weighted.o fix_deform.o fix_deform_check.o fix_diam_max.o fix_drag.o fix_dt_reset.o fix_efield.o fix_enforce2d.o fix_external.o fix_fiber_spring_simple.o fix_freeze.o fix_gravity.o fix_heat_gran.o fix_heat_gran_conduction.o fix_insert.o fix_insert_pack.o fix_insert_rate_region.o fix_insert_stream.o fix_lb_coupling_onetoone.o fix_lineforce.o fix_massflow_mesh.o fix_massflow_mesh_sieve.o fix_mesh.o fix_mesh_surface.o fix_minimize.o fix_momentum.o fix_move.o fix_move_mesh.o fix_multicontact_halfspace.o fix_multisphere.o fix_multisphere_break.o fix_multisphere_comm.o fix_neighlist_mesh.o fix_nve.o fix_nve_limit.o fix_nve_noforce.o fix_nve_sph.o fix_nve_sph_stationary.o fix_nve_sphere.o fix_particledistribution_discrete.o fix_planeforce.o fix_print.o fix_property_atom.o fix_property_atom_timetracer.o fix_property_atom_tracer.o fix_property_atom_tracer_stream.o fix_property_global.o fix_read_restart.o fix_region_variable.o fix_respa.o fix_rigid.o fix_scalar_transport_equation.o fix_setforce.o fix_sph.o fix_sph_density_continuity.o fix_sph_density_corr.o fix_sph_density_summation.o fix_sph_pressure.o fix_spring.o fix_spring_rg.o fix_spring_self.o fix_store.o fix_store_force.o fix_store_state.o fix_template_multiplespheres.o fix_template_multisphere.o fix_template_sphere.o fix_viscous.o fix_wall.o fix_wall_gran.o fix_wall_region.o fix_wall_region_sph.o fix_wall_sph.o force.o global_properties.o granular_pair_style.o granular_styles.o granular_wall.o group.o image.o improper.o improper_hybrid.o input.o input_mesh_tet.o input_mesh_tri.o input_multisphere.o integrate.o irregular.o kspace.o lammps.o lattice.o library.o library_cfd_coupling.o main.o math_extra.o memory.o mesh_module.o mesh_module_liquidtransfer.o mesh_module_stress.o mesh_module_stress_servo.o mesh_mover.o min.o min_cg.o min_linesearch.o minimize.o modified_andrew.o modify.o modify_liggghts.o multisphere.o multisphere_parallel.o neigh_bond.o neigh_derive.o neigh_dummy.o neigh_full.o neigh_gran.o neigh_half_bin.o neigh_half_multi.o neigh_half_nsq.o neigh_list.o neigh_request.o neigh_respa.o neigh_stencil.o neighbor.o output.o pair.o pair_gran.o pair_gran_proxy.o pair_hybrid.o pair_hybrid_overlay.o pair_soft.o pair_sph.o pair_sph_artvisc_tenscorr.o particleToInsert.o particleToInsert_multisphere.o procmap.o properties.o property_registry.o random.o random_mars.o random_park.o read_data.o read_dump.o read_restart.o reader.o reader_native.o reader_xyz.o region.o region_block.o region_cone.o region_cylinder.o region_intersect.o region_mesh_tet.o region_neighbor_list.o region_plane.o region_prism.o region_sphere.o region_union.o region_wedge.o replicate.o respa.o rotate.o run.o run_time.o set.o sort_buffer.o special.o tet_mesh.o thermo.o timer.o tri_mesh.o tri_mesh_planar.o universe.o update.o variable.o velocity.o verlet.o write_data.o write_dump.o write_restart.o -ljpeg -lpng -lvtkCommon -lvtkFiltering -lvtkIO -lvtkParallel -lstdc++ -o ../lmp_ubuntuVTK
/usr/bin/ld: dump_mesh.o: undefined reference to symbol '_ZN17vtkAppendPolyData3NewEv'
//usr/lib/libvtkGraphics.so.5.8: error adding symbols: DSO missing from command line
collect2: error: ld returned 1 exit status
make[1]: *** [../lmp_ubuntuVTK] Error 1
make[1]: Leaving directory `/home/miyoshi/workspace/work_liggghts/LIGGGHTS-PUBLIC/src/Obj_ubuntuVTK'
make: *** [ubuntuVTK] Error 2

kashif saeed | Thu, 07/13/2017 - 10:05

Hi,
Can anyone help me how to install newer version of liggghts public 3.6 or 3.7?
I have used command "sudo apt-get install liggghts" in terminal of ubuntu but after installation it give version 3.3.1 not latest version of liggghts.
thanks in advance