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 Mon 28 Jul 2014, 19:03
All times are UTC - 4
 Forum index » House Training » HOWTO ( Solutions )
HOWTO run R (statistical language) in Puppy (working cheat!)
Moderators: Flash, Ian, JohnMurga
Post new topic   Reply to topic View previous topic :: View next topic
Page 1 of 1 [10 Posts]  
Author Message
Owl


Joined: 24 Dec 2005
Posts: 64
Location: Kirchroa, the Netherlands

PostPosted: Fri 10 Feb 2006, 08:07    Post subject:  HOWTO run R (statistical language) in Puppy (working cheat!)  

Dear all,

I have been asking the forums with questions on how to get R (http://www.r-project.org/) running on a Puppy Live CD 1.0.7 session for a while now, and feel obliged nowthat I finally got it to work to share on the forum.

Thanks very much to Mark U, who pointed me to a very simple but working solution (http://www.murga.org/~puppy/viewtopic.php?t=5907&highlight=):

1. I installed Mepis (www.mepis.org), version 3.4.3, RC4 on a seperate hdd, and upgraded the basic system with synaptic, installing R-base and dependent modules.
2. booted up puppy 1.0.7 from livecd, mounting my usual pup001
3. opened up an rxvt console, typed in: chroot /mnt/hda1
4. start R as usual (R)
5. and off I can go !!!

This represents a working solution, thanks for all who pointed me in the right direction,
regards,

Owl.

_________________
________________________
Soooooooo happy with Puppy !
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 10 Feb 2006, 08:32    Post subject:  

fine.
Now you could run
which R
to find out where it is located (for example in /usr/bin of mepsis)
then:
ldd /usr/bin/R

This should tell you the libraries you need.
You could copy them to puppy then.
Like this you had R working in Puppy without "chrooting".
But apart from the libraries, R might need other files, for example pictures from /usr/share
Those you could find by examining the different folders.
It helps to set the filemanager to sort files by "modification time", so that you will see newest files first (if you just installed R with synaptic).

But you see, that is some "fiddling", so it isjust nice you have a working solution now with chroot Smile

Puppy2 will have a solution even better than chroot Razz

Mark
Back to top
View user's profile Send private message Visit poster's website 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 10 Feb 2006, 08:38    Post subject:  

That looks very nice - now all we need is a dot pup?

Anyone? Cool

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
Owl


Joined: 24 Dec 2005
Posts: 64
Location: Kirchroa, the Netherlands

PostPosted: Fri 10 Feb 2006, 15:32    Post subject:  

MU wrote:
fine.
Now you could run
which R
to find out where it is located (for example in /usr/bin of mepsis)
then:
ldd /usr/bin/R

This should tell you the libraries you need.
You could copy them to puppy then.
Puppy2 will have a solution even better than chroot Razz

Mark


Hi,

I did all that but I received a curious message: not a dynamic executable.

So I got kinda stuck here.

But thanks for following up !
Also: wondering what puppy2 has to offer !

Greetings,
Owl.

_________________
________________________
Soooooooo happy with Puppy !
Back to top
View user's profile Send private message 
Lobster
Official Crustacean


Joined: 04 May 2005
Posts: 15117
Location: Paradox Realm

PostPosted: Fri 10 Feb 2006, 19:58    Post subject:  

An Alpha release (that means it show the features but that does not mean they have been beta tested) will give us an idea - 14 /15 Feb

http://puppylinux.org/wikka/Puppy2

Smile

_________________
Puppy WIKI
Back to top
View user's profile Send private message Visit poster's website 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Fri 10 Feb 2006, 22:45    Post subject:  

>not a dynamic executable.

Oh... then R might be a shellscript.
Try to open it with leafpad.
If not, it might be compressed with upx. http://dotpups.de/dotpups/System_Utilities/upx.pup

upx -d /usr/bin/R
would extract it then.

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


Joined: 24 Dec 2005
Posts: 64
Location: Kirchroa, the Netherlands

PostPosted: Sat 11 Feb 2006, 05:29    Post subject:  

Hi,

apparently it is a shell script. I have attached the content of the file R in /usr/bin

How do I proceed ?

Owl.
R.tar.gz
Description  R - shell script
gz

 Download 
Filename  R.tar.gz 
Filesize  2.77 KB 
Downloaded  306 Time(s) 

_________________
________________________
Soooooooo happy with Puppy !
Back to top
View user's profile Send private message 
MU


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 11 Feb 2006, 05:43    Post subject:  

That looks simple.
It seems, only these folders are used:
/usr/lib/R
/usr/share/R/

So they might be packed with pupzip, and then uploaded.

I also found the homepage, I will download the Mandrake-RPM and have a look Smile
http://www.r-project.org/

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


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 11 Feb 2006, 07:32    Post subject:  

Here is a package for Puppy:
http://www.murga.org/~puppy/viewtopic.php?p=37246#37246

But it eats 58 MB in pup001, so the chroot might be a better solution.

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


Joined: 24 Aug 2005
Posts: 13642
Location: Karlsruhe, Germany

PostPosted: Sat 11 Feb 2006, 07:37    Post subject:  

double entry, deleted
Back to top
View user's profile Send private message Visit poster's website 
Display posts from previous:   Sort by:   
Page 1 of 1 [10 Posts]  
Post new topic   Reply to topic View previous topic :: View next topic
 Forum index » House Training » HOWTO ( Solutions )
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.0639s ][ Queries: 13 (0.0098s) ][ GZIP on ]