hms-dbmi / spp

SPP - R package for analysis of ChIP-seq and other functional sequencing data
39 stars 22 forks source link

install instructions #1

Closed ucsf-jdm closed 8 years ago

ucsf-jdm commented 8 years ago

Clear installation instructions would be very helpful. I have boost installed on my system, and it's in my LD_LIBRARY_PATH, but the installation of spp continues to fail for reasons that appear to be boost-related. I'll attach the installation log. I don't know if this is a bug, or whether I've missed an installation step, but judging by my web searches, there are others who are similarly confused. Thanks, Jeff

spp_install_log.txt

ucsf-jdm commented 8 years ago

Here are the install instructions that worked for me:

  1. Download the latest version of boost from boost.org
  2. Unpack the boost .tar.gz file
  3. Download latest version of SPP
  4. Unzip the SPP file (now assuming that the unzipped directory is called spp-master)
  5. Edit the third line of spp-master/src/Makevars.in to include the path to your boost library, which should look something like this:

PKG_CXXFLAGS=-I/path-to-boost/boost_1_61_0/ -D_FASTMAP -DMAQ_LONGREADS @HAVE_LIBBZ2@

Now, run the following commands to install SPP:

export CPPFLAGS="-I/path-to-boost/boost_1_61_0/" R CMD INSTALL spp-master