# bcl2fastq2 v2.20.0 converstion software on Ubuntu 18.04

bcl2fastq is a program that converts Illumina run output from .bcl to fastq. I'm having difficulties installing the software I downloaded from Illumina on my Ubuntu 18.04. I've followed their installation manual, but the software is not building when I enter the command "make". I receive the error message... "make: *** No targets specified and no makefile found. Stop. Has anyone had similar experience? Is there another software that will install easier on Ubuntu?

Steps followed:

export TMP=/tmp
export SOURCE=$${TMP}/bcl2fastq export BUILD=$${TMP}/bcl2fastq2-v2.20.0-build
export INSTALL_DIR=/usr/local/bcl2fastq2-v2.20.0

cd ${TMP} tar -xvzf bcl2fastq2-v2.20.0.499-Source.tar.gz mkdir $${BUILD} cd$${BUILD} chmod ugo+x $${SOURCE}/src/configure chmod ugo+x$${SOURCE}/src/cmake/bootstrap/installCmake.sh $${SOURCE}/src/configure --prefix=$${INSTALL_DIR} cd${BUILD}
make


The final command is supposed to be make install, but the configure step fails with:

[ . . . ]
-- Configuring incomplete, errors occurred!
Couldn't configure the project:
/tmp/bcl2fastq2-v2.20.0-build/bootstrap_cmake/bin/cmake -H'/tmp/bcl2fastq/src' -B'/tmp/bcl2fastq2-v2.20.0-build' -G'Unix Makefiles' -DBCL2FASTQ_NAME_SHORT:STRING="bcl2fastq" -DBCL2FASTQ_NAME_LONG:STRING="BCL to FASTQ file converter" -DBCL2FASTQ_COPYRIGHT:STRING="Copyright (c) 2007-2017 Illumina, Inc." -DBCL2FASTQ_VERSION_MAJOR:STRING="2" -DBCL2FASTQ_VERSION_MINOR:STRING="20" -DBCL2FASTQ_VERSION_PATCH:STRING="0" -DBCL2FASTQ_VERSION_BUILD:STRING="422" -DBCL2FASTQ_VERSION:STRING="2.20.0.422" -DBCL2FASTQ_SOURCE_DIR:STRING="/tmp/bcl2fastq/src" -DBCL2FASTQ_PREFIX:PATH="/usr/local/bcl2fastq2-v2.20.0" -DBCL2FASTQ_EXEC_PREFIX:PATH="" -DCMAKE_INSTALL_PREFIX:PATH="/usr/local/bcl2fastq2-v2.20.0" -DBCL2FASTQ_BINDIR:PATH="" -DBCL2FASTQ_LIBDIR:PATH="" -DBCL2FASTQ_LIBEXECDIR:PATH="" -DBCL2FASTQ_INCLUDEDIR:PATH="" -DBCL2FASTQ_DATADIR:PATH="" -DBCL2FASTQ_DOCDIR:PATH="" -DBCL2FASTQ_MANDIR:PATH="" -DCMAKE_BUILD_TYPE:STRING="RelWithDebInfo" -DCMAKE_PARALLEL:STRING="1"
Moving CMakeCache.txt to CMakeCache.txt.removed

• Please edit your question and add: i) the URL of the software you downloaded; ii) the exactly commands you have run. Are you running make from the directory where you have run .configure? Did you run configure? Jun 6, 2019 at 16:24
• Thanks for the edit, that's clearer! Now, some of those commands should have given an error message, did they? Especially the ${SOURCE}/src/configure --prefix=${INSTALL_DIR}, did that finish successfully? And what happens if you now run cd /tmp/bcl2fastq2-v2.20.0-build; make? Have you installed the build-essentials (sudo apt install build-essentials) package on Ubuntu? Jun 6, 2019 at 17:58
• No errors displayed when I ran the commands. I haven't been able to install the build-essentials... I get the message "Unable to locate package build-essentials. The message I get when I run "make" is something about not having a target. Jun 6, 2019 at 18:17
• Please edit your question and add all this information. You can use the formatting tools to format your commands and their output as code. Comments are hard to read, easy to miss and can be deleted without warning. Jun 6, 2019 at 22:50
• I suggest you install it via the RPM, this is an incredibly annoying package to compile yourself (this is unfortunately common with software from Illumina). Jun 7, 2019 at 9:40

Install it with conda.

conda install -c dranew bcl2fastq

• Hope you don't get sued by Illumina for illegal distribution of their software... Jun 25, 2020 at 13:34
• ... need to preferably install Anaconda3/minicoda .
– M__
Jun 25, 2020 at 15:19

Where are you running the software? In general and especially for servers and high performance clusters I would recommend to use a module system like Lmod in conjunction with EasyBuild, which contains configs for bcl2fastq2 that take care of the installation. A module system allows you to use different versions and to keep your environment clean among other benefits.

• The OP is running the software on their own Ubuntu machine, I'm not sure EasyBuild would be appropriate in context.
– M__
Jun 22, 2020 at 6:17