Page 1 of 1

HOWTO run R (statistical language) in Puppy (working cheat!)

Posted: Fri 10 Feb 2006, 12:07
by Owl
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.p ... 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.

Posted: Fri 10 Feb 2006, 12:32
by MU
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 :)

Puppy2 will have a solution even better than chroot :P

Mark

Posted: Fri 10 Feb 2006, 12:38
by Lobster
That looks very nice - now all we need is a dot pup?

Anyone? 8)

Posted: Fri 10 Feb 2006, 19:32
by Owl
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 :P

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.

Posted: Fri 10 Feb 2006, 23:58
by Lobster
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

:)

Posted: Sat 11 Feb 2006, 02:45
by MU
>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

Posted: Sat 11 Feb 2006, 09:29
by Owl
Hi,

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

How do I proceed ?

Owl.

Posted: Sat 11 Feb 2006, 09:43
by MU
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 :)
http://www.r-project.org/

Mark

Posted: Sat 11 Feb 2006, 11:32
by MU
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

Posted: Sat 11 Feb 2006, 11:37
by MU
double entry, deleted