Issues installing bcl2fastq?
7
2
Entering edit mode
7.4 years ago
a.rex ▴ 350

I am trying to install bcl2fastq from source.

However, during the make process, I am encountering an error:

make[2]: *** [c++/lib/demultiplex/CMakeFiles/casava_demultiplex.dir/BclDemultiplexer.cpp.o] Error 1
make[1]: *** [c++/lib/demultiplex/CMakeFiles/casava_demultiplex.dir/all] Error 2
make: *** [all] Error 2

Does anyone know how you can get around this, and what this means? I have built the boost that comes with the redist folder and have pointed to this when configuring the bcl2fastq program.

bcl2fastq demultiplexing • 18k views
ADD COMMENT
2
Entering edit mode

you can download bcl2fastaq deb from https://github.com/igorbarinov/bcl2fastq. Try the deb

ADD REPLY
0
Entering edit mode

Software linked here is older version (should work unless the data is from NovaSeq).

ADD REPLY
0
Entering edit mode

Thanks for this, I downloaded the deb, and used sudo dpkg -i bcl2fastq_1.8.4-2_amd64-2.deb. Where does it install to?

ADD REPLY
0
Entering edit mode
 dpkg -L bcl2fastq

Should give you where each file went. In general, it should be available in your path :)

ADD REPLY
0
Entering edit mode

Unfortunately I need the v2 version for a next-seq. When I convert to deb with alien, I get the following error which I cannot diagnose. dpkg-deb: error: parsing file 'debian/bcl2fastq2/DEBIAN/control' near line 2 package 'bcl2fastq2': error in Version string 'v2.17.1.14-2': version number does not start with a digit dh_builddeb: dpkg-deb --build debian/bcl2fastq2 .. returned exit code 2 make: * [binary-arch] Error 1 Any ideas would be helpful...

ADD REPLY
0
Entering edit mode

Why did you download v.1.8.4? v.2.17 (as a .deb) is also available at the link @cpad0112 posted.

ADD REPLY
0
Entering edit mode

I downloaded the deb for 1.8.4. 2.17 is only available as an rpm file....I think.

ADD REPLY
1
Entering edit mode

My bad (dyslexia kicked in). You should follow the other set of directions from @cpad0112 then: C: Issues installing bcl2fastq? .

ADD REPLY
0
Entering edit mode

Did you also install boost-devel?

ADD REPLY
0
Entering edit mode

Hello. Yes, I did this after unzipping the boost-1.44 in the redist folder:

sudo apt-get update
sudo apt-get install build-essential g++ python-dev autotools-dev libicu-dev build-essential libbz2-dev libboost-all-dev
./bootstrap.sh 
./bjam 
sudo ./bjam install.
ADD REPLY
0
Entering edit mode

Please use ADD COMMENT/ADD REPLY when responding to existing posts to keep threads logically organized.

If you are able to, use the .rpm Illumina provides instead.

ADD REPLY
0
Entering edit mode

Hi, I tried using rpm. However, if I follow the illumina installation guide I also get an error when using the command: rpm --install bcl2fastq2-v2.18.0.12-Linux-x86_64.rpm. It says: rpm: RPM should not be used directly install RPM packages, use Alien instead! rpm: However assuming you know what you are doing... error: Failed dependencies: /bin/sh is needed by bcl2fastq2-v2.18.0.12-1.x86_64

ADD REPLY
0
Entering edit mode

Do you have sudo access on this machine?

ADD REPLY
0
Entering edit mode

Install alien. Alien package will convert rpm to deb based on certain architecture assumption. read https://wiki.debian.org/Alien. In general it would install, but some times, it (converted deb) may fail.

ADD REPLY
2
Entering edit mode
7.4 years ago

Please download bcl2fastq2-v2.17.1.14-Linux-x86_64.rpm from above link and follow the instructions below: (copy/pasted from: https://github.com/igorbarinov/bcl2fastq/blob/master/install-2.17.sh)

 sudo apt-get install alien --assume-yes
 sudo alien bcl2fastq2-v2.17.1.14-Linux-x86_64.rpm
  sudo dpkg -i bcl2fastq2_0v2.17.1.14-2_amd64.deb

I was able to generate deb (bcl2fastq2_0v2.17.1.14-2_amd64.deb) and install it. Let us know if you are not able to generate deb. bcl2fastq is available in /usr/local/bin.

my system:

$ cat /etc/lsb-release 
DISTRIB_ID=LinuxMint
DISTRIB_RELEASE=18.2
DISTRIB_CODENAME=sonya
DISTRIB_DESCRIPTION="Linux Mint 18.2 Sonya

Linux mint 18.2 is based on ubuntu xenial (16.0.4)

$ uname -a
Linux genomics 4.8.0-53-generic #56~16.04.1-Ubuntu SMP Tue May 16 01:18:56 UTC 2017 x86_64 x86_64 x86_64 GNU/Linux

For some reason, if you fail to generate deb, i can upload the deb file and share a link to download.

ADD COMMENT
0
Entering edit mode

Thank you - I managed to download the deb.

ADD REPLY
2
Entering edit mode
9 months ago
predeus ★ 2.1k

In case someone is looking for an up-to-date way to install bcl2fastq2 (which is basically the relevant version of bcl2fastq): conda install is somewhat hidden, but

conda install bih-cubi::bcl2fastq2

works really well in early 2024.

(Seriously though, Illumina, is this a joke? those distributions are... something else. And no official Docker? Why?)

ADD COMMENT
1
Entering edit mode

If I need to install bcl2fastq conda is my go to.

(Seriously though, Illumina, is this a joke? those distributions are... something else. And no official Docker? Why?)

Pushing for the basespace as well as on-board dragens on the newer machines.

ADD REPLY
1
Entering edit mode

There is no reason to use bcl2fastq at this point. Switch to bcl-convert since that is the only application now under active development. It supports all (including older) sequencers.

ADD REPLY
0
Entering edit mode

Thank you - did not know that!

ADD REPLY
0
Entering edit mode

bcl-convert is only for available for centos though :/. Is source available or any packages for debian based distros?

ADD REPLY
1
Entering edit mode
7.4 years ago
Lina F ▴ 200

I took some notes last time I installed bcl2fastq and this worked for me on Ubuntu. However, it's an older version, so feel free to modify:

SOURCE_NAME=bcl2fastq2-v2.17.1.14.tar.zip
SOURCE_URL=ftp://webdata2:webdata2@ussd-ftp.illumina.com/downloads/software/bcl2fastq/$SOURCE_NAME
SOURCE_WORKDIR=/tmp/bcl2fastq

sudo apt-get update && \
    apt-get install -y build-essential libboost1.54-all-dev cmake zlibc libc6 unzip wget && \

$SOURCE_WORKDIR
cd $SOURCE_WORKDIR && \
    wget $SOURCE_URL 
cd $SOURCE_WORKDIR && unzip $SOURCE_NAME && \
    tar xzf $(basename $SOURCE_NAME .zip).gz && \
    mkdir $SOURCE_WORKDIR/bcl2fastq/build && \
    cd $SOURCE_WORKDIR/bcl2fastq/build && \
    ../src/configure --prefix=/usr/local && \
    make && \
    make install
ADD COMMENT
1
Entering edit mode
6.0 years ago
GokalpC ▴ 100

Hi

I generated deb packages and zip files for binaries for the latest 2 versions of bcl2fastq2. Feel free to try these.

All compiled on ubuntu with static library linking so there should not be any resource dependencies. Zip packages can be used on any linux distro just by adding the folder to the PATH. I tried these on Manjaro and Ubuntu so far and no issues detected. Debian packages are not converts from rpm. Fresh compiled from source code under ubuntu 18.04.

Bcl2fastq 2.19 deb package compiled via gcc 7.3

Bcl2fastq 2.20 deb package compiled via gcc 7.3

Bcl2fastq 2.20 zip package compiled via gcc 8.2

Bcl2fastq 2.20 zip package compiled via gcc 7.3

ADD COMMENT
1
Entering edit mode

Downloading something from Google Drive from a user who only just registered, on face value, looks suspicious. Can you at least provide some indication of who you are and some evidence that these packages work? We live in an age of increased cyber crime.

ADD REPLY
2
Entering edit mode

Sorry about that. I am a long time registered user in GATK forums my nickname is SkyWarrior there. I have been in bioinformatics for about 5 years and before that I was all a wetlab guy. As a hobbyist I dealt with FOSS for a long time and after I quit wetlab business as a researcher I decided to give my linux and math skills a go for bioinformatics and it has paid pretty well.

Again I am sorry if any of these links felt like a scam but believe me it is not. I am publishing the steps that I did to generate these deb files so anyone can make their of if they don't want to download but still need a private repository for themselves to keep a copy of working software.

Here are the things you need to get things up and running for this compilation to go successfully. Internet links are full of recommendations of how to get this thing done on older versions of ubuntu or other linux distro but I tried this on the latest stable and rolling ubuntu.

1- Get Ubuntu 18.04 or 18.10 running on a computer or a VM. I use VM or docker image because it is much more handy and I can keep that for later versions to build if needed. 2- Run the following commands to get your compilers and libs up to date

sudo apt-get update
sudo apt-get install gcc build-essentials libbz2-dev zlib1g-dev

These commands will install gcc 7.3 in 18.04 and gcc 8.2 in 18.10. Once these are done successfully follow the steps below.

Steps to create these deb packages your own.

  • Download the latest source code from illumina website and extract the bcl2fastq folder inside another empty folder that would keep your work tidy.

  • Once you extracted bcl2fastq folder create a folder named build next to bcl2fastq folder.

  • Now open up a terminal window inside the build folder and type the following command that is needed for proper libboost-1.54 compilation from the source code provided.

    export CPLUS_INCLUDE_PATH=/usr/include/x86_64-linux-gnu:$CPLUS_INCLUDE_PATH

This command restores the stat.h file for a missing header problem in libboost compilation.

  • Now run the below command to start the configuration.

    ../bcl2fastq/src/configure --static --prefix=/usr/local --build-type Release --package-type=deb

  • This command will go through the steps of creating static library links required to build bcl2fastq in the following step.

  • Once this command is completed successfully it is time to modify a file that prevents deb package to be generated with the proper version info successfully. Inside the build folder there is a file named CPackConfig.cmake. Open this file with a text editor and change the following line (version is for the 2.20 but you get the point.)

    SET(CPACK_PACKAGE_VERSION "v2.20.0.422") to SET(CPACK_PACKAGE_VERSION "2.20.0.422")

  • After that run the following command inside the build folder again as usual.

    make package

After these steps you should have a deb package generated successfully inside the folder build. You can use that package to install to any debian based distro.

There is also another folder named _CPack*. Inside that folder you will also find compiled binaries that can be used in any linux distro that is not compatible with deb packages.

It is sad that Illumina does not provide this by default but it is nothing impossible with a few tricks explained here.

Here are the screenshots of the running package on my Windows 10 Desktop with Ubuntu on Windows feature. It just works

bcl2fastq 2.20 deb package installed on WSL

I am preparing a video link for everyone to follow what I did visually here. Just give me an hour.

EDIT: Here is the link to the video. I just captured it. Sorry if it is not good. Quality may improve in an hour once youtube finishes its processing.

https://youtu.be/61ZkMSRJhiI

ADD REPLY
0
Entering edit mode

may be you can host it on public github repos or some other version tracking public repos. gokalpceliksentegen

ADD REPLY
0
Entering edit mode

Can one not just use conda? Why does one need deb packages?

ADD REPLY
0
Entering edit mode

Sure it can be done but I had zero experience with conda package manager. In fact I wanted to have a private repository for my workplace computing environment that's why I generated these .deb packages but also noticed that there may be others in need of this software.

ADD REPLY
0
Entering edit mode

It's great effort on your part, but I think you could just have a specific conda channel for your workplace computing environment and save yourself some effort. I think that's what Devon Ryan does, but I could be mistaken.

ADD REPLY
0
Entering edit mode

it really works ,thank you

ADD REPLY
0
Entering edit mode
5.7 years ago
GokalpC ▴ 100

Hi

Sorry that this is a very late reply for a repository for this build. Finally I generated a docker image for this build.

It can be had from skysbiodocker/bcl2fastq2

docker pull skysbiodocker/bcl2fastq2

There is another docker image that I used to use which is the illumina rpm build based on centos6.9 however that image is incompatible with later kernel versions especially 4.19. I also noticed that illumina rpm build of the 2.20 tool is also segfaulting under latest kernels but If you wish to use that that is also available

docker pull skysbiodocker/bcl2fastq

Beware that kernel incompatibilities may kill this image.

ADD COMMENT
0
Entering edit mode
4.7 years ago
dmathog ▴ 40

Here is a build on CentOS 8 using the 8.3.1 version of the gcc tools. The patch gets rid of all the warnings in the build of bcl2fastq itself, and the binary runs. It has not been tested extensively, unknown if the results are correct. Note however that the configure step is still full of much strangeness, including:

1.  building its own cmake
2.  finding a more recent libxslt but building its own older version.
3.  finding a more recent libxml2 but building its own older version
4.  scads of compiler warnings

The build target uses an Lmod module at the end. Change TOPDIR and skip the module generate if you do not need that.

  #2020/04/24 on CentOS 8
  pversion=2.20.0.422
  TOPDIR=/usr/common/modules/el8/x86_64/software/bcl2fastq/${pversion}-CentOS-vanilla
  #previous is where it will be installed
  cd /usr/common/src #work directory only , /tmp would be OK
  wget ftp://webdata2:webdata2@ussd-ftp.illumina.com/downloads/software/bcl2fastq/bcl2fastq2-v2-20-0-tar.zip
  unzip bcl2fastq2-v2-20-0-tar.zip
  /bin/rm bcl2fastq2-v2-20-0-tar.zip
  gunzip -c bcl2fastq2-v2.20.0.422-Source.tar.gz  | tar -xf - 
  /bin/rm bcl2fastq2-v2.20.0.422-Source.tar.gz
  cd bcl2fastq/src
  wget https://saf.bio.caltech.edu/pub/software/molbio/bcl2fastq_2.20.patch
  cat bcl2fastq_2.20.patch | patch -p0
  export BOOST_INCLUDEDIR=/usr/include/boost169
  export BOOST_LIBRARYDIR=/usr/lib64/boost169
  mkdir build
  cd build
  ../configure --prefix=$TOPDIR --with-unit-tests \
   --build-type=Release --verbose \
  2>&1 \
   | tee configure_2020_04_24.log
  make 2>&1 | tee build_2020_04_24.log
  make install 2>&1 | tee install_2020_04_24.log
  #If you use Lmod this script is handy.  Modify to fit your site:
  #  https://saf.bio.caltech.edu/pub/software/linux_or_unix_tools/module_generate_from_directory.sh
  module_generate_from_directory.sh \
     bcl2fastq \
     $pversion\
     CentOS/vanilla \
     $TOPDIR \
     "Demultiplex sequencing data and convert base call (BCL) files into FASTQ files." \
     "https://support.illumina.com/sequencing/sequencing_software/bcl2fastq-conversion-software.html"
ADD COMMENT

Login before adding your answer.

Traffic: 1965 users visited in the last hour
Help About
FAQ
Access RSS
API
Stats

Use of this site constitutes acceptance of our User Agreement and Privacy Policy.

Powered by the version 2.3.6