LIGGGHTS Instalation

Submitted by MIDaniel on Mon, 05/30/2016 - 14:34

Hello all

I downloaded the LIGGGHTS code , but when I run a script on the examples, for example

liggghts*in.cohesion

(The * above should be the "less than" simbol. I cannot write it in this forum for some reason).

I get an error saying ‘liggghts’ is not installed. I do sudo apt-get install liggghts, but it keeps saying that ‘liggghts’ is not installed.

I followed the instructions on
http://www.cfdem.com/download-liggghtsr-public

Can someone please provide some help with this issue ?

Thanks

aaigner's picture

aaigner | Mon, 06/06/2016 - 17:16

Hi Daniel,

please check if you have installed it correctly. As far as I can see the apt-get package should install the binary (or a symlink) to /usr/bin/liggghts (at least under Ubuntu).
You can test it with
type liggghts
The output should be somethink like
liggghts is /usr/local/bin/liggghts

Bests
Andreas

MIDaniel | Thu, 06/09/2016 - 15:23

Hello,

Sorry for the spam, but I need to start testing LIGGGHTS as soon as possible as it is crucial for my research project.

I tried that command on the folder /usr/bin/ but it said liggghts does not exist.

I tried going there and I saw a file named liggghts but it says the file is broken, it doesn't even let me delete it.

Are there any other installation guidelines that I could use ?

Again, sorry for the spam.

Best regards,
Daniel

aaigner's picture

aaigner | Fri, 06/10/2016 - 00:29

Hi Daniel!

If the apt-get package is broken, I would use the standard installation.

Follow the instruction here
Dependent on your OS, you should use ubuntuVTK, ubuntu_15p10_vtk,... instead of fedora

Best
Andreas

MIDaniel | Fri, 06/10/2016 - 12:40

Hello,

I tried again and its still not working. Maybe it;s related to post processing ? I typed git clone git@github.com:CFDEMproject/LPP.git on the LIGGGHTS directory but it returned an error (permission denied).

Best regards,
Daniel

aaigner's picture

aaigner | Fri, 06/10/2016 - 22:18

Hi Daniel!

It is quite difficult to help you without any logs, error messages, ...

If you go to your LIGGGHTS-PUBLIC/src directory and run again the command
make ubuntu &> compile.log (use the makefile that fits to your system), you redirect the whole output into the log-file. Please add the log-file to this thread.

Bests
Andreas

MIDaniel | Mon, 06/13/2016 - 09:47

Hello,

The log file simply has : make: *** [ubuntu] Error 1

Thanks.

Best regards,
Daniel

MIDaniel | Thu, 06/16/2016 - 13:47

Hello,

Any update on this ?

Thank you.

Best regards,
Daniel

MIDaniel | Tue, 06/07/2016 - 08:58

Hello,

I tried that command on the folder /usr/bin/ but it said liggghts does not exist.

I tried going there and i saw a file named liggghts but it says the file is broken, it doesn't even let me delete it.

Best regards,
Daniel

richti83's picture

richti83 | Thu, 06/16/2016 - 22:10

sound's like an access right problem to me.
let's check step by step:
open a clean console
type cd /usr/bin/
type ls -lh liggghts
should give you lrwxrwxrwx 1 root root 40 Feb 15 2013 liggghts -> /home/dem/LIGGGHTS-PUBLIC/src/lmp_fedora
if there is no link after the -> or it is painted red, than the symlinc points to a non-existing file
when it points to a file (like /home/USERNAME/LIGGGHTS-PUBLIC/src/lmp_fedora) type cd /home/USERNAME/LIGGGHTS-PUBLIC/src/
than type ls -lh lmp_fedora (or what's the current executable name in the link is !!) and see if the user matches the user you are logged in.

When the symlink in /usr/bin/ DOES NOT point to any existing file (colored red in terminal!) remove it with sudo rm liggghts
Now it's time for a fresh, self-compiled version (I don't like packages, you never know where the relevant files lives)

cd $HOME
mkdir LIGGGHTS
cd LIGGGHTS
git clone https://github.com/CFDEMproject/LIGGGHTS-PUBLIC.git
cd LIGGGHTS-PUBLIC
cd src
make fedora -j4
###wait until the build process is finished
./lmp_fedora
#should give LIGGGHTS (Version LIGGGHTS-PUBLIC 3.4.1, compiled [...])
quit
cd /usr/bin/
#create new symlink in global /usr/bin/ directory:
sudo ln -s /home/YOUR_USERNAME/LIGGGHTS/LIGGGHTS-PUBLIC/src/lmp_fedora liggghts
cd $HOME/LIGGGHTS/LIGGGHTS-PUBLIC/exampes/LIGGGHTS/Tutorials_public/movingMeshGran/
mpirun -np 4 liggghts -in in.movingMeshGran
#I don't like the greater-than, smaller than way because when one misstypes it, one writes the input-deck file into the binary and breaks the system, so don't accustom it from the beginning

good luck !

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

MIDaniel | Fri, 06/17/2016 - 09:27

Hello,

Thanks for the reply,

On the last step I get an error saying : "mpirun was unable to launch the specified application as it could not find an executable"

Best regards,
Daniel

richti83's picture

richti83 | Fri, 06/17/2016 - 10:49

did you create the new symlink in /usr/bin ?
What is the output of whereis liggghts and ls -la /usr/bin/liggghts

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

MIDaniel | Fri, 06/17/2016 - 13:40

Hello,

The output of the first is:

liggghts: /usr/bin/liggghts /usr/bin/X11/liggghts /usr/share/man/man2/liggghts.2011-11-4.gz

And the second is:
lrwxrwxrwx 1 root root 59 jun 17 09:20 /usr/bin/liggghts -> /home/YOUR_USERNAME/LIGGGHTS/LIGGGHTS-PUBLIC/src/lmp_fedora

(part of this is red).

Best regards,
Daniel

richti83's picture

richti83 | Fri, 06/17/2016 - 13:50

obviously you need to change "YOUR_USERNAME" by your username .. (the name you login,it is written in front of $ in every terminal, e.g. [dem@pc-dem-T7900]$ than dem would be your username and pc-dem-T7900 the hostname of your computer ...
It would be a good idea to learn linux first before you try using liggghts.
Start here: https://www.iiitd.edu.in/~amarjeet/Files/SM2012/Linux%20Dummies%209th.pdf at chapter 17 to learn some basics about the shell.

I'm not an associate of DCS GmbH and not a core developer of LIGGGHTS®
ResearchGate | Contact

MIDaniel | Fri, 06/17/2016 - 14:38

Hello,

Thank you, it seams to be working now !

Best regards,
Daniel