According to Tony Sanderson:
> On Tue, 19 Jun 2001, Yoandy Mesa wrote:
> > when i do ./configure --prefix=/mipath i get the error: installation or
> > configuration problem: C++ compiler cannot create executables"
> > after doing some checking...could any one help me with this??
> 
> You haven't told us what platform this is on.  On a Sun, this message
> normally indicates that no C/C++ compiler has been installed - there
> is a default script called "cc" which issues this message.  Do you have
> gcc available (and have you set CC=gcc in your environment?)

Also make sure you have your PATH set correctly for running the compiler
before you run ./configure.

...
> Note the inclusion of "--disable-shared".
> 
> PROBLEM:
> 
> The end result of the build (now done twice) is a set of SHARED (not static)
> executables, eg:
> 
> % file htsearch
> htsearch: ELF 32-bit MSB executable SPARC Version 1, dynamically linked,
> not stripped                                         ^^^^^^^^^^^^^^^^^^
> 
> Anyone else had this happen?

The --disable-shared option doesn't prevent htdig from using dynamically
linked (i.e. shared) system libraries.  It just prevents htdig from
using shared libraries for its own libraries.  These are: libcommon.a,
libfuzzy.a, libht.a, libhtnet.a, libhtword.a and libhtdb.a.  Without the
--disable-shared option, it will build *.so libraries of these, and they
must be installed where htdig, htsearch, et al. can find them when they
are executed.  The problem is, on many systems these shared libraries
don't properly initialise the C++ objects contained within them, so
static linking of these libraries is preferable on these systems.

> As it turns out, the executables do run quite happily from a shell (where
> LD_LIBRARY_PATH contains the appropriate dirs) but htsearch fails when run
> by apache.

See http://www.htdig.org/FAQ.html#q3.6

-- 
Gilles R. Detillieux              E-mail: <[EMAIL PROTECTED]>
Spinal Cord Research Centre       WWW:    http://www.scrc.umanitoba.ca/~grdetil
Dept. Physiology, U. of Manitoba  Phone:  (204)789-3766
Winnipeg, MB  R3E 3J7  (Canada)   Fax:    (204)789-3930

_______________________________________________
htdig-general mailing list <[EMAIL PROTECTED]>
To unsubscribe, send a message to <[EMAIL PROTECTED]> with a 
subject of unsubscribe
FAQ: http://htdig.sourceforge.net/FAQ.html

Reply via email to