Giter VIP home page Giter VIP logo

Comments (10)

dancooke avatar dancooke commented on August 30, 2024

Hi, thanks for your interest in Octopus. Please could you confirm how Boost was installed? It would also be helpful if you could post the entire output from your installation attempt.

from octopus.

jbsysadmin avatar jbsysadmin commented on August 30, 2024

from octopus.

jbsysadmin avatar jbsysadmin commented on August 30, 2024

from octopus.

dancooke avatar dancooke commented on August 30, 2024

Hi,

I've successfully build Octopus v0.5.2-beta with GCC 8.2 and Boost 1.68, so the problem is certainly with your GCC or Boost installation.

It's strange that your GNU C++ 6.4 compiler installation is /usr/local/gcc-6.4.0/bin/gcc, as gcc usually refers to the C compiler rather than the C++ compiler (g++ is normally used for the C++ compiler).

Assuming that you installed the GCC 8.2 C++ compiler in /usr/local/gcc-8.2.0/bin/g++, could you please post the output from

/usr/local/gcc-8.2.0/bin/g++ -v

Please also try to install Boost with the following (after completely removing your previous installs):

cd /tmp
wget -O boost_1_68_0.tar.gz http://sourceforge.net/projects/boost/files/boost/1.68.0/boost_1_68_0.tar.gz/download
tar xzvf boost_1_68_0.tar.gz
cd boost_1_68_0
echo "using gcc : 8.2 : /usr/local/gcc-8.2.0/bin/g++ ; " >> tools/build/src/user-config.jam
./bootstrap.sh --prefix=/usr/local --without-libraries=python,mpi
./b2 -j2 toolset=gcc-8.2 cxxflags="-std=c++14"
./b2 install

Note that you will need to change the g++ path if I guessed incorrectly.

from octopus.

jbsysadmin avatar jbsysadmin commented on August 30, 2024

from octopus.

dancooke avatar dancooke commented on August 30, 2024

I've been trying to replicate your error in a CentOS 6.9 Docker container but have not been able to. I did however run into other problems with compilation due to the compiler emitting unrecognised instructions, suggesting that GCC was not installed correctly. I did not encounter any of these problems with CentOS 7.

I finally managed to install Octopus in a fresh CentOS 6.9 Docker container using Linuxbrew to install dependencies. For example, the following works:

docker run -it --rm centos:6.9

## Initial installs
yum -y update
yum install -y which yum-utils gcc gcc-c++ make wget git autoconf openssl bzip2.x86_64 bzip2 ca-certificates curl file fonts-dejavu-core locales openssh-client patch sudo uuid-runtime

## Add and switch to non-root sudo user (for Linuxbrew install)
localedef -i en_US -f UTF-8 en_US.UTF-8 && useradd -m -s /bin/bash linuxbrew && echo 'linuxbrew ALL=(ALL) NOPASSWD:ALL' >>/etc/sudoers
sudo su - linuxbrew

## Install Linuxbrew
git clone https://github.com/Linuxbrew/brew.git ~/.linuxbrew
PATH="$HOME/.linuxbrew/bin:$PATH"

## Install Octopus dependencies with Linuxbrew
brew install git python gcc@8 cmake boost htslib

## Install Octopus
git clone -b master https://github.com/luntergroup/octopus.git
cd octopus
export HTSLIB_ROOT=~/.linuxbrew
./scripts/install.py --threads 3 -c ~/.linuxbrew/Cellar/gcc@8/8.2.0/bin/gcc-8 -cxx ~/.linuxbrew/Cellar/gcc@8/8.2.0/bin/g++-8 --boost ~/.linuxbrew

I would recommend that you do the same.

from octopus.

dancooke avatar dancooke commented on August 30, 2024

Hi, I've improved the installation script so that it can optionally install all of Octopus' dependencies into the build directory using Homebrew (as shown above). This is available on the develop branch (I'll add to next release). You should just be able to use

$ git clone https://github.com/luntergroup/octopus.git
$ octopus/scripts/install.py --install-dependencies

to cleanly install Octopus. Let me know if you have any issues.

from octopus.

dancooke avatar dancooke commented on August 30, 2024

I'm closing this as I believe the new installation procedure resolves the issue. Please re-open if not.

from octopus.

jbsysadmin avatar jbsysadmin commented on August 30, 2024

from octopus.

jbsysadmin avatar jbsysadmin commented on August 30, 2024

from octopus.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.