1. Installation - adam-zlatniczki/dimensional_causality GitHub Wiki
The install process assumes that your Python/R environment was built on the same architecture as your processor. This means that if you have a 64 bit OS but use 32 bit Python or R, then the package won't work. In that case you manually have to modify the install scripts by adding the '-m32' flag to the g++ commands. Typical installation time depends on your machine, but in general, a few minutes should be sufficient. The installation process was tested with GNU g++ 7.2.0, PIP 18.0, Rtools 3.4.0.1964.
1.1 - C++
1.1.1 - Prerequisites
- Windows
- Install mingw
- Add its bin directory to your system path
- Unix
- Run
apt-get install g++ apt-get install make
- Run
1.1.2 - Installation
- move to C++/OpenMP
- On Windows, run
mingw32-make
- On Unix, run
make
- the built dll/so can be found in the C++/OpenMP/bin directory
1.2 - Python
1.3.1 - Prerequisites
- Windows
- Install mingw
- Add its bin directory to your system path
- Unix
- Run
apt-get install g++
- Run
1.3.2 - Installation
- move to the root directory, where you can find setup.py
- run
pip install .
1.3 - R
1.3.1 - Prerequisites
- Windows:
- Install rtools
- Make sure that Rtools\bin and Rtools\mingw_XX\bin (XX being 32 or 64, depending on your OS) are added to your system path (you should set this during the Rtools install with a checkbox)
- Unix:
- Run
apt-get install g++ apt-get install make
- Run
1.3.2 - Installation
- move to the R directory
- run
R CMD INSTALL dimensionalcausality