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?)
------- ======= ####### ======= -------
Anyway, just for the possible interest of others out there using Solaris,
I recently compiled htdig 3.2.0b3 on Solaris 8 (gcc version 2.95.2), running
configure as follows:
-------------- snip -------------
./configure --prefix=/usr/local/htdig --disable-shared --with-cgi-bin-dir=/usr/l
ocal/web_live/int/cgi-bin --with-image-dir=/usr/local/web_live/int/htdocs/htdig
--with-search-dir=/usr/local/web_live/int/htdocs/htdig
<... stuff deleted>
checking dynamic linker characteristics... solaris2.8 ld.so
checking if libtool supports shared libraries... yes
checking whether to build shared libraries... no
checking whether to build static libraries... yes
<... rest deleted>
-------------- snip -------------
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?
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.
A QUICK HACK THAT JUST GOT ME OUT OF TROUBLE:
I just wrote a quick wrapper script "htwrapper" as follows (sitting in our
cgi-bin dir with htsearch) and changed "search.html" to call htwrapper
instead of htsearch:
-------------- htwrapper - snip -------------
#!/bin/sh
# A wrapper for htsearch under Solaris 8 that ensures that LD_LIBRARY_PATH
# includes "/usr/local/htdig/lib/htdig". Otherwise, when running htsearch
# via apache, ld complains that it can't find the required dynamic linking
# objects.
#
# Start by setting LD_LIBRARY_PATH (empty in our apache's env):
LD_LIBRARY_PATH="/usr/lib:/etc/:/usr/local/lib:/usr/openwin/lib:/usr/local/htdig/lib/htdig"
export LD_LIBRARY_PATH
# Now read the form's POST variables into 'line':
read line
# Call htsearch and pass form's variable string in via stdin:
echo "$line" | ./htsearch
-------------- snip -------------
But I wonder if I'm missing something. Under Linux, there are files in
/etc where one can install search paths for "ld", but I can't remember
anything for Solaris other than setting stuff in the environment. It's
a pity that htdig couldn't just install libraries in /usr/local/lib -
are there potential collisions in doing that?
(It occurs to me that Sun could do themselves some real good by donating
some recent systems to Gilles, Geoff, etc)
--
Cheers,
Tony
Tony Sanderson - CSIRO _--_|\ [EMAIL PROTECTED]
Division of Minerals / \ tel +61 3 9545 8900 or 8799
Box 312 Clayton South \_.--.*/ fax +61 3 9562 8919
3168 AUSTRALIA v http://www.minerals.csiro.au
Jesus Saves,
Moses Invests,
But only Buddha pays Dividends
_______________________________________________
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