edge website
- Install R
- Download and unpack the source file:
- Install impute
- prepare the compiling environment
- Compile the sucker
- Run the software
- Restore the original environment
sudo aptitude install r-base
linux src page
Download the above link and install with something like this:
sudo R CMD INSTALL packages/impute_1.0-5.tar.gz
sudo aptitude install g++-4.2 gfortran-4.2 tetex-base
# (also might need tetex-extras ...)
sudo rm /usr/bin/g++ # just removes the soft link
sudo ln -s /usr/bin/g++4.2 /usr/bin/g++
sudo rm /bin/sh # just a link to /bin/dash
sudo ln -s /bin/bash /bin/sh
cd src ; make ; make install
The make install command just copies the .so files up a directory
R
Then from within R started at the base of the package:
source("edge.r")
edge()
sudo rm /usr/bin/g++
sudo ln -s /usr/bin/g++4.3 /usr/bin/g++
sudo rm /bin/sh
sudo ln -s /bin/dash /bin/sh
3 comments:
If you use g++-4.3 or above it will not compile, so stick to g++4.2
Conveniently, g++-4.2 has been removed from the latest version of Ubuntu (Lucid). I'm trying some backdoor routes to try to get a version of g++-4.2 installed on my box.
Compiled on RHEL 5 using R 2.4.1 (exception when trying to run 2.12). Needed to specify --with-tcltk option.
Post a Comment