-
Notifications
You must be signed in to change notification settings - Fork 30
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
Inaccurate Compile Instructions #273
Comments
I've had the same issue. For some reason, I couldn't find CMake files for ambit from psi4 installation. Then I decided to build ambit from source, but after that when I'm trying to build forte, it has an issue with the version of HDF5 library.
Can anyone please suggest a fix to this issue? |
I think if you install ambit via conda, the directory should be the conda environment directory. Inside the directory, you will find ambit related files inside For the second message, it is likely different HDF5 was used to compile Psi4 and Ambit. |
I have tried to build psi4 from scratch with intel compilers(icx/icpx), and forte seems to issues with them. |
Sorry, I am a bit confused. Is this a new issue related to ambit or not? I do not think the HDF5 problem has anything to do with compilers. Please provide both the outputs when you type |
Here's my output from cmake:
and the output from make:
Note: I have psi4 installed within the current conda environment. |
@vijaymocherla Thanks for the input. However, the cmake output seems incomplete. Would you mind to first remove I have not compiled with Psi4 nor Forte using intel compilers. But I did use gcc on Linux and clang on MacOS a couple of days ago. By the way, the same compilers should be used to compile Psi4 and Forte. You may want to checkout how Forte is built on azure pipeline. |
@lcyyork I've tried compiling forte with intel compilers(oneAPI or otherwise) a couple of times, but unfortunately all of them fell through. I could finally compile, a copy with gcc. Here's what worked for me on linux, it follows @fevangelista 's recent post, that has a recipe to build forte on macOS. # create a fresh conda environment
conda create -n forte
conda install psi4-dev python=3.8 -c psi4/label/dev
cd ~/software
# clone psi4 repo
git clone https://www.github.com/psi4/psi4
cd psi4
psi4-path-advisor --gcc
cmake (whatever you get from path-advisor)
cd objdir && make -j(num cores to compile)
cd stage/bin/ && ./psi4 --psiapi-path # copy the output to .bashrc
# install some dependencies needed for psi4
conda install -c conda-forge pythreejs
conda install nodejs -c conda-forge --repodata-fn=repodata.json
jupyter labextension install @jupyter-widgets/jupyterlab-manager
jupyter labextension install jupyter-threejs
# clone forte
cd ~/software/
git clone https://github.com/evangelistalab/forte
cd forte
psi4 --plugin-compile
# use the output to compile forte with
# -Dambit_DIR=$ambit_dir \
# -DCMAKE_BUILD_TYPE=$build_type \
# -DENABLE_ForteTests=TRUE
# you can find $ambit_dir with $ locate share/cmake/ambit
# it should be some where inside you conda (path to conda)/envs.
$ cmake `psi4 --plugin-compile` -Dambit_DIR=$ambit_dir \
-DCMAKE_BUILD_TYPE=RelwithDebInfo \
-DENABLE_ForteTests=TRUE
$ make -j(num cores to compile) |
The install instructions in
README.md
don't mention that Boost needs to already be installed before you can install Forte. I had to install that myself (after resolving some conda conflicts) before I could attempt a compile.@fevangelista
The text was updated successfully, but these errors were encountered: