README 1.6 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546
  1. ################################################################################
  2. # HPCC SYSTEMS software Copyright (C) 2013 HPCC Systems®.
  3. #
  4. # Licensed under the Apache License, Version 2.0 (the "License");
  5. # you may not use this file except in compliance with the License.
  6. # You may obtain a copy of the License at
  7. #
  8. # http://www.apache.org/licenses/LICENSE-2.0
  9. #
  10. # Unless required by applicable law or agreed to in writing, software
  11. # distributed under the License is distributed on an "AS IS" BASIS,
  12. # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. # See the License for the specific language governing permissions and
  14. # limitations under the License.
  15. ################################################################################
  16. Building the Rembed plugin
  17. --------------------------
  18. Building the plugin to embed R in ECL code is not enabled by default - this is
  19. because it depends on a component (RInside) that can't be installed via standard
  20. package-management utilities on most distros.
  21. To install the prerequisites for building R support, use the following (Ubuntu 12.04)
  22. or the equivalent for your distro.
  23. sudo apt-get install r-base r-cran-rcpp
  24. For Ubuntu 14.04:
  25. wget http://cran.r-project.org/src/contrib/RInside_0.2.11.tar.gz
  26. To install:
  27. sudo R CMD INSTALL RInside_0.2.11.tar.gz
  28. For Ubuntu before 14.04:
  29. wget http://cran.r-project.org/src/contrib/00Archive/RInside/RInside_0.2.10.tar.gz
  30. To install
  31. sudo R CMD INSTALL RInside_0.2.10.tar.gz
  32. Then you can enable building the Rembed plugin using
  33. cmake <path_to_source> -DMAKE_REMBED=1