Forums
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
/download-liggghtsr-public
Can someone please provide some help with this issue ?
Thanks
Is it installed correctly?
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 liggghtsThe output should be somethink like
liggghts is /usr/local/bin/liggghtsBests
Andreas
In reply to Is it installed correctly? by aaigner
LIGGGHTS Install
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
In reply to LIGGGHTS Install by MIDaniel
use the standard way
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
In reply to use the standard way by aaigner
STILL NOT WORKING
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
In reply to STILL NOT WORKING by MIDaniel
logs, ...
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
In reply to logs, ... by aaigner
Error log
Hello,
The log file simply has : make: *** [ubuntu] Error 1
Thanks.
Best regards,
Daniel
In reply to logs, ... by aaigner
Log
Hello,
Any update on this ?
Thank you.
Best regards,
Daniel
broken file
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
sound's like an access right
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 liggghtsshould give you
lrwxrwxrwx 1 root root 40 Feb 15 2013 liggghts -> /home/dem/LIGGGHTS-PUBLIC/src/lmp_fedoraif 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 liggghtsNow 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 !
In reply to sound's like an access right by richti83
different error
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
did you create the new
did you create the new symlink in /usr/bin ?
What is the output of
whereis liggghtsandls -la /usr/bin/liggghtsIn reply to did you create the new by richti83
output
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
obviously you need to change
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]$thandemwould 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.p… at chapter 17 to learn some basics about the shell.
In reply to obviously you need to change by richti83
thanks
Hello,
Thank you, it seams to be working now !
Best regards,
Daniel