Conklin, Mike (GfK Custom Research NA)
2012-Sep-17 21:51 UTC
[R] Compiling R2.15.1 on ubuntu with x86-64 architecture and shared library
I am sure I am providing insufficient information, please ask for more. I installed R 2.14.2 on my Ubuntu laptop with and AMD64 processor and also installed RStudio and everything worked fine. Now, I tried to build R 2.15.1 from source and installed it using defaults. RStudio now complained that R was not built as a shared library. Went back and uninstalled, and configured with -enable-R-shlib Now make fails at: /usr/bin/ld: CConverters.o: relocation R_X86_64_325 against '.rodata' can not be used when making a shared object; recompile with -fPIC Being new to Linux, I have no idea how to recompile with -fPIC Any help would be appreciated. Mike W. Michael Conklin Executive Vice President | GfK Marketing Science | Consumer Experiences North America GfK Custom Research, LLC | 8401 Golden Valley Road | Minneapolis, MN, 55427 T +1 763 417 4545 | M +1 612 567 8287 www.gfk.com<http://www.gfk.com/> [[alternative HTML version deleted]]
Dirk Eddelbuettel
2012-Sep-17 22:16 UTC
[R] Compiling R2.15.1 on ubuntu with x86-64 architecture and shared library
On 17 September 2012 at 23:51, Conklin, Mike (GfK Custom Research NA) wrote:
| I am sure I am providing insufficient information, please ask for more.
|
| I installed R 2.14.2 on my Ubuntu laptop with and AMD64 processor and also
installed RStudio and everything worked fine.
|
| Now, I tried to build R 2.15.1 from source and installed it using defaults.
RStudio now complained that R was not built as a shared library.
|
| Went back and uninstalled, and configured with -enable-R-shlib
|
| Now make fails at:
| /usr/bin/ld: CConverters.o: relocation R_X86_64_325 against '.rodata'
can not be used when making a shared object; recompile with -fPIC
|
| Being new to Linux, I have no idea how to recompile with -fPIC
|
| Any help would be appreciated.
As I wrote on the r-sig-debian list (which also acts as help for Ubuntu) a
few hours ago:
Please read the README in the bin/linux/ubuntu/ directory on any CRAN mirror,
eg
http://cran.us.r-project.org/bin/linux/ubuntu
and follow the instructions. By adding a new and current source of R
packages, provided by CRAN, you get the current version of R -- ie 2.15.1
Please use that to obtain a _binary_ of R 2.15.1 for your architecture. If
you get stuck, please subscribe to r-sig-debian and ask there.
Dirk
--
Dirk Eddelbuettel | edd at debian.org | http://dirk.eddelbuettel.com