0 votes
asked by (120 points)


I run into problems when installing itensor on Linux(Ubuntu 18.04 ). Here is the error message after running the make file:

Makefile:2: /home/essa/itensor/thisdir.mk: No such file or directory
make: *** No rule to make target '/home/essa/itensor/this
dir.mk'. Stop.

Do you have any idea what went wrong?


commented by (14.1k points)
Which version of ITensor are you using? If you are using git, could you run `git status` to see what branch you are on?

It looks like maybe your `Makefile` has been modified, since it should search for `this_dir.mk`, not `thisdir.mk`.
commented by (120 points)
On branch v2
commented by (70.1k points)
Hi, could you try doing "make clean" at the top level of your itensor folder then do "make" again? If you then get the same error, can you please do "ls" and see if there is a file called "this_dir.mk" and also please tell us what is inside this file? Thank you -

commented by (120 points)
Thanks for the reply. I followed your instructions, but I still have the same problem.
by the way there is no file called "this_dir.mk" .


Please log in or register to answer this question.

Welcome to ITensor Support Q&A, where you can ask questions and receive answers from other members of the community.

Formatting Tips:
  • To format code, indent by four spaces
  • To format inline LaTeX, surround it by @@ on both sides
  • To format LaTeX on its own line, surround it by $$ above and below
  • For LaTeX, it may be necessary to backslash-escape underscore characters to obtain proper formatting. So for example writing \sum\_i to represent a sum over i.
If you cannot register due to firewall issues (e.g. you cannot see the capcha box) please email Miles Stoudenmire to ask for an account.

To report ITensor bugs, please use the issue tracker.