Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fatal error: itensor/config.h: No such file or directory #399

Open
sbisw002 opened this issue Oct 22, 2021 · 3 comments
Open

fatal error: itensor/config.h: No such file or directory #399

sbisw002 opened this issue Oct 22, 2021 · 3 comments

Comments

@sbisw002
Copy link

I have tried both the github version and the .tar version. Directory ITensor/itensor/ does not have config.h

This error shows when I try the tutorials.

Previous versions had that file, I checked on another laptop.

@emstoudenmire
Copy link
Contributor

Thanks for asking. I notice that you write "ITensor/itensor" with one of them capitalized. Is that the name of the folder that the ITensor source code is actually in?

More generally, what is the folder on your computer holding the code?

Also, did you happen to move the folder after creating it and/or unpacking the .tar.gz file?

Lastly, what Makefile are you using?

@sbisw002
Copy link
Author

ITensor is the name of the unzipped folder. The inside of the folder has exactly these files:
https://github.com/ITensor/ITensor

Inside of ITensor/ITensor has exactly the files:
https://github.com/ITensor/ITensor/tree/v3/itensor
(There doesn't seem to be a config.h in either on my computer or the github version)

In another laptop where I installed itensor couple of years ago, I see the file config.h in that directory.

ITensor is the directory that the .tar.gz file was extracted into. I did not move the files after unzipping.

I am using the makefile in the /ITensor/tutorial/01_one_site and /ITensor/tutorial/01_two_site as-is.

@emstoudenmire
Copy link
Contributor

Thanks! I see. That's the right Makefile to use for your own project based on ITensor.

Did you build the ITensor Library itself? That is, did you do the steps described in the file INSTALL.md? Thanks.

Those steps are what should generate the config.h file for you. (It is a detail of the building of the library you aren't supposed to need to know about, but I understand here it came up in the error message you saw.)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants