cfdemSysTest -command not found!

Submitted by almonds22 on Mon, 10/13/2014 - 12:45

Hi All,

I went through the CFDEM coupling pdf guide, and I followed the instructions in an attempt to compile LIGGGHTS(R) and CFDEM(R) compiling. However, prior to that the "cfdemSysTest" command didn't work, instead the following message pops up:

If 'cfdemSysTest' is not a typo you can run the following command to lookup the package that contains the binary:
command-not-found cfdemSysTest
-bash: cfdemSysTest: command not found

I have OpenFoam 2.3.x. installed, and the latest cfdem package straight from github.

I would be very grateful if you could assist me!

Thanks in advance!!

Lance

aaigner's picture

aaigner | Mon, 10/13/2014 - 14:31

Hi Lance,

The command (or to be correct the alias) cfdemSysTest is set in the CFDEM_bashrc. In the pdf guide is the point 'Set Environment Variables'. Please, check if you set correctly the variables. In your bashrc '~/.bashrc' you should have added the lines
#================================================#
#- source cfdem env vars
export CFDEM_VERSION=PUBLIC
export CFDEM_PROJECT_DIR=$HOME/CFDEM/CFDEMcoupling-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_SRC_DIR=$CFDEM_PROJECT_DIR/src
export CFDEM_SOLVER_DIR=$CFDEM_PROJECT_DIR/applications/solvers
export CFDEM_DOC_DIR=$CFDEM_PROJECT_DIR/doc
export CFDEM_UT_DIR=$CFDEM_PROJECT_DIR/applications/utilities
export CFDEM_TUT_DIR=$CFDEM_PROJECT_DIR/tutorials
export CFDEM_PROJECT_USER_DIR=$HOME/CFDEM/$LOGNAME-$CFDEM_VERSION-$WM_PROJECT_VERSION
export CFDEM_bashrc=$CFDEM_SRC_DIR/lagrangian/cfdemParticle/etc/bashrc
export CFDEM_LIGGGHTS_SRC_DIR=$HOME/LIGGGHTS/LIGGGHTS-PUBLIC/src
export CFDEM_LIGGGHTS_MAKEFILE_NAME=fedora_fpic
export CFDEM_LPP_DIR=$HOME/LIGGGHTS/mylpp/src
export CFDEM_PIZZA_DIR=$HOME/LIGGGHTS/PIZZA/gran_pizza_17Aug10/src
. $CFDEM_bashrc
#================================================#

Check if all the Paths are correct. In particular the line with CFDEM_PROJECT_DIR=...., since this defines the the CFDEM_bashrc -> cfdemSysTest.
So check ..

  • Did you save CFDEMcoupling in the directory $HOME/CFDEM/CFDEMcoupling-PUBLIC-2.3.x?
  • Did you add the lines to your .bashrc?
  • Did you open a new terminal after adding the lines to your bashrc? The changes are applied only for a new terminal!
  • Do you get the correct output for
    $CFDEM_PROJECT_DIR
    $CFDEM_SRC_DIR
    $CFDEM_LIGGGHTS_SRC_DIR
    ?
    You should see something like
    YOUR_USER_NAME@YOUR_MACHINE:~$ $CFDEM_PROJECT_DIR
    bash: /home/YOUR_USER_NAME/CFDEM/CFDEMcoupling-PUBLIC-2.3.x: Is a directory
    .

Bests
Andreas

almonds22 | Wed, 10/15/2014 - 11:17

Hi,

I managed to run cfdemSysTest (paths are now all correctly set), managed to compile LIGGGHTS(R) and CFDEM(R) coupling..but after I run a tutorial (i.e. cfdemsolverpiso/ erguntestmpi) case the following message appears:

./Allrun.sh: line 22: gnome-terminal: command not found

any assistance will be greatly appreciated ! Thanks again!
Lance

almonds22 | Wed, 10/15/2014 - 04:26

Hi Andreas,

Thank you so much for the assistance! Yup I've made some alterations to the .bashrc before I posted this query; i'll need to double check the paths. will get back to you soon
Thanks again!
Lance

mohsen | Wed, 11/26/2014 - 22:08

Dear Lance,

I am new to CFDEM. When I run the tutorials, I get the same error as you mentioned.

./Allrun.sh: line 22: gnome-terminal: command not found

I checked Allrun.sh and found that the problem is with parCFDEMrun.sh
The file is right there in the directory but could not be executed.
Could you please tell me how to solve it?

Thanks
Mohsen

j-kerbl's picture

j-kerbl | Thu, 11/27/2014 - 11:15

Hi Mohsen,
what kind of linux have you set-up?
gnome-terminal should work on all Linux-distributions with gnome installed.
But since this is not working on your machine, you could try to
A) change the command to another terminal command as e.g. xterm, that is present on your machine. However the command options are different for these different terminal types, therefore they have to be adapted!
B) install gnome

Cheers
Josef

mohsen | Fri, 11/28/2014 - 19:58

Dear Joseph,

Thank you for your quick respond. I am running OpenSuSe 12.3.
The problem was that gnome terminal was not installed on my computer and besides I did not have scotch on my system.

Cheers
Mohsen