I am trying to install bowtie2 aligner from sources without the root access. Bowtie2 needs tbb package to be installed and it is recommended to install oneTBB.
# install one TBB
mkdir -p SHOME/soft
cd $HOME/soft
git clone https://github.com/oneapi-src/oneTBB.git
cd oneTBB
make
Then I add C_INCLUDE_PATH to .bashrc:
echo "export C_INCLUDE_PATH=$HOME/soft/oneTBB/include" >> ~./bashrc
and continue to install bowtie2:
# install bowtie2
mkdir -p $HOME/soft/bowtie/source
cd $HOME/soft/bowtie/source
wget https://sourceforge.net/projects/bowtie-bio/files/bowtie2/2.4.1/bowtie2-2.4.1-source.zip
unzip bowtie2-2.4.1-source.zip -d ..
cd ../bowtie2-2.4.1
make
TBB library is recognized but in the end I get this error:
/usr/bin/ld: cannot find -ltbb
/usr/bin/ld: cannot find -ltbbmalloc_proxy
collect2: error: ld returned 1 exit status
ltbb and ltbballoc_proxy are not in TBB but libtbb and libtbballoc_proxy instead. I also tryed to add variables to .bashrc:
TBB_LIB_PATH=$HOME/soft/oneTBB
TBB_INCLUDE_PATH=$HOME/soft/oneTBB/include
TBB_RELEASE_DIR=$HOME/soft/oneTBB/build/home/suvar/apps/oneTBB/build/linux_intel64_gcc_cc9.3.0_libc2.31_kernel5.4.0_release
but seems it does not help.
I need help to complete the installation of bowtie2 on our server.
sudo apt install libtbb-dev
, in MacOS you can install it with Homebrewbrew install tbb
. $\endgroup$