[lammps-users] lammps compiling problem

Hi all,

I am trying to compile lammps on school computer cluster and got an error, but i cant figure out what the error is.
can anyone please help?

Makefile:93: pair_buck_coul_long.d: No such file or directory
Makefile:93: pair_buck.d: No such file or directory
Makefile:93: pair_comb.d: No such file or directory
Makefile:93: pair_coul_cut.d: No such file or directory
Makefile:93: pair_coul_debye.d: No such file or directory
Makefile:93: pair_coul_long.d: No such file or directory
Makefile:93: pair.d: No such file or directory
Makefile:93: pair_dpd.d: No such file or directory
Makefile:93: pair_dpd_tstat.d: No such file or directory
Makefile:93: pair_eam_alloy.d: No such file or directory
Makefile:93: pair_eam.d: No such file or directory
Makefile:93: pair_eam_fs.d: No such file or directory
Makefile:93: pair_eim.d: No such file or directory
Makefile:93: pair_gauss.d: No such file or directory
Makefile:93: pair_hbond_dreiding_lj.d: No such file or directory
Makefile:93: pair_hbond_dreiding_morse.d: No such file or directory
Makefile:93: pair_hybrid.d: No such file or directory
Makefile:93: pair_hybrid_overlay.d: No such file or directory
Makefile:93: pair_lj96_cut.d: No such file or directory
Makefile:93: pair_lj_charmm_coul_charmm.d: No such file or directory
Makefile:93: pair_lj_charmm_coul_charmm_implicit.d: No such file or directory
Makefile:93: pair_lj_charmm_coul_long.d: No such file or directory
Makefile:93: pair_lj_cut_coul_cut.d: No such file or directory
Makefile:93: pair_lj_cut_coul_debye.d: No such file or directory
Makefile:93: pair_lj_cut_coul_long.d: No such file or directory
Makefile:93: pair_lj_cut_coul_long_tip4p.d: No such file or directory
Makefile:93: pair_lj_cut.d: No such file or directory
Makefile:93: pair_lj_expand.d: No such file or directory
Makefile:93: pair_lj_gromacs_coul_gromacs.d: No such file or directory
Makefile:93: pair_lj_gromacs.d: No such file or directory
Makefile:93: pair_lj_smooth.d: No such file or directory
Makefile:93: pair_morse.d: No such file or directory
Makefile:93: pair_reax.d: No such file or directory
Makefile:93: pair_soft.d: No such file or directory
Makefile:93: pair_sw.d: No such file or directory
Makefile:93: pair_table.d: No such file or directory
Makefile:93: pair_tersoff.d: No such file or directory
Makefile:93: pair_tersoff_zbl.d: No such file or directory
Makefile:93: pair_yukawa.d: No such file or directory
Makefile:93: pppm.d: No such file or directory
Makefile:93: pppm_tip4p.d: No such file or directory
Makefile:93: random_mars.d: No such file or directory
Makefile:93: random_park.d: No such file or directory
Makefile:93: read_data.d: No such file or directory
Makefile:93: read_restart.d: No such file or directory
Makefile:93: region_block.d: No such file or directory
Makefile:93: region_cone.d: No such file or directory
Makefile:93: region.d: No such file or directory
Makefile:93: region_cylinder.d: No such file or directory
Makefile:93: region_intersect.d: No such file or directory
Makefile:93: region_plane.d: No such file or directory
Makefile:93: region_prism.d: No such file or directory
Makefile:93: region_sphere.d: No such file or directory
Makefile:93: region_union.d: No such file or directory
Makefile:93: remap.d: No such file or directory
Makefile:93: remap_wrap.d: No such file or directory
Makefile:93: replicate.d: No such file or directory
Makefile:93: respa.d: No such file or directory
Makefile:93: run.d: No such file or directory
Makefile:93: set.d: No such file or directory
Makefile:93: shell.d: No such file or directory
Makefile:93: special.d: No such file or directory
Makefile:93: thermo.d: No such file or directory
Makefile:93: timer.d: No such file or directory
Makefile:93: universe.d: No such file or directory
Makefile:93: update.d: No such file or directory
Makefile:93: variable.d: No such file or directory
Makefile:93: velocity.d: No such file or directory
g++4 -g -O -DLAMMPS_GZIP -I…/…/lib/reax -DMPICH_SKIP_MPICXX -DFFT_FFTW -M velocity.cpp > velocity.d
/bin/sh: g++4: command not found
make[1]: *** [velocity.d] Error 127
make[1]: Leaving directory `/home/yixinluo/lammps/lammps-5Nov10/src/Obj_g++’
make: *** [g++] Error 2

Hi all,

I am trying to compile lammps on school computer cluster and got an error,
but i cant figure out what the error is.
can anyone please help?

you have to adapt the makefile.

the key error message is "g++4: command not found"
just replace "g++4" with the suitable c++ compiler command on
your machine. g++4 is actually _very_ unusual and only
applies to red hat enterprise linux v.4.x with the optional
gcc-4 compiler packages installed. on most current machines
this compiler is g++.

if this doesn't tell you anything, try to locate a local linux/unix
expert and have that person explain this to you.

cheers,
     axel.

Hi,

Yes i know how to change that in the Makefile, what bothers me is why it says a bunch of “No such file or directory” messages in the error? I try to “make” in the src folder, that should be correct right? no matter which “make” im trying to use, the error always gives many “No such file or directory” messages.

Hi,
Yes i know how to change that in the Makefile, what bothers me is why it
says a bunch of "No such file or directory" messages in the error? I try to

just ignore those messages. they are no errors.
they are just part of the compilation process.
they will only show up if a source file has not been
compiled or has been changed since.

axel.