Surya Teja
Surya Teja

Reputation: 31

mpicxx: Command not found

I am very new to linux. I am trying to build lammps open source software with user defined modules that require to build mpi executable on opensuse leap 15.1. lammps - https://lammps.sandia.gov/doc/Build_make.html

It showed an error: mpicxx xommand not found. after searching i did "sudo zypper in gcc-c++" and tried again. same error so I did "export PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin" and make mpi was successful and it built lmp_mpi executable but when i tried to run with lmp_mpi it showed following error: error while loading shared libraries: libmpi_cxx.so.1: cannot open shared object file: No such file

so I wrote "export PATH=$PATH:/usr/lib64/mpi/gcc/openmpi/bin" in my bashrc file and ran again make mpi and tried again same error is shown.

I tried by installing mpich2 with yast same error is shown.

Then I tried by installing openmpi as shown here http://edu.itp.phys.ethz.ch/hs12/programming_techniques/openmpi.pdf When I tried to build mpi again same error "mpicxx: Command not found error" and also when I open terminal following lines are written already. bash: /home/surya/.bashrc: line 1: syntax error near unexpected token newline' bash: /home/surya/.bashrc: line 1:export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:$HOME/opt/openmpi/lib >'

Someone please help me I have been trying this for long time.

Thanks for the suggestions.

Upvotes: 3

Views: 7620

Answers (1)

Rasoul Kheiri
Rasoul Kheiri

Reputation: 1

Try

"make serial" instead of "make mpi"

Upvotes: -1

Related Questions