[lammps-users] lammps-21Jan2010

The following instructions below helped me to build lammps-8Dec09 using ubuntu.
However I’m now having trouble building lammps-21Jan10.

When I follow the last step, which is to type “make serial” when in the src directory I get the error.

make: csh: Command not found
make: *** [serial] Error 127

Below are the instructions from the thread in the ubuntu forum that I was trying.

lammps install with makefile.serial no makefile.linux

The following instructions below helped me to build lammps-8Dec09
using ubuntu.
However I'm now having trouble building lammps-21Jan10.

ubuntu doesn't install a csh by default anymore.

you have to install whatever package provides /bin/csh.

axel.

ubuntu doesn't install a csh by default anymore.

Axel is right - you need csh to make/build LAMMPS;
it is invoked by the main Makefile.

I still am amazed they would remove csh from
a default Linux distribution. Bill Joy would be
spinning in his Java-instantiated grave widget,
except he's still alive.

If you have /bin/tcsh you could change the
"csh" in Makefile to "tcsh" and it should work
fine (everywhere except in filenames, like Make.csh).

Does anyone know: is tcsh now more
universal than csh ?? The LAMMPS
makefile could use that instead.

Steve

hi steve,

If you have /bin/tcsh you could change the
"csh" in Makefile to "tcsh" and it should work
fine (everywhere except in filenames, like Make.csh).

the easier way to turn /bin/tcsh into /bin/csh
would be to go to /bin and make a symbolic link. :wink:

Does anyone know: is tcsh now more
universal than csh ?? The LAMMPS

no. most distributions also install a
/bin/csh symlink to /bin/tcsh, unless /bin/csh
is explicitly installed.

makefile could use that instead.

i guess linux distribution maintainers have
read the following webpage once too often.
http://www.gregor.com/dgregor/csh_whynot.html

in recent ubuntu/debian versions, also /bin/sh
is no longer a symbolic link to /bin/bash, but
a link to /bin/dash which also caught many script
writers by surprise, as it is strictly posix compliant
and does not support the many bash-isms that
linux shell script writers learned to love.
i can only speculate about the reasons, reducing
bootup time and memory footprint is one line of
thinking, another is ease of maintenance.

the most portable (and most painful) way to deal
with it, would be to re-write the script(s) to
bourne shell syntax. this is what we (well, i)
did for VMD when the number of complaints began
to increase too much.

cheers,
   axel.

Axel Kohlmeyer wrote:


hi steve,

  
If you have /bin/tcsh you could change the
"csh" in Makefile to "tcsh" and it should work
fine (everywhere except in filenames, like Make.csh).
    

the easier way to turn /bin/tcsh into /bin/csh
would be to go to /bin and make a symbolic link. ;)

  
Does anyone know: is tcsh now more
universal than csh ??  The LAMMPS
    

no. most distributions also install a 
/bin/csh symlink to /bin/tcsh, unless /bin/csh 
is explicitly installed.
  

This thread is a bit old, however if it can be of some use, on ubuntu i was forced to install tcsh instead of csh when building LAMMPS as a library, due to a limit in the maximum string size csh can apparently handle (I made a cursory search through internet for a solution but I didn’t find one. I confess csh is a bit alien to me…):