... | @@ -4,18 +4,17 @@ Below are the steps that should help you install the Ibasam package on your mach |
... | @@ -4,18 +4,17 @@ Below are the steps that should help you install the Ibasam package on your mach |
|
|
|
|
|
# Windows installation
|
|
# Windows installation
|
|
|
|
|
|
|
|
|
|
**Tested with Win7 64bit and WinXP 32bit**
|
|
**Tested with Win7 64bit and WinXP 32bit**
|
|
|
|
|
|
I. Pre-required:
|
|
## Pre-required:
|
|
---
|
|
|
|
a) R installed (32bit and/or 64bit)
|
|
a) R installed (32bit and/or 64bit)
|
|
b) R binaries on the "path" (see http://en.wikipedia.org/wiki/Environment_variable if really you have no ideas what is your "path")
|
|
b) R binaries on the "path" (see http://en.wikipedia.org/wiki/Environment_variable if really you have no ideas what is your "path")
|
|
c) Download and unzip Boost (http://www.boost.org/) to something like "c:/Program Files (x86)/boost"
|
|
c) Download and unzip Boost (http://www.boost.org/) to something like "c:/Program Files (x86)/boost"
|
|
d) Rtools installed and MinGW correctly accessible in the "path" (see https://cran.r-project.org/bin/windows/Rtools/)
|
|
d) Rtools installed and MinGW correctly accessible in the "path" (see https://cran.r-project.org/bin/windows/Rtools/)
|
|
|
|
|
|
II. Steps for installation
|
|
## Steps for installation
|
|
---
|
|
|
|
a) allow the G++ compiler to find the place where the boost folder is (typically inside a boost_1_NN_N folder) either by:
|
|
a) allow the G++ compiler to find the place where the boost folder is (typically inside a boost_1_NN_N folder) either by:
|
|
- copying the boost folder into the include directory of you MinGW distribution (I know it's brutal but avoid so many troubles when using different IDEs)
|
|
- copying the boost folder into the include directory of you MinGW distribution (I know it's brutal but avoid so many troubles when using different IDEs)
|
|
- modifying the Ibasam/src/Makevars.win file in giving the place (and eventual boost version) where you unziped boost
|
|
- modifying the Ibasam/src/Makevars.win file in giving the place (and eventual boost version) where you unziped boost
|
... | @@ -29,14 +28,13 @@ II. Steps for installation |
... | @@ -29,14 +28,13 @@ II. Steps for installation |
|
f) if you have an error message about dynamic_bitset of boost, it is because the compiler did not find boost, check the step II-a again and redo the following steps. If you have an error of installation of the package after compilation of the Ibasam.dll, check that R is finding the library path correctly and has installed Ibasam in the default folder, maybe then the problem is your administrative rights (to change them, run the console as administrator).
|
|
f) if you have an error message about dynamic_bitset of boost, it is because the compiler did not find boost, check the step II-a again and redo the following steps. If you have an error of installation of the package after compilation of the Ibasam.dll, check that R is finding the library path correctly and has installed Ibasam in the default folder, maybe then the problem is your administrative rights (to change them, run the console as administrator).
|
|
|
|
|
|
|
|
|
|
|
|
----
|
|
# Linux installation
|
|
# Linux installation
|
|
|
|
|
|
**Tested with Ubuntu 14.04 64bit**
|
|
**Tested with Ubuntu 14.04 64bit**
|
|
|
|
|
|
|
|
## Pre-required:
|
|
|
|
|
|
I. Pre-required:
|
|
|
|
----
|
|
|
|
a) R installed
|
|
a) R installed
|
|
|
|
|
|
```
|
|
```
|
... | @@ -52,8 +50,8 @@ I. Pre-required: |
... | @@ -52,8 +50,8 @@ I. Pre-required: |
|
```sudo apt-get install libboost-all-dev ```
|
|
```sudo apt-get install libboost-all-dev ```
|
|
or download and unzip the Boost library (in my case it was located at /home/piou/boost)
|
|
or download and unzip the Boost library (in my case it was located at /home/piou/boost)
|
|
|
|
|
|
II. Steps for installation
|
|
## Steps for installation
|
|
---
|
|
|
|
a) allow the G++ compiler to find the place where the boost folder is (typically inside a boost_1_NN_N folder) either by:
|
|
a) allow the G++ compiler to find the place where the boost folder is (typically inside a boost_1_NN_N folder) either by:
|
|
- having it installed right into the /usr/include directly
|
|
- having it installed right into the /usr/include directly
|
|
- modifying the Ibasam/src/Makevars file in giving the place (and eventual boost version) where you unziped boost
|
|
- modifying the Ibasam/src/Makevars file in giving the place (and eventual boost version) where you unziped boost
|
... | @@ -66,4 +64,7 @@ II. Steps for installation |
... | @@ -66,4 +64,7 @@ II. Steps for installation |
|
e) run the following command on the console:
|
|
e) run the following command on the console:
|
|
```R CMD INSTALL Ibasam_2.3.2.tar.gz ```
|
|
```R CMD INSTALL Ibasam_2.3.2.tar.gz ```
|
|
|
|
|
|
f) if you have an error message about dynamic_bitset of boost, it is because the compiler did not find boost, check the step II-a again and and redo the following steps. If you have an error of installation of the package after compilation of the Ibasam.so, check that R is finding the library path correctly and has installed Ibasam in the default folder, maybe then the problem is your administrative rights. |
|
f) if you have an error message about dynamic_bitset of boost, it is because the compiler did not find boost, check the step II-a again and and redo the following steps. If you have an error of installation of the package after compilation of the Ibasam.so, check that R is finding the library path correctly and has installed Ibasam in the default folder, maybe then the problem is your administrative rights.
|
|
|
|
|
|
|
|
|
|
|
|
# Run IBASAM in R |
|
|
|
\ No newline at end of file |