NCBI C Toolkit Cross Reference

C/doc/FAQ.txt


  1 
  2 This document contains the Frequently Asked Questions with Answers
  3 to the NCBI toolkit.
  4 It is available at ftp://ftp.ncbi.nih.gov/toolbox/FAQ.html
  5 
  6 In case of any questions don't hesitate to ask us at
  7     mailto:toolbox@ncbi.nlm.nih.gov
  8 
  9 Q. Where can I download the binaries of NCBI toolkit?
 10 A. The binaries of NCBI toolkit may be downloaded at:
 11     BLAST:      ftp://ftp.ncbi.nih.gov/blast/executables/
 12     SEQUIN:     ftp://ftp.ncbi.nih.gov/sequin/
 13     FA2HTGS:    ftp://ftp.ncbi.nih.gov/fa2htgs/
 14     ENTREZ:     ftp://ftp.ncbi.nih.gov/entrez/
 15     CN3D:       ftp://ftp.ncbi.nih.gov/cn3d/
 16 
 17 Currently NCBI prepares the binaries for the following platforms:
 18     Sun/Sparc -- Solaris 2.8
 19     Intel x86 -- Solaris 2.7
 20     Intel x86 -- Linux with kernel 2.4.17 and glibc ver 2.2.4
 21     Intel x86 -- Microsoft Windows 2000 (32bit)
 22     IBM       -- AIX 4.3.3
 23     DEC Alpha -- OSF1 V5.1
 24     SGI       -- IRIX 6.5
 25     Motorola 68000   -- MacOS
 26     Motorola PowerPC -- MacOS
 27 
 28 Q. Where can I download the sources of NCBI toolkit?
 29 A. The sources of NCBI toolkit for Unix are located at:
 30     ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/ncbi.tar.Z
 31 The sources of NCBI toolkit for Windows are located at:
 32     ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/ncbiz.exe
 33 And the sources of NCBI toolkit for Mac are located at:
 34     ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/ncbi.hqx
 35 
 36 Q. I have Macintosh PowerBook with Mac OS 10, what archive should I download?
 37 A. For Mac OS 10 you should download the sources of NCBI toolkit for Unix
 38    located at:
 39     ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/ncbi.tar.Z
 40    The Darwin is supported, you should have GNU tar, GNU make and other GNU utils
 41    installed. Please follow unix instructions in file ./ncbi/make/readme.unx
 42 
 43 Q. How to find the version of the toolkit?
 44 A. The source of the ToolKit for Unix, which is located at
 45     ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/ncbi.tar.Z
 46 should have the file ncbi/VERSION with the date of the building.
 47 
 48 Q. How to build NCBI toolkit on Unix?
 49 A. Read the file ftp://ftp.ncbi.nih.gov/toolbox/readme.unx
 50    You should take the sources of NCBI tookit at:
 51     ftp://ftp.ncbi.nih.gov/toolbox/ncbi_tools/ncbi.tar.Z
 52     put the archive to the new empty directory:
 53     mkdir toolkit
 54     cd toolkit
 55     #download ncbi.tar.Z here
 56     compress -d < ncbi.tar.Z | tar xvf -
 57     # the new directory ncbi will be extracted
 58     # now run the command:
 59     # in sh or bash
 60     ./ncbi/make/makedis.csh - 2>&1 | tee out.makedis.csh
 61     # in csh or tcsh
 62     ./ncbi/make/makedis.csh - |& tee out.makedis.csh
 63    The new binaries and libraries will be in ncbi/build subdirectory
 64 
 65 Q. May I build toolkit on Solaris/Intel or Solaris/Sparc using GNU C?
 66 A. Yes, just set the environment variable CC to gcc prior to run of
 67    ./ncbi/make/makedis.csh , like:
 68     # in sh or bash
 69     CC=gcc ./ncbi/make/makedis.csh - 2>&1 | tee out.makedis.txt
 70     # in csh or tcsh
 71     env CC=gcc ./ncbi/make/makedis.csh - |& tee out.makedis.txt
 72 
 73 Q. How can I build toolkit on Linux with Vibrant library?
 74 A. You should purchase Motif for Linux. 
 75 As an alternative to Motif there is a free clone which is called Lesstif
 76 which can be downloaded at http://www.lesstif.org/
 77 We didn't check this option yet, so you can use Lesstif for your own risk.
 78 Besides the Motif/Lesstif the X11R6 development toolkit should be installed.
 79 
 80 Q. On Linux I got the following error on compilation of toolkit:
 81 gcc -pipe -o Psequin -I. -O2 -I../include -L../lib -I/usr/X11R6/include
 82 -L/usr/X11R6/lib -DWIN_MOTIF -UINTERNAL_NCBI_SEQUIN sequin1.c sequin2.c
 83 sequin3.c sequin4.c sequin5.c sequin6.c sequin7.c sequin8.c sequin9.c
 84 sequin10.c sequinx.c -lncbicn3d -lddvlib -lvibnet -lncbidesk -lblastapi
 85 -lblast -lncbimmdb -lncbitxc2 -lncbiid1 -lnetblast -lncbitool -lblastcompadj
 86 -lncbimla -lncbiNacc -lnetentr -lnetcli -lncbicdr -lvibrant -lncbiobj -lncbi
 87 -L/usr/X11R6/lib -Wl,-Bstatic -lXm -Wl,-Bdynamic -lXmu -lXt -lX11 -lXext -lXp
 88 -lm
 89 sequin6.c:262: warning: useless storage class specifier in empty declaration
 90 ../lib/libncbi.a(ncbifile.o): In function `Nlm_TmpNam':
 91 ncbifile.c:(.text+0x2b4): warning: the use of `tempnam' is dangerous, better
 92 use `mkstemp'
 93 /usr/lib/libXm.a(TextIn.o): In function `SelfInsert':
 94 (.text+0x9828): undefined reference to `XftTextExtentsUtf8'
 95 [...]
 96 /usr/lib/libXm.a(Png.o): In function `png_load_file':
 97 (.text+0x4ec): undefined reference to `png_destroy_read_struct'
 98 collect2: ld returned 1 exit status
 99 make: *** [Psequin] Error 1
100 A. To avoid binary-compatibility concerns in the executables we distribute,
101 we normally arrange for the C Toolkit to link Motif statically on Linux.
102 This arrangement has the unfortunate side effect that some users run into
103 undefined symbol errors because their system's implementation has additional
104 library dependencies relative to ours.  The fix is at least straightforward:
105 open the relevant .../ncbi/platform/*linux*.ncbi.mk file in your favorite
106 text editor and adjust the definition of NCBI_DISTVIBLIBS to omit the -Wl,-B
107 flags, most critically -Wl,-Bstatic .  You can determine which file to edit
108 by reviewing out.makedis.csh; there should be a line near the beginning of
109 the form reading "platform is linux64" or the like.
110 
111 Q. On RedHat Linux 7.* I got the following error on compilation of toolkit:
112 gcc -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -O2 -c  -I../include objproj.c
113 {standard input}: Assembler messages:
114 {standard input}:2352: Error: immediate operand illegal with absolute jump
115 {standard input}:2761: Error: immediate operand illegal with absolute jump
116 make: *** [objproj.o] Error 1
117 So how can I solve this problem?
118 A. This is a bug in optimizier of gcc compiler which is instaled by default
119 on Redhat Linux. You can either compile this file manually deleting the
120 optimization flag:
121     cd ./ncbi/build
122     gcc -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -c  -I../include objproj.c
123     cd ../..
124     ./make/makedis.csh 2>&1 | tee -a out.makedis.txt
125 Or upgrade the gcc to latest version 3.0.4
126 
127 Q. On RedHat Linux 7.* I got the following error on compilation of toolkit:
128 gcc -static -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -o Psequin
129 -I. -O2 -I../include  -L../lib -I/usr/X11R6/include -L/usr/X11R6/lib
130 -DWIN_MOTIF -UINTERNAL_NCBI_SEQUIN sequin1.c sequin2.c sequin3.c sequin4.c
131 sequin5.c sequin6.c sequin7.c sequin8.c sequin9.c sequinx.c -lncbicn3d -lddvlib
132 -lvibnet -lncbidesk -lncbimmdb -lncbitxc2 -lncbiid1 -lnetblast
133 -lncbitool -lncbimla \ -lncbiNacc -lnetentr -lnetcli -lncbicdr -lvibrant
134 -lncbiobj -lncbi -L/usr/X11R6/lib -lXm -lXmu -lXt -lSM -lICE -lXext -lXp
135 -lX11 -ldl -lm
136 sequin2.c: In function `ImportFastaDialog':
137 sequin2.c:562: warning: comparison is always true due to limited range
138 of data type
139 sequin4.c: In function `SetDescriptorFocus':
140 sequin4.c:6580: warning: cast from pointer to integer of different size
141 /usr/X11R6/lib/libXmu.a(EditresCom.o): In function
142 `_XEditResCheckMessages':
143 EditresCom.o(.text+0x0): multiple definition of `_XEditResCheckMessages'
144 /usr/X11R6/lib/libXm.a(EditresCom.o)(.text+0x70): first defined here
145 ../lib/libncbi.a(ncbifile.o): In function `Nlm_TmpNam':
146 ncbifile.o(.text+0x728): the use of `tempnam' is dangerous, better use
147 `mkstemp'
148 collect2: ld returned 1 exit status
149 make: *** [Psequin] Error 1
150 FAILURE primary make status = 0, demo = 0, threaded_demo = 0, net = 2
151 
152 A. The problem is that you probably have the 'openmotif-devel' RPM installed,
153    which provides a 'libXm.a' that defines that function. We don't build
154    the toolkit aganist Open Motif, we build it against Lesstif. If the
155    end-user removes the 'openmotif-devel' package, things should work.
156    (The user might have to install a lesstif package or two, depending
157    on what they've already got set up.)
158 
159    Why RedHat lets you install two different Motif toolkits at the same
160    time, when they don't have identical implementations, is beyond us.
161 
162 Q. On Mandrake 9.* I got the following error on compilation of toolkit:
163     gcc -static -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE -o
164     asntool -O2 -I../include   -L../lib asntool.c asncode.c ../lib/libncbi.a -lm
165     /usr/bin/ld: cannot find -lm
166     collect2: ld returned 1 exit status
167     make: *** [asntool] Error 1
168    So how can I solve this problem?
169 A. Seems you do not have static MATH library (-lm).
170    You can try to build toolkit with dynamic libraries. Please change the line
171    in ./ncbi/platform/linux.ncbi.mk file from:
172      NCBI_CC = gcc -static -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
173    to:
174      NCBI_CC = gcc -pipe -D_FILE_OFFSET_BITS=64 -D_LARGEFILE64_SOURCE
175 
176 Q. How can I build toolkit on Linux without Vibrant library?
177 A. Yes, the ./ncbi/make/makedis.csh script tries to check for Motif presence
178    and without motif/lesstif builds only ascii-based applications like
179    standalone blast or idfetch.
180 
181 Q. Can I build threaded version of BLAST on IRIX6.X?
182 A. Yes, you can if you upgrade your system and put the proper patches.
183 SGI recommends the following threads patches on IRIX6 systems:
184    For 6.2 systems, install SG0001404, SG0001645, SG0002000, SG0002420
185 and SG0002458 (in that order)
186    For 6.3 systems, install SG0001645, SG0002420 and SG0002458 (in that order)
187    For 6.4 systems, install SG0002194, SG0002420 and SG0002458 (in that order)
188 These patches can be obtained by calling SGI customer service or from
189 the web: http://support.sgi.com/
190 
191 Q. Can I build non-threaded version of BLAST on IRIX6.X?
192 A. Yes, you can. In that case you should specify the flag
193  -DNCBI_NOTHREADS_AVAIL modifying the file ncbi/make/makedis.csh
194 
195 Q. I am having a bit of trouble trying to get the PSI blast to work. The
196 demo program "blastpgp.exe" simple issues an error message saying
197 "cannot open file "nr.pin"" and then crashes.
198 A. That message indicates that it can not find your database 'nr'.
199 After you run formatdb on nr you should have seven files (if you use
200 the '-o T' option) with names:
201 nr.phr  nr.pin  nr.pnd  nr.pni  nr.psd  nr.psi  nr.psq
202 First you should check that all the files are present and if they are
203 not, then look for error messages in formatdb.log.  Next check that
204 you are specifying the correct path to the files (or better, run blastpgp.exe
205 in the same directory as the database files).  You can also specify the
206 path in your ncbi.ini file by adding:
207 [BLAST]
208 BLASTDB=C:\BLAST\DB
209 where you replace "C:\BLAST\DB" by the directory that contains your
210 BLAST databases.
211 
212 Q. I installed the NCBI Toolkit but when I attempt to run this, I get
213 the error message: FindPath failed
214 A. This error message is usually caused either by not having an
215 ncbi.ini on Windows platforms or the .ncbirc file on UNIx or by not
216 having this file in the proper directory.
217 
218  1. For UNIX you need to have a .ncbirc file in your home
219     directory which points to the data directories.
220     Example:
221 
222     [NCBI]
223     Data=/home/user/entrez/data
224 
225  2. For Windows you need to have a ncbi.ini in your WINDOWS or
226     WINNT directory file which points to the data
227     directories. Example:
228 
229     [NCBI]
230     Data=C:\entrez\data
231  3. For the Mac, the configuration file is called ncbi.cnf, and
232     should be placed in your "System Folder:Preferences" subfolder.
233     Example:
234 
235     [NCBI]
236     Data=MacintoshHD:Entrez Folder:data
237         
238 Q. Can I get a hardcopy of the NCBI Toolkit documentation?
239 A. Yes, we will send you a hardcopy of the toolkit documentation. Please
240 send your request to the NCBI Information help desk at info@ncbi.nlm.nih.gov
241 Include your complete mailing address. 
242 

source navigation ]   [ diff markup ]   [ identifier search ]   [ freetext search ]   [ file search ]  

This page was automatically generated by the LXR engine.
Visit the LXR main site for more information.