Call yade-2017.01a after compilation

Asked by Mike on 2017-04-20

Hi Yade users,

I installed YADE from source code (yade-2017.01a.tar.gz at https://launchpad.net/yade/+download) . After successfully compiling and installing I followed the instruction: After the compilation finished successfully, the new built can be started by navigating to /path/to/installfolder/bin and calling yade (based on version yade-2014-02-20.git-a7048f4):

So i typed: cd /..../bin/yade-2017.01a in terminal but it did not work.

Could you pls help solving my problem or did i type a wrong version of yade?

Thank you so much!
Mike

Question information

Language:
English Edit question
Status:
Solved
For:
Yade Edit question
Assignee:
No assignee Edit question
Solved by:
Mike
Solved:
2017-04-20
Last query:
2017-04-20
Last reply:
Mike (ntthangvn) said : #1

here is the install after I use: make install

make install
[ 0%] Automatic moc for target boot
[ 0%] Built target boot_automoc
[ 1%] Automatic moc for target yade
[ 1%] Built target yade_automoc
[ 1%] Automatic moc for target _GLViewer
[ 1%] Built target _GLViewer_automoc
[ 5%] Built target _GLViewer
[ 83%] Built target yade
[ 85%] Built target boot
[ 85%] Automatic moc for target _polyhedra_utils
[ 85%] Built target _polyhedra_utils_automoc
[ 87%] Built target _polyhedra_utils
[ 87%] Automatic moc for target _packSpheres
[ 87%] Built target _packSpheres_automoc
[ 89%] Built target _packSpheres
[ 89%] Automatic moc for target _packPredicates
[ 89%] Built target _packPredicates_automoc
[ 91%] Built target _packPredicates
[ 91%] Automatic moc for target wrapper
[ 91%] Built target wrapper_automoc
[ 93%] Built target wrapper
[ 93%] Automatic moc for target _packObb
[ 93%] Built target _packObb_automoc
[ 95%] Built target _packObb
[ 95%] Automatic moc for target WeightedAverage2d
[ 95%] Built target WeightedAverage2d_automoc
[ 96%] Built target WeightedAverage2d
[ 96%] Automatic moc for target _utils
[ 96%] Built target _utils_automoc
[ 98%] Built target _utils
[ 98%] Automatic moc for target _customConverters
[ 98%] Built target _customConverters_automoc
[100%] Built target _customConverters
Install the project...
-- Install configuration: ""
-- Installing: /home/thangnguyen/myYade/install/bin/yade-2017.01a-batch
-- Installing: /home/thangnguyen/myYade/install/bin/yade-2017.01a
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/config.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/__init__.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkList.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkSaveLoadClumps.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkViscElPM.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkViscElPM2.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkWeight.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkWirePM.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkClumpHopper.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkPolyhedraCrush.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkCapillaryModels.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkTestTriax.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkViscElEng.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkGravity.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkTestNormalInelasticity.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkLiquidMigration.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/checkTestDummy.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/DEM-PFV-check.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/data/WallStressesCheckTest
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/data/100spheres
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/data/checkTestTriax.spheres
-- Installing: /home/thangnguyen/myYade/install/share/doc/yade-2017.01a/img/yade-logo-note.png
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/boot.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/boot.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/libyade.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/libyade.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/_GLViewer.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/_GLViewer.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/__init__.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/SerializableEditor.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/Inspector.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/img_rc.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/ui_controller.py
-- Up-to-date: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/_GLViewer.so
-- Up-to-date: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/__init__.py
-- Up-to-date: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/SerializableEditor.py
-- Up-to-date: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/Inspector.py
-- Up-to-date: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/img_rc.py
-- Up-to-date: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt/ui_controller.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/system.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/geom.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/params.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/plot.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/runtime.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/post2d.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/remote.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/bodiesHandling.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/ymport.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/deformableelementsutils.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/polyhedra_utils.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/utils.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/timing.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/gridpfacet.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/linterpolation.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_extraDocs.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/export.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/pack.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/mtTkinter.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/engines.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/__init__.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/clump.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/cohesive-chain.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/wrapper.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/core.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/pbc.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/performance/performance.db
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/tests/checks/performance/checkPerf.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/FEMxDEM/mpipool.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/FEMxDEM/saveGauss.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/FEMxDEM/msFEM3D.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/FEMxDEM/simDEM.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/FEMxDEM/msFEM2D.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/FEMxDEM/msFEMup.py
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/WeightedAverage2d.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/WeightedAverage2d.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_utils.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_utils.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_polyhedra_utils.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_polyhedra_utils.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_packPredicates.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_packPredicates.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_packSpheres.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_packSpheres.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_packObb.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_packObb.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/wrapper.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/wrapper.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"
-- Installing: /home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_customConverters.so
-- Set runtime path of "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/_customConverters.so" to "/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/yade/qt:/home/thangnguyen/myYade/install/lib/x86_64-linux-gnu/yade-2017.01a/py/gts"

Mike (ntthangvn) said : #2

oh, i realized my mistake: I should type ./yade-2017.01a
thanks

Huihuang Xia (huihuangxia) said : #3

Hi Mike,

Please open this file folder, myYade/install/bin, in 'bin', can you see a file named 'yade-2017.01a'? If yes, please move to the next step:
2. open a new teminal, and input ' gedit ~/.bashrc' ( there is a blank between t and ~).
3. Copy this line 'alias yade='python SHOME/myYade/install/bin/yade-2017.01a' and place it at the bottom of bashrc, save and exit it.

Huihuang Xia

Mike (ntthangvn) said : #4

Thank you, Xia :)

Mike (ntthangvn) said : #5

the problem has been solved

Jan Stránský (honzik) said : #6

Hello,

> alias yade='python SHOME/myYade/install/bin/yade-2017.01a

this solution works, but e.g. if you install native Ubuntu Yade (sudo apt-get install yade), its name is 'yade' by default, but the name points to yade-2017.01a...

I would prefer exporting PATH to contain yade-2017.01a executable (again in ~/.bashrc file):
export PATH=$HOME/myYade/install/bin:$PATH

cheers
Jan

Mike (ntthangvn) said : #7

Hi Jan,

I did not install native Ubuntu Yade. Do I need to change anything?
I check my computer and it works well with YADE version compiling from source code. now I move into the debug version because i need to implement my new constitutive model for concrete.

thank in advance!
Mike

Jan Stránský (honzik) said : #8

by "native" I mean the version installed by 'sudo apt-get isntall yade'
you don't need to do anything more
the native version provides command 'yade' , which (on Ubuntu 16.04) outputs:
Welcome to Yade 1.20.0
...

after your installation from source (and export PATH in bashrc or alias as below), you shuold have 'yade-2017.01a' command, which outputs:
Welcome to Yade 2017.01a
...

These commands should work as they are (just typing yade + Enter or yade-2017.01a + Enter, without need to 'cd something' or './yade...' tricks)

Concerning the solution by Huihuang Xia, actually it is equally good as I think about it once again, just instead of 'alias yade=...' you write 'alias yade-2017.01a=...' to distinguish different versions

cheers
Jan

Mike (ntthangvn) said : #9

Thank you Jan, now I have a better understanding about the problem.

btw, Is that convenient to ask more questions about debuging YADE here or should I create a new topic? Sorry to ask too many questions at that time since I need to move on the next milestone in my PhD (from using existing constitutive model in YADE into implementing a new one).

regards,
Mike

Jan Stránský (honzik) said : #10

Hi Mike,
have a look at [1]. If the question is closed and your new question is not related to the original topic, please open a new question.
cheers
Jan

[1] https://yade-dem.org/wiki/Howtoask

Mike (ntthangvn) said : #11

Thank you, Jan

I read [1] too :). I should close this topic then move into a new one.

Once again, thank you for your very kind help.

Regards,
Mike