Install Esys-Particle on Ubuntu 13.04

Asked by Ray Mong

I install it on my ubuntu13.04 following https://answers.launchpad.net/esys-particle/+faq/1613
2) Install packages that ESyS-Particle depends on:
A) Development tools:
sudo apt-get install libtool automake build-essential bzr

B) MANDATORY dependencies:
[For ubuntu-12.04 and later]
sudo apt-get install mpi-default-bin mpi-default-dev libboost-all-dev

[Povray installation for ubuntu-12.04 and later variants]
1) Manually install the povray binaries, downloadable from here:
http://www.povray.org/download/linux.php
install Povray following the instruction in the link above.

C) OPTIONAL dependencies:
sudo apt-get install libvtk5-dev python-epydoc

4) Configure bazaar:
bzr whoami "huajun_ming@163.com"

5) Configure bazaar to use launchpad repositories:
A) Generate ssh key:
ssh-keygen -t rsa

B) Upload public key contents to your launchpad homepage (~/.ssh/id_rsa.pub)
C) Configure bazaar launchpad login information:
bzr launchpad-login launchpad-username

6) Obtain a copy of the latest development version of ESyS-Particle and change to the top-level ESyS-Particle directory:
bzr branch lp:esys-particle
cd esys-particle

7) Compile and install ESyS-Particle:
sh autogen.sh
./configure CC=mpicc CXX=mpic++
make
sudo make install
cd

8) Set up shell environment variables (e.g. using bash):
export PATH=/usr/local/bin/:$PATH
export LD_LIBRARY_PATH=/usr/local/lib/:$LD_LIBRARY_PATH
export LIBRARY_PATH=/usr/local/lib/:$LIBRARY_PATH
export PYTHONPATH=/usr/local/lib/python2.7/dist-packages/:$PYTHONPATH
my python version is 2.7.4

9) Run a test script (e.g. bingle_output.py from the ESyS-Particle Tutorial):
mpirun -np 2 `which mpipython` bingle_output.py

but it may be something wrong when I have run the last step.
The informations showed below which was showed in the terminal.

minghuajun@minghuajun-Lenovo:~$ mpirun -np 2 'which mpipython' bingle_output.py
--------------------------------------------------------------------------
mpirun was unable to launch the specified application as it could not find an executable:

Executable: which mpipython
Node: minghuajun-Lenovo

while attempting to start process rank 0.
--------------------------------------------------------------------------
minghuajun@minghuajun-Lenovo:~$

What is the problem? And how to solve it?
Thank you very much!

Question information

Language:
English Edit question
Status:
Answered
For:
ESyS-Particle Edit question
Assignee:
No assignee Edit question
Last query:
Last reply:
Revision history for this message
Vince Boros (v-boros) said :
#1

Hello Ray:

Your command line was:

  mpirun -np 2 'which mpipython' bingle_output.py

when it should be:

  mpirun -np 2 `which mpipython` bingle_output.py

Look for the back-slanted quote key on your keyboard instead of the upright single quote.

Regards,

Vince

Revision history for this message
Dion Weatherley (d-weatherley) said :
#2

Hi Ray,

On ubuntu, you can also use the following command to run simulations:
mpirun -np 2 esysparticle bingle_output.py

Cheers,

Dion.

Revision history for this message
Ray Mong (huajun-ming) said :
#3

minghuajun@minghuajun-Lenovo:~$ mpirun -np 2 esysparticle bingle_output.py
CSubLatticeControler::initMPI()
esysparticle: can't open file 'bingle_output.py': [Errno 2] No such file or directory

There is not 'bingle_output.py'.
And I searched the diretory 'esysparticle', I can only get 'bingle_output.jpg' in ./home/minghuajun/esys-particle/Doc/Tutorial, and 'bingle_output.py.tex' in /home/minghuajun/esys-particle/Doc/Tutorial/examples
So there must be something wrong in my installation process.

The installation procedures which I followed listed in my question.

For povray installation, it has not followed the instruction of 'https://answers.launchpad.net/esys-particle/+faq/1613' , I install Povray following the instruction in the link given by https://answers.launchpad.net/esys-particle/+faq/1613.

For set up shell environment variables, I run four orders in the terminal, although python version is 2.7.4

So what is the problem?
Thank you.

Revision history for this message
Dion Weatherley (d-weatherley) said :
#4

Hi Ray,

bingle_output.py is one of the example scripts described in the ESyS-Particle Tutorial. You will need to use a text editor and write that script according to the instructions in the Tutorial.

The Tutorial is installed under /usr/local/share/doc/esys-particle by default on Ubuntu systems. One can also download the Tutorial from the launchpad downloads page:
https://launchpad.net/esys-particle/+download

Cheers,

Dion

Revision history for this message
Anton Gladky (gladky-anton) said :
#5

Raring has in the main archive 2.1.4 version. So if it is ok for you, do just:
sudo apt-get install esys-particle

mpirun -np 2 esysparticle ............

Anton

Revision history for this message
Ray Mong (huajun-ming) said :
#6

where should be bingle_output.py stored in?Thank you very much.
@d-weatherley

Revision history for this message
Dion Weatherley (d-weatherley) said :
#7

Hi Ray,

You can save bingle_output.py in any directory and execute ESyS-Particle from that directory. For simulations that generate output files, those files will be saved in the same directory as the script used to execute the simulation.

Cheers,

Dion

Can you help with this problem?

Provide an answer of your own, or ask Ray Mong for more information if necessary.

To post a message you must log in.