Installation Instructions for winComp
This program runs off of the free programs R and tcl/tk so you will need to have these programs installed.
- R and the required packages are available for download at www.cran.r-project.org (It is better to use a mirror from this site since this site is usually slow)
- tcl/tk and the required package are available for download at www.scriptics.com
Windows:
A. Installing and Configuring R
- Downloading R, Rstreams, and quadprog from www.cran.r-project.org
- In the Precompiled Binary Distributions Box click on Windows(95 and later)
- Click on the contrib folder
- Click on Rstreams.zip and save to disk
- Click on quadprog.zip and save to disk
- Click back on your browser
- Click on the base folder
- Click on SetupR.exe (this is ~15 M so it will take a long time using a modem)
- Installing
- Click on SetupR.exe
- if you plan on using R yourself you may want to install the reference manuals
- Unzip Rstreams.zip and quadprog.zip to the R library directory.
- if you installed R to C:\Program Files\R then you will want to unzip them to them to C:\Program Files\R\rw1030\library (C:\Progra~1\R\rw1030\library if you use windows 95 or 98)
- Configuring
- Setting the path in windows 95/98
- You need to be able to see hidden folders
- Click on "My Computer"
- Select "View" from the menu
- Select "Folder Options"
- in the window that pops up:
- select the "View" tab
- select "Show all files option"
- select "Ok"
- Editing AutoExec.bat
- open C:\AutoExec.bat with Word or Wordpad
- add the following line to the bottom of your file: SET PATH="C:\Program Files\R\rw1030\bin";"%path%"
- save and close
- restart windows
- Setting the path in windows 2000:
- Right click on my computer.
- Select "Properties".
- Click "Environment Variables".
- If you have Administrative privileges then you can Edit the Path in the System Variables box. If you do not have Adminitrative privileges then you can Edit the PATH in the user variables box.
- Select the variable "PATH" or "Path".
- Click "Edit...".
- In the box "Variable Value:" go all the way to the end (as far right as possible) you can do this by clicking in the box and then pressing and hold in the right arrow on the keyboard. Once you are at the end you will need to type the path to the R executable program. If you installed R build 1030 in the directory C:\Program Files\R then you will need to type (without the quotes): ";C:\Program Files\R\rw1030\bin". If you have a different build of R such as 1020 or 1023 then use this instead of 1030.
- Click "Ok".
- Click "Ok".
- Click "Ok".
B. Installing and Configuring tcl/tk
- Downloading tcl/tk and blt from www.scriptics.com
- The package blt does not usually work with the freshest tcl/tk, especially the apha versions, so click on the ActiveTcl 8.3.* link.
- Download the package for windows
- Go back to www.scriptics.com
- Click on BLT2.*
- Click on blt2*-for-8.3.exe
- Installing
- The steps should be the same for windows 95/98 and 2000, however, you may need to be the administrator for windows 2000.
- Click on the ActiveTcl_8.3.* file
- The default install location is C:\Tcl
- The install program may say the Path was not set properly, we will deal with this later
- Click on the BLT2.* file
- When you install this program make sure that you install it to the directory that contains tcl. The default install path is usually C:\Program Files\Tcl, in this example we need to change it to C:\Tcl
- Configuring tcl/tk
- Setting the path in windows 95/98
- Follow the procedure for setting the path as explained for R. Add this to the end of the file:
SET PATH=C:\Tcl;"%path%" - Setting the path in windows 2000
- Follow the procedure for setting the path as explained for R. Add this to the end of the file:
SET PATH=C:\Tcl;"%path%" - Restart Windows
C. Installing winComp
- Just unzip the winComp001.zip
- go into the winComp directory and create a shortcut to winComp001.tcl and place it on your desktop.
Linux:
A. Downloading and Installing R
- Downloading R
- Go to www.cran.r-project.org
- Go to one of the mirrors
- Click on linux, pick your distribution and download the r-base and r-recommended packages
- Install r-base and r-recommended
- You need to have access to the root password to do this.
- Install the addons Rstreams and quadprog
- open a terminal
- start R by typing R and pressing R
- in R:
- type: installPacks<-c("Rstreams","quadprog")
- press enter
- type: install.packages(installPacks)
- press enter
- R will automatically link to CRAN and then download and install your addons, if you install the packages this way you must be root or have su abilities. You can also install the addons for a single user, in order to determine how to do this in R type: help(CRAN.packages)
B. Installing tcl/tk
- You may already have this installed, if you are using an rpm based system you can check by typing: rpm -q "package name" in a terminal where "package name" is tcl, tk, or blt.
- If you do not have it installed then you can go to www.scriptics.com (or rpmfind.net if you use an rpm based system) and download the tcl, tk, and blt packages.
- To install type:
- rpm -Uvh "package name"
- I think that you need to install tcl first, then tk, and then blt.
- The computer may inform you that the package is already installed, it may also inform you that you need to install other packages first. In the case of the former you do not have to install the package. In the case of the latter, you will need to find and install the required packages (rpm based system packages can be found at rpmfind.net).
C. Installing winComp
- For a local (non-root install)
- Download the winComp.tar.gz file to your home directory
- Unzip by typing: gunzip winComp.tar.gz
- type: tar -xvf winComp.tar
- type: rm winComp.tar
- type: cd winComp>
- type: chmod 700 winComp.tcl
- to start you must be in the winComp directory and type: ./winComp.tcl or winComp.tcl
- For a site (root install)
- Download the winComp.tar.gz file to the /usr/local directory
- Unzip by typing: gunzip winComp.tar.gz
- type: tar -xvf winComp.tar
- type: rm winComp.tar
- type: cd winComp
- type: chmod 755 winComp.tcl
- type: ln -s winComp.tcl /usr/bin/winComp
- to start type: winComp