Archive for February, 2007
Ruby is a programing language. Ruby does not come with Puppy. There is a DotPup for Ruby, but it is for version 1.8.3 and dates back in 2005. Before you start, you must have the development environment installed. To install the development environment for Puppy, download dev_xxx.sfs to your /mnt/home directory (where xxx is your Puppy version ex: dev_213.sfs).
- Download Ruby. The file will be in a gz format.
- Untar the filetar -xvf ruby-1.8.5.tar.gz
- Change directory into the new directory.
- edit the configure file, locate the line:ac_default_prefix=/usr/localtoac_default_prefix=/root/my-applications. This changes the install directory from the usual /usr/local to Puppy’s /root/my-applications.
- Execute config by typing ./configure, this generate several config files and makefile.
- Execute make by typing make. This compiles Ruby.
- Install Ruby by typing make install.
- Grab a list of files that was installed by:find /root -print | grep ruby > filelist
- Tar the files by:tar -cf dotpup.tar -T filelist
- compress the tar file:gzip dotpup.tar
- Create a readme.txt file. The file should describe where the software will install to.
- Create a dotpup.sh file (copied from the original puppy dotpup by Erik Veenstra). Make sure that you set the execution bit:#!/bin/sh# Installs Ruby to my-applications/binrox readme.txt
tar xzf $PDIR/dotpup.tar.gz
sleep 5 # Rox needs some time to open the readme.txt…
- Generate md5sum files for the 3 files.md5sum dotpop.sh readme.txt dotpup.tar.gz > md5sum.txt
- Create the Pup file using zip:zip ruby-1.8.5.pup md5sum.txt dotpop.sh readme.txt dotpup.tar.gz
- The above DotPup does not include an uninstaller.
- If you want to uninstall your package from the GetPup GUI, you have to create a uninstall script and register the install with GetPup.
- Version 2.14 (which is not out at the moment) contains a new package management system call DotPet. DotPet comes with tools that automate a lot of the process.