[lammps-users] Possible bug making with packages

Apologies if this issue has already been commented on. I haven't been getting email from the list recently, but I didn't see it in the archives.

When making the most recent LAMMPS (2Feb10) with an optional package (e.g. make yes-class2) I get an error.


$ make yes-class2
Installing package class2
test: 43: 1: unexpected operator
test: 43: 1: unexpected operator

I'm running Ubuntu 9.10. It looks like /bin/sh doesn't like the '==' in the test expression in the Install.sh script in the package directory. A single '=' works as does /bin/bash in the master Makefile.

James Palko

You're right - it should be =, not ==, for the test command,
unlike in csh. I didn't see the problem b/c my /bin/sh is aliased
to /bin/bash, which apparently accepts both.

I just posted a patch.