Actually, I solved the problem. I looked at the Apache logs and found that a library was not found, and this is addressed in the FAQ section 3.6. I am running under Solaris, which apparently needs the LD_RUN_PATH set to the system lib directory before building htdig. All is working great now!
Thanks for your suggestions! Jeff Applicable FAQ item Below: 3.6. I'm compiling on Solaris and when I run the programs I get complaints about not finding libstdc++. Answer contributed by Adam Rice <[EMAIL PROTECTED]> The problem is that the Solaris loader can't find the library. The best thing to do is set the LD_RUN_PATH environment variable during compile to the directory where libstdc++.so.2.8.1.1 lives. This tells the linker to search that directory at runtime. Note that LD_RUN_PATH is not to be confused with LD_LIBRARY_PATH. The latter is parsed at run-time, while LD_RUN_PATH essentially compiles in a library path into the executable, so that it doesn't need a LD_LIBRARY_PATH setting to find its libraries. This allows you to avoid all the complexities of setting an environment variable for a CGI program run from the server. If all else fails, you can always run your programs from wrapper shell scripts that set the LD_LIBRARY_PATH environment variable appropriately. Note also that while this answer is specific to Solaris, it may work for other OSes too, so you may want to give it a try. However, not all versions of the ld program on all OSes support the LD_RUN_PATH environment variable, even if these systems support shared libraries. Try "man ld" on your system to find out the best way of setting the runtime search path for shared libraries. If ld doesn't support LD_RUN_PATH, but does support the -R option, you can add one or more of these options to LIBDIRS in Makefile.config before running make on a 3.1.x release. (For a 3.2 beta release, you can add these options to the LDFLAGS environment variable before you run ./configure.) ----- Original Message ----- From: Jim Cole <[EMAIL PROTECTED]> Date: Tue, 9 Jul 2002 03:41:19 -0600 (MDT) To: Jeff Axelrod <[EMAIL PROTECTED]> Subject: Re: [htdig] Installation/Configuration CGI Issue > Jeff Axelrod's bits of Mon, 8 Jul 2002 translated to: > > >Thanks for the suggestion. I tried renaming it to htsearch.out and changing the >search.html test file to point to htsearch.out, and got the same error. I can >successfully run a simple hello world C program named a.out in the same cgi-bin >directory as the htsearch.out, and the web page displayed correctly for a.out. I am >baffled. > > I assume you are using a form element in a web page to call your > hello world program? If so, what does it look like? If you paste > that element into search.html (replacing what is already there) > and change a.out to the current name of your htsearch CGI, do you > run into the same problem? > > Jim > > -- __________________________________________________________ Sign-up for your own FREE Personalized E-mail at Mail.com http://www.mail.com/?sr=signup Save up to $160 by signing up for NetZero Platinum Internet service. http://www.netzero.net/?refcd=N2P0602NEP8 ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Stuff, things, and much much more. http://thinkgeek.com/sf _______________________________________________ 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

