Unable to run moltemplate (Command not found error)

Dear all,

I am trying to run moltemplate and installed all prerequisites like anaconda python, numpy but still I am not able to run the moltemplate. I am writing the script that I used to run it. Can anybody help me.

ashish@…1250…531…:~$ export PATH="PATH:/home/ashish/moltemplate_2015-9-22/src"ashish@…1531…:~ export MOLTEMPLATE_PATH="/home/ashish/moltemplate_2015-9-22/common"
ashish@…1531…:~$ export PYTHONPATH="PYTHONPATH:/home/ashish/pizza-2Jul14/src"[email protected]...:~ moltemplate.sh
moltemplate.sh: command not found

Thanks in advance
ashish srivastava
MNIT Jaipur
INDIA

Looks like your shell file is not executable yet.

chmod +x moltemplate.sh or chmod u+x moltemplate.sh

Arthur

Looks like your shell file is not executable yet.
chmod +x moltemplate.sh or chmod u+x moltemplate.sh
Arthur

Thanks Arthur. Indeed that might be a problem.

...I also see a problem with Ashish's other commands, for example, why
is there a "" in front of "/home/ashish"? Try this instead:

export PATH="$PATH:$HOME/moltemplate_2015-9-22/src"
export MOLTEMPLATE_PATH="$HOME/moltemplate_2015-9-22/common"

...or this:

export PATH="$PATH:/home/ashish/moltemplate_2015-9-22/src"
export MOLTEMPLATE_PATH="/home/ashish/moltemplate_2015-9-22/common"

If there is a file-permissions problem, then to be on the safe side,
I would follow Arthur's instructions for .sh and .py files in
moltemplate's "src/" subdirectory. For example:

cd /home/ashish/moltemplate_2015-9-22/src/
chmod +x *.sh *.py
# ("chmod 755 *.py *.sh" also works)

In that case, the problem probably occured after Ashish unpacked the
tarball. (I just checked that the files in the 9-22 tarball online
have the correct file permissions.) I don't know if this helps, but
I've seen the file-permissions get reset when the user temporarilly
copies the .sh and .py files onto a hard drive formatted with NTFS,
FAT32, HFS, or some other foreign file system. I don't think that's
what happened in this case. I suspect that the real problem is the
extra "$"

Cheers

Andrew

P.S.
(Keep in mind if you don't put these two commands in one of these 3
files: .bashrc or .bash_profile, or .profile files, then you will have
to type these two "export" commands in every time you want to use
moltemplate.)