Problems installing samtools on linux (make command)
3
0
Entering edit mode
10.3 years ago
axelwilhelm ▴ 120

I am having troubles installing Samtools 1.0 on my Ubuntu laptop. I have downloaded and unziped so I have a folder called */home/awe/samtools*.

Nothing happens when I type samtools and press enter (command not found) so I try to type make but I get make: *** No targets specified and no makefile found. Stop.. I try find -name onfi but there is no ./config file available.

Edit:

The last lines in my .bashrc are

export SAMTOOLS_HOME=/home/awe/samtools/samtools-1.0
export PATH=$SAMTOOLS_HOME:$PATH
export PATH=$SAMTOOLS_HOME/bcftools/:$PATH
export PATH=$SAMTOOLS_HOME/misc/:$PATH

Whats my problem (please skip general derogatory answers about me)?

samtools linux • 26k views
ADD COMMENT
0
Entering edit mode
  1. You need to go in the samtools directory and then type 'make' and 'make install' to create and install executables. Sth like 'cd /home/awe/samtools'
  2. The add the executables to your path by modifying .bash_profile.

Second step is only needed if you want to call samtools from anywhere otherwise you can directly use the absolute path to the executable created in the samtools directory.

Also stop being a sissy boy. Trolling is the birth right of every internet user. Fun intended.

ADD REPLY
0
Entering edit mode

1) I am. 2) I have (see edit). 3) whats my problem?

ADD REPLY
0
Entering edit mode

I am a beginner in linux and also in bioinformatics.. so I really need help.. I tried to install sam tools but it fails and the command line showed this "curses development files not found". What does it mean? Thank you

ADD REPLY
0
Entering edit mode

It means you are missing ncurses/ncurses-devel libraries on your system. If you search for "install ncurses your_OS_name" you should get links for how to install that library.

BTW: Please don't use old threads to ask new questions in the area reserved for answers for the original question. Start a new thread instead.

ADD REPLY
11
Entering edit mode
10.3 years ago
dfornika ★ 1.1k

Do you have root or sudo rights on the machine? If so, you should be able to install samtools system-wide by typing:

sudo apt-get install samtools

If you'd still like to install from source, you first need to run the 'configure' script in the samtools source directory. If you don't have permissions to write to system directories like /usr/local then you should pass a prefix value to the configure script.

./configure --prefix=/home/awe
make
​make install

This will install samtools to /home/awe/bin. If you'd like to be able to run samtools by simply typing 'samtools' instead of /home/awe/bin/samtools then you need to add /home/awe/bin to your PATH environment variable if it hasn't already been added.

You can always check the current value of your PATH by typing:

echo $PATH
ADD COMMENT
0
Entering edit mode

Installing from command line did it. Command line is best. I do not know why I tried a browser download. I betrayed the command line, let it down and cheated on it. It punished me like the righteous all knowing, all powerfull higher being it is. That was my problem. Thank you for turning my straying soul to the right path.

ADD REPLY
0
Entering edit mode

This is almost certainly not samtools 1.0. dpkg -s samtools | grep Version will show you the installed version (0.1.19 for the latest ubuntu)

ADD REPLY
2
Entering edit mode
10.3 years ago
Charles Plessy ★ 2.9k

If you specifically need SAMtools version 1.0 you can try to install the Debian packages currently in our Experimental section. You will also need to install libhts1. Usually, mixing Debian and Ubuntu packages is not recommended, but if just for these two packages, it will be fine.

ADD COMMENT
1
Entering edit mode
10.3 years ago
David W 4.9k

Which package did you download?

Samtools1.0xxx has the source code and a Makefile in the root directory. If you type make your system will attempt to build the execultable

samtools-bcftools-htslibxxx has the compiled exectuables for the whole suite. They are in the bin directory.

ADD COMMENT
0
Entering edit mode

Samtools 1.0

make: *** No targets specified and no makefile found. Stop.
ADD REPLY
1
Entering edit mode

You probably downloaded the binary, not the source code. Next time, just look at what's actually in the directory. It should then be obvious what you have.

ADD REPLY

Login before adding your answer.

Traffic: 1643 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