Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Configure step does not work, can't find NCBI VDB #27

Closed
bosborne opened this issue Feb 15, 2016 · 13 comments
Closed

Configure step does not work, can't find NCBI VDB #27

bosborne opened this issue Feb 15, 2016 · 13 comments

Comments

@bosborne
Copy link

Not really sure what the right combination of options is, here's the closest I can get:

sudo ./configure --prefix=/software/apps/sratoolkit/gcc/64/2.5.8 --with-ngs-sdk-prefix=/software/apps/ngs-sdk/gcc/64/1.2.3 --with-ncbi-vdb-sources=/software/builds/ncbi-vdb/gcc/64/2.5.8/ncbi-vdb-2.5.8/ --with-ncbi-vdb-build=/software/apps/ncbi-vdb/gcc/64/2.5.8/
Configuring SRA-TOOLS package
checking system type... Linux
checking machine architecture... x86_64
checking SRA-TOOLS version... 2.5.8
checking for supported architecture... x86_64 (64 bits) is supported
checking for supported OS... Linux (linux) is supported
checking for supported tool chain... gcc tool chain is supported
checking for g++... yes
checking whether gcc accepts -Wno-array-bounds... yes
checking for fuse library... no
checking for hdf5 library... no
checking for magic library... no
checking for xml2 library... yes
checking for ngs-sdk package...
includes... /software/apps/ngs-sdk/gcc/64/1.2.3
libraries... /software/apps/ngs-sdk/gcc/64/1.2.3/lib64
includes: /software/apps/ngs-sdk/gcc/64/1.2.3/include
libraries: /software/apps/ngs-sdk/gcc/64/1.2.3/lib64
checking for ncbi-vdb package source files and build results...
includes... /software/builds/ncbi-vdb/gcc/64/2.5.8/ncbi-vdb-2.5.8
libraries... /software/apps/ncbi-vdb/gcc/64/2.5.8/lib64
no
configure: error: required ncbi-vdb package not found.

NCBI VDB is installed like this:

2518 > ls /software/apps/ncbi-vdb/gcc/64/2.5.8/lib64/
total 18340
0 libncbi-ngs-c++.a@ 0 libncbi-vdb.a.2@ 0 libncbi-vdb-static.a@ 0 libncbi-wvdb.so.2@
0 libncbi-ngs-c++.a.2@ 5752 libncbi-vdb.a.2.5.8 0 libncbi-wvdb.a@ 3512 libncbi-wvdb.so.2.5.8*
8 libncbi-ngs-c++.a.2.5.8 0 libncbi-vdb.so@ 0 libncbi-wvdb.a.2@ 0 libncbi-wvdb-static.a@
0 libncbi-ngs-c++-static.a@ 0 libncbi-vdb.so.2@ 5216 libncbi-wvdb.a.2.5.8
0 libncbi-vdb.a@ 3852 libncbi-vdb.so.2.5.8* 0 libncbi-wvdb.so@

2519 > ls /software/apps/ncbi-vdb/gcc/64/2.5.8/include/ncbi-vdb/
total 4
4 NGS.hpp*

No problem finding NGS SDK, as you can see.

@klymenko
Copy link
Contributor

In order to build 'sra-tools' you need the source files and build results of 'ncbi-vdb'.

--with-ncbi-vdb-sources is directory where the source files of 'ncbi-vdb' git package are.

--with-ncbi-vdb-build is the output directory of 'make' build running in 'ncbi-vdb'.
By default it is ~/ncbi-outdir .
Or it is the value of '--build-prefix' option from 'configure' of 'ncbi-vdb'.

@bosborne
Copy link
Author

Thank you for that prompt response. I tried setting the "--build-prefix" of NCBI VDB and the "--with-ncbi-vdb-build" of SRA toolkit to the same value as you suggested, still seeing:

configure: error: required ncbi-vdb package not found.

Can you show me an example "configure" command for NCBI VDB that sets --build-prefix? Then please show the corresponding example "configure" command for SRA Toolkit that sets --with-ncbi-vdb-build and --with-ncbi-vdb-sources.

@klymenko
Copy link
Contributor

Normally, you should not use these options.
The output by default goes to ~/ncbi-outdir.

Here is recommended build sequence:

rm -r /ncbi-outdir
mkdir /ncbi
cd /ncbi
git clone https://github.com/ncbi/ngs.git
git clone https://github.com/ncbi/ncbi-vdb.git
git clone https://github.com/ncbi/sra-tools.git
ngs/ngs-sdk/configure --prefix=
/software/apps/sratoolkit/gcc/64/2.5.8
make default install -C ngs/ngs-sdk
ncbi-vdb/configure --prefix=
/software/apps/sratoolkit/gcc/64/2.5.8
make default install -C ncbi-vdb
sra-tools/configure --prefix=
/software/apps/sratoolkit/gcc/64/2.5.8
make default install -C sra-tools

@seandavi
Copy link

Thanks, @klymenko. Is there a downside to using these options, for example, for a system-level installation?

@kwrodarmer
Copy link
Contributor

@seandavi , can you elaborate a bit on what you mean?

@kwrodarmer
Copy link
Contributor

Certainly for a system-level installation, you should never build as root, but only install as root, so
cd ncbi-vdb; make; sudo make install
would be more appropriate. Also, ~/ncbi is often used as a default cache location, so you might want to choose a different build location.

@bosborne
Copy link
Author

@klymenko Those configure examples don't work. If you do "ngs/ngs-sdk/configure --prefix=/software/apps/sratoolkit/gcc/64/2.5.8" then the corresponding SRA configure has to have this: "--with-ngs-sdk-prefix=/software/apps/sratoolkit/gcc/64/2.5.8/". Doing that does work, and the SDK is found. However, I'm still seeing this after trying various permutations of --with-ncbi-vdb-build and --with-ncbi-vdb-sources:

configure: error: required ncbi-vdb package not found

Can you show the values of --with-ncbi-vdb-sources and --with-ncbi-vdb-build that would work in this example?

@klymenko
Copy link
Contributor

klymenko commented Mar 1, 2016

More complete example:

sudo mkdir -p /sw/sra/src
sudo chmod o+w /sw/sra/src

mkdir -p /sw/sra/src/1
cd /sw/sra/src/1
git clone https://github.com/ncbi/ngs.git
mkdir -p /sw/sra/src/2
cd /sw/sra/src/2
git clone https://github.com/ncbi/ncbi-vdb.git
mkdir -p /sw/sra/src/3
cd /sw/sra/src/3
git clone https://github.com/ncbi/sra-tools.git

sudo mkdir /sw/sra/build
sudo chmod o+w /sw/sra/build

cd /sw/sra/src/1/ngs/ngs-sdk/
./configure --prefix=/sw/sra/gcc/64/2.5.8 --build-prefix=/sw/sra/build/ngs-sdk
make
sudo make install

cd /sw/sra/src/2/ncbi-vdb/
./configure --prefix=/sw/sra/gcc/64/2.5.8 --build-prefix=/sw/sra/build/ncbi-vdb --with-ngs-sdk-prefix=/sw/sra/gcc/64/2.5.8
make
sudo make install

cd /sw/sra/src/3/sra-tools/
./configure --prefix=/sw/sra/gcc/64/2.5.8 --build-prefix=/sw/sra/build/sra-tools --with-ncbi-vdb-sources=/sw/sra/src/2/ncbi-vdb --with-ncbi-vdb-build=/sw/sra/build/ncbi-vdb --with-ngs-sdk-prefix=/sw/sra/gcc/64/2.5.8
make
sudo make install

@jerviedog
Copy link

It works.

@klymenko klymenko closed this as completed Mar 7, 2016
@aarti-darra
Copy link

hi everyone,

Can someone please help me with the commands of downloading data from ncbi sra using new sra tools, the prefetch command I used is SHOWING ERROR AND FASTDUMP COMMAND SHOWS THIS AS AN ERROR:
fastq-dump: symbol lookup error: fastq-dump: undefined symbol: KDirectoryNativeDir

and thanks @klymenko for sharing the build sequence for sra tools.

I

@kwrodarmer
Copy link
Contributor

Hi @darra56-Csir ,

While this issue is closed, please start off by reading https://github.com/ncbi/sra-tools/wiki/HowTo:-Access-SRA-Data and win particular you should notice that tools from last March are guaranteed to fail now. Please see https://github.com/ncbi/sra-tools/wiki.

If you continue to experience issues, please open a new ticket. Thanks!

@mariakondili
Copy link

Hello, I highly recommend to post this kind of instructions in first page of the package ,for making Installation available to everyone who downloads the tool. It is not evident how to install, and especially because ncbi-vdb is required. Furthermore ,
I would like more help explaining where should the equivalent of the dir /sw/sra/gcc/64/2.5.8 files be for any user, and which script is actually called , e.g cmake ,cc , or other ?

@klymenko
Copy link
Contributor

klymenko commented Apr 7, 2022

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

7 participants