'Problems with bedtools installation

I am a very new beginner in bash programming and never succeed in installing tools on my computer.

I am trying to install bedtools without any success

I typed these following commands on my terminal

wget https://github.com/arq5x/bedtools2/releases/download/v2.29.1/bedtools-2.29.1.tar.gz
tar -zxvf bedtools-2.29.1.tar.gz
cd bedtools2
make

It seems everything is good at these steps and then in order to add it on my path I typed:

echo 'export PATH="$PATH:/Users/avitrac/my_bin/bedtools2"' >> ~/.bash_profile

but when I am testing some basic command such as bedtools -h it says bedtools command is not found.

I feel there is something wrong with the echo step or with my bash_profil. I tried to follow instruction that I have read on internet but I feel I may did some mistakes.

Could someone help me ? I don't understand what is wrong and how to fix it !



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source