Rstudio R-devel libR.so

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Rstudio R-devel libR.so

Karim Mezhoud
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

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Rstudio R-devel libR.so

Pascal Oettli-2
Hello,

There is a dedicated support to RStudio here: https://support.rstudio.com

Regards,
Pascal

On Mon, Mar 9, 2015 at 7:41 PM, Karim Mezhoud <[hidden email]> 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
>
>         [[alternative HTML version deleted]]
>
> ______________________________________________
> [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> https://stat.ethz.ch/mailman/listinfo/r-help
> PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
> and provide commented, minimal, self-contained, reproducible code.



--
Pascal Oettli
Project Scientist
JAMSTEC
Yokohama, Japan

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Rstudio R-devel libR.so

Karim Mezhoud
Thanks Pascal. Not yet resolved.
Here is an example of symbolic link between libR.so
https://support.rstudio.com/hc/communities/public/questions/200661703-R-shared-library-usr-local-lib-R-lib-libR-so-not-found-UBUNTU-11-

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:



On Mon, Mar 9, 2015 at 10:53 AM, Pascal Oettli <[hidden email]> wrote:

> Hello,
>
> There is a dedicated support to RStudio here: https://support.rstudio.com
>
> Regards,
> Pascal
>
> On Mon, Mar 9, 2015 at 7:41 PM, Karim Mezhoud <[hidden email]> 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
> >
> >         [[alternative HTML version deleted]]
> >
> > ______________________________________________
> > [hidden email] mailing list -- To UNSUBSCRIBE and more, see
> > https://stat.ethz.ch/mailman/listinfo/r-help
> > PLEASE do read the posting guide
> http://www.R-project.org/posting-guide.html
> > and provide commented, minimal, self-contained, reproducible code.
>
>
>
> --
> Pascal Oettli
> Project Scientist
> JAMSTEC
> Yokohama, Japan
>

        [[alternative HTML version deleted]]

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.
Reply | Threaded
Open this post in threaded view
|

Re: Rstudio R-devel libR.so

Jeff Newmiller
Please read the Posting Guide. Unreleased versions of R are off-topic in this mailing list (see the R-devel mailing list). RStudio-specific questions are also off-topic here (should be about R, not IDEs).
---------------------------------------------------------------------------
Jeff Newmiller                        The     .....       .....  Go Live...
DCN:<[hidden email]>        Basics: ##.#.       ##.#.  Live Go...
                                      Live:   OO#.. Dead: OO#..  Playing
Research Engineer (Solar/Batteries            O.O#.       #.O#.  with
/Software/Embedded Controllers)               .OO#.       .OO#.  rocks...1k
---------------------------------------------------------------------------
Sent from my phone. Please excuse my brevity.

On March 9, 2015 4:48:11 AM PDT, Karim Mezhoud <[hidden email]> wrote:

>Thanks Pascal. Not yet resolved.
>Here is an example of symbolic link between libR.so
>https://support.rstudio.com/hc/communities/public/questions/200661703-R-shared-library-usr-local-lib-R-lib-libR-so-not-found-UBUNTU-11-
>
>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:
>
>
>
>On Mon, Mar 9, 2015 at 10:53 AM, Pascal Oettli <[hidden email]>
>wrote:
>
>> Hello,
>>
>> There is a dedicated support to RStudio here:
>https://support.rstudio.com
>>
>> Regards,
>> Pascal
>>
>> On Mon, Mar 9, 2015 at 7:41 PM, Karim Mezhoud <[hidden email]>
>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
>> >
>> >         [[alternative HTML version deleted]]
>> >
>> > ______________________________________________
>> > [hidden email] mailing list -- To UNSUBSCRIBE and more, see
>> > https://stat.ethz.ch/mailman/listinfo/r-help
>> > PLEASE do read the posting guide
>> http://www.R-project.org/posting-guide.html
>> > and provide commented, minimal, self-contained, reproducible code.
>>
>>
>>
>> --
>> Pascal Oettli
>> Project Scientist
>> JAMSTEC
>> Yokohama, Japan
>>
>
> [[alternative HTML version deleted]]
>
>______________________________________________
>[hidden email] mailing list -- To UNSUBSCRIBE and more, see
>https://stat.ethz.ch/mailman/listinfo/r-help
>PLEASE do read the posting guide
>http://www.R-project.org/posting-guide.html
>and provide commented, minimal, self-contained, reproducible code.

______________________________________________
[hidden email] mailing list -- To UNSUBSCRIBE and more, see
https://stat.ethz.ch/mailman/listinfo/r-help
PLEASE do read the posting guide http://www.R-project.org/posting-guide.html
and provide commented, minimal, self-contained, reproducible code.