| Author |
Message |
Owl

Joined: 24 Dec 2005 Posts: 64 Location: Kirchroa, the Netherlands
|
Posted: 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
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
Puppy2 will have a solution even better than chroot
Mark
|
|
Back to top
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: Fri 10 Feb 2006, 08:38 Post subject:
|
|
That looks very nice - now all we need is a dot pup?
Anyone?
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
Owl

Joined: 24 Dec 2005 Posts: 64 Location: Kirchroa, the Netherlands
|
Posted: 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
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
|
|
 |
Lobster
Official Crustacean

Joined: 04 May 2005 Posts: 15109 Location: Paradox Realm
|
Posted: 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
_________________ Puppy WIKI
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
|
|
 |
Owl

Joined: 24 Dec 2005 Posts: 64 Location: Kirchroa, the Netherlands
|
Posted: 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.
| Description |
R - shell script
|

Download |
| Filename |
R.tar.gz |
| Filesize |
2.77 KB |
| Downloaded |
235 Time(s) |
_________________ ________________________
Soooooooo happy with Puppy !
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
http://www.r-project.org/
Mark
|
|
Back to top
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: 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
|
|
 |
MU

Joined: 24 Aug 2005 Posts: 13642 Location: Karlsruhe, Germany
|
Posted: Sat 11 Feb 2006, 07:37 Post subject:
|
|
double entry, deleted
|
|
Back to top
|
|
 |
|