mirror of
https://github.com/LCPQ/quantum_package
synced 2025-01-03 10:05:57 +01:00
Update INSTALL.md
This commit is contained in:
parent
fed3bdcacf
commit
fddd24ed6f
39
INSTALL.md
39
INSTALL.md
@ -5,25 +5,39 @@
|
|||||||
* curl
|
* curl
|
||||||
* m4
|
* m4
|
||||||
* GNU make
|
* GNU make
|
||||||
* Fortran compiler (ifort or gfortran)
|
* Fortran compiler (ifort or gfortran are tested)
|
||||||
* Python 2.7 or new
|
* Python >= 2.7
|
||||||
* Bash
|
* Bash
|
||||||
|
|
||||||
|
|
||||||
## Installing <<Normaly>>
|
## Standard installation
|
||||||
|
|
||||||
1) Run `./setup_environment.sh`
|
1) `./setup_environment.sh`
|
||||||
It will doawnload and install all the requirement
|
|
||||||
(Installing OCaml will take somme time 20min)
|
|
||||||
|
|
||||||
2) `source /home/razoa/quantum_package/quantum_package.rc`
|
This command will download and install all the requirements.
|
||||||
It containt all the environement variable neeeded by the quantum package
|
Installing OCaml and the Core library may take somme time
|
||||||
|
(up to 20min on an old machine).
|
||||||
|
|
||||||
3) Create the Makefile.config who containt all the flag needed by the compilator.
|
2) `source quantum_package.rc`
|
||||||
(`cp ./src/Makefile.config.gfortran ./src/Makefile.config`)
|
|
||||||
|
This file contains all the environement variables neeeded by the quantum package
|
||||||
|
both to compile and run. This should also be done before running calculations.
|
||||||
|
|
||||||
|
3) `cp ./src/Makefile.config.gfortran ./src/Makefile.config`
|
||||||
|
|
||||||
|
Create the ``Makefile.config`` which contains all the flags needed by the compiler.
|
||||||
|
The is also an example for the Intel Compiler (`Makefile.config.ifort`).
|
||||||
|
Edit this file and tune the flags as you want.
|
||||||
|
|
||||||
|
4) `make build`
|
||||||
|
|
||||||
|
It will compile all the executables and tools.
|
||||||
|
|
||||||
|
5) `make binary`
|
||||||
|
|
||||||
|
Optional. It will build a `tar.gz` file containing everything needed to run the quantum package on a
|
||||||
|
machine where you can't compile.
|
||||||
|
|
||||||
4) make build
|
|
||||||
It will compile all the fortran
|
|
||||||
|
|
||||||
## Installing behind a firewall
|
## Installing behind a firewall
|
||||||
|
|
||||||
@ -64,4 +78,3 @@
|
|||||||
|
|
||||||
ssh -fN -D 10000 user@external-server.com
|
ssh -fN -D 10000 user@external-server.com
|
||||||
|
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user