Puppy Linux Discussion Forum Forum Index Puppy Linux Discussion Forum
Puppy HOME page : puppylinux.com
"THE" alternative forum : puppylinux.info
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

The time now is Tue 30 Sep 2014, 18:37
All times are UTC - 4
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
R - statistics package and scripting language
Post new topic   Reply to topic View previous topic :: View next topic
Page 6 of 6 [82 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6
Author Message
pabloabc

Joined: 16 Apr 2014
Posts: 2

PostPosted: Wed 16 Apr 2014, 18:53    Post subject: R and RStudio
Subject description: I can't make RStudio run
 

Hi to everybody!

Although I'm using several tastes of Puppy linux since long time ago, this is my first mail here...

First of all, congratulations to all the supporters and the people that is working hard for such a wonderful distro.
I'm very happy with it. Thanks to all of you.

Now my problem...

I'm using LxPup12.12 I think it is an Ubuntu 12.04 precise compatible Puppy with a light Graphical front, similar to Lubuntu.

Now, I'm starting a Coursera Course to learn R and RStudio so I need to install them in this Puppy linux machine.
That is mandatory for the Course.
At the moment I know almost nothing about neither program...
Only that they are statistical opensource programs.

My first attempt was to search, download and install Saluki's R-2.14.1-Saluki.sfs
Tha sfs was posted in the link below by emil on 2010 I think.
http://www.murga-linux.com/puppy/viewtopic.php?t=51141

Once the sfs is loaded as usual, I opened a terminal and typed R. The R promt came and the program was running smoothly.
Ran some demo library's packages and everything was ok with the R program in the terminal.
The second step was to install The RStudio. I couldn't find any pet for this so I decided to download
the .deb package and installed it with the provided pet instaler.

It created a menu entry but when I tried to run it, it says in a window :

R shared library (/usr/local/lib/R/lib/libR.so) not found. If this is a custom build of R, was it built with the --enable-R-shlib option?

After that the RStudio program exits.
Not sure what's wrong but for sure I don't know how to fix it... I've never built anything in puppy linux.

Anyone can find a simple solution to fix this annoying problem ? or
Maybe there are some properly pet/sfs packages to have RStudio running?

Also I want to know how do I uninstall the not runing .deb RStudio ?
The downloaded package was rstudio-0.98.501-i386.deb (32bits) ?

Sorry for my English. It is my second language...
Thanks a lot for your help.
Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Thu 17 Apr 2014, 08:42    Post subject:  

Back to top
View user's profile Send private message Visit poster's website 
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Fri 18 Apr 2014, 14:03    Post subject:  

Dear pabloabc,
sorry my answer somehow didn't went through yesterday.

My first suggestion is to try to install R from the Ubuntu repos using the puppy package manager with your current puppy version.

then you could try to install the Rstudio binaries from their home page.

Mixing different versions, like my package for saluki and the ubuntu debs is asking for troubles.

I am sorry that I am not able to give detailed and tested help for every puppy version. My personal approach changed to favor Debian stable based versions like DebianDog or my CAT041. With those you have full apt-get and also in most cases you find detailed instructions somewhere on the web.

good luck and success,
emil
Back to top
View user's profile Send private message Visit poster's website 
pabloabc

Joined: 16 Apr 2014
Posts: 2

PostPosted: Sun 20 Apr 2014, 23:17    Post subject:  

Hi emil and all !!

Thanks emil for your kind answer... It didn't solve my problem but guided
me to find the (not elegant ) solution at the moment.

To make rstudio run in LxPup 12.12 I downloaded the R package from an Ubuntu repository with the normal LxPup install tool and then i also downloaded the linux *.deb RStudio package taken from the RStudio site https://www.rstudio.com/ide/download/desktop

After instaling R it doesn't work at all. When I tried to run it, it said

/usr/lib/R/bin/exec/R: error while loading shared libraries: libblas.so.3gf: cannot open shared object file: No such file or directory

I searched for that file ( libblas.so.3gf ) in my computer and it existed there.

After a long time searching the web I could find some light here,
http://pebblesinthesand.wordpress.com/2009/04/22/linking-shared-libraries-overcoming-runtime-errors/

To fix R, I had to put the missing dynamic library path so R, could find it.
The command ldd /usr/lib/R/bin/exec/R confirmed that R couldn't find that library.

In a terminal, at the prompt, I wrote,
export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/libbla

then again ldd /usr/lib/R/bin/exec/R confirmed that this time R sees every
dynamic library it needs.

At the prompt I put R and this time the program ran perfectly.

I exited the program R and in the same terminal that now have the path fixed, and I ran RStudio with the command /usr/lib/rstudio/bin/rstudio

Fortunately RStudio was running smoothly this time.

I know that this is not a definitive solution but it worked for me. Maybe someone who knows more than I can solve this issue in a more convenient manner.

Thanks to all for the help.
Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Mon 21 Apr 2014, 00:47    Post subject: library paths  

Hi pabloabc,

you could put the line
Code:

export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/usr/lib/libbla


into a configuration file like /etc/profile or alternativly maybe /root/.bashrc

so it is automatically added to the libary path when you start puppy.

Or maybe you could also create a symlink to the blas library (this is a very basic linar algebra library) somewhere in your existing library path (e.g. /usr/local/lib).

Thank you for your detailed report how you solved the problem!

kind regards
emil
Back to top
View user's profile Send private message Visit poster's website 
vdhvu

Joined: 14 Mar 2014
Posts: 2

PostPosted: Mon 26 May 2014, 18:49    Post subject:  

email, do you have sfs for R version of 3.10?

Thanks
Back to top
View user's profile Send private message 
emil

Joined: 10 Nov 2009
Posts: 618
Location: Austria

PostPosted: Tue 27 May 2014, 01:56    Post subject:  

Hi,

I am sorry, no.
For which puppy version if I may ask?

If you dare to venture you could build your own.
Download the latest R sources from CRAN servers, unpack them, read the docs, install the devx.sfs and then do something like

Code:
cd R*
./configure --enable-shared-libs
make
new2dir make install


this should install R to your computer.
To build a sfs you could do something like

Code:
dir2sfs "R-binary-directory"


R is not hard to build, so it is a good starting project, although there may be lions.

kind regards
emil
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 6 of 6 [82 Posts]   Goto page: Previous 1, 2, 3, 4, 5, 6
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » Advanced Topics » Additional Software (PETs, n' stuff) » Engineering/Science/Simulation
Jump to:  

You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © 2001, 2005 phpBB Group
[ Time: 0.0685s ][ Queries: 12 (0.0055s) ][ GZIP on ]