From kmezhoud at gmail.com  Mon Mar  9 22:44:25 2015
From: kmezhoud at gmail.com (Karim Mezhoud)
Date: Mon, 9 Mar 2015 21:44:25 +0000
Subject: [Rd] Fwd: Rstudio R-devel libR.so
In-Reply-To: <CAJXgQP0h0kk9HvcN9jf3dNL2iFahM-pUHWwGkys2=1Px2cXMzg@mail.gmail.com>
References: <CALJKBv__2iVp1-4C+q513npuYQKqwiDQ+zD15eBMxhKOYyt7FQ@mail.gmail.com>
	<CALJKBv-L66+z+oReyFAHROE_P+gsEye2=vEynGWoJnjn_yDWqw@mail.gmail.com>
	<CAJXgQP0h0kk9HvcN9jf3dNL2iFahM-pUHWwGkys2=1Px2cXMzg@mail.gmail.com>
Message-ID: <CALJKBv-JjTj_Na4gaJE+aa6SBJxQj8PNDJ-sdPKWskRm92ukMg@mail.gmail.com>

Hi,
I forgot

tools/rsync-recommended

before

./configure



Thanks


On Mon, Mar 9, 2015 at 6:51 PM, Kevin Ushey <kevinushey at gmail.com> wrote:

> I believe you need to set the environment variable R_HOME_DIR to the
> path pointing to your R-devel installation before launching RStudio.
>
> On Mon, Mar 9, 2015 at 9:49 AM, Karim Mezhoud <kmezhoud at gmail.com> wrote:
> > Dear All,
> > I am actually on R-devel using shell consol. When I run RStudio, it can't
> > find libR.so in the new /lib folder where is libRblas.so  libRlapack.so.
> > At first step I configure R-devel to share library with ./configure
> > --enable-R-shlib.
> >
> > when I copied libR.so from  /usr/lib/R/lib/libR.so (stable version R 3.1)
> > to /usr/local/R-devel/lib/libR.so (R-devel version), That doesn't work.
> >
> > please find the detail  at below.
> > Karim mezhoud
> >
> >
> >
> >
> > $which R
> > /usr/bin/R
> > $R
> >> R.Version()[13]
> > $version.string
> > [1] "R version 3.1.2 (2014-10-31)
> >
> >> Sys.getenv("R_HOME")
> > [1] "/usr/lib/R"
> >
> >> .Library
> > [1] "/usr/lib/R/library"
> >> .libPaths()
> > [1] "/home/mezhoud/R/x86_64-pc-linux-gnu-library/3.1"
> > [2] "/usr/local/lib/R/site-library"
> > [3] "/usr/lib/R/site-library"
> > [4] "/usr/lib/R/library"
> > "
> >
> >
> > $sudo apt-get build-dep r-base
> > $sudo apt-get install subversion ccache
> > $mkdir ~/svn/
> > $cd ~/svn/
> > $svn co https://svn.r-project.org/R/trunk r-devel/R
> >
> > $cd /svn/r-devel/R
> > $./configure --enable-R-shlib
> > $make
> > $make check
> > $sudo make install rhome=/usr/local/R-devel
> >
> > $which R
> > /usr/local/bin/R
> >
> > $cd /usr/local/bin
> > $R
> >
> >>R.Version()[13]
> > $version.string
> > [1] "R Under development (unstable) (2015-03-07 r67951)"
> >
> >> .libPaths()
> > [1] "/usr/local/R-devel/library"
> >> .Library
> > [1] "/usr/local/R-devel/library"
> >
> >> Sys.getenv("R_HOME")
> > [1] "/usr/local/R-devel"
> >
> > $rstudio
> > R shared library (/usr/local/R-devel/lib/libR.so) not found.
> > If this is a custom build of R, was it built with the --enable-R-shlib
> > option?
> >
> > $export RSTUDIO_WHICH_R=/usr/local/bin/R
> > $rstudio
> > R shared library (/usr/local/R-devel/lib/libR.so) not found.
> > If this is a custom build of R, was it built with the --enable-R-shlib
> > option?
> >
> > $export RSTUDIO_WHICH_R=/usr/local/R-devel/bin/R
> > $rstudio
> > R shared library (/usr/local/R-devel/lib/libR.so) not found.
> > If this is a custom build of R, was it built with the --enable-R-shlib
> > option?
> >
> > $sudo locate libR.so
> > /usr/lib/libR.so
> > /usr/lib/R/lib/libR.so
> >
> >
> > When I get a symbolic link with:
> >
> >  sudo ln -s  /usr/lib/R/lib/libR.so /usr/local/R-devel//lib/libR.so
> >
> >
> > The R session had a fatal error.
> >
> >
> > ERROR r error 4 (R code execution error) [errormsg=Error in
> > .Internal(getOption(x)) :
> >
> > there is no .Internal function 'getOption'
> >
> > ]; OCCURRED AT: core::Error r::exec::evaluateString(const std::string&,
> > SEXPREC**, r::sexp::Protect*) /home/ubuntu/rstudio/src/cpp/r/RExec.cpp:
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > R-devel at r-project.org mailing list
> > https://stat.ethz.ch/mailman/listinfo/r-devel
>

	[[alternative HTML version deleted]]



[Rd] Fwd: Rstudio R-devel libR.so
Karim Mezhoud