Re: ESQL/C CGI help needed
Posted in 1999
Hi, WWW servers is not set LD_LIBRARY_PATH to enviroment CGI skripts. You will make symbolic links into /lib directory. ln -s $INFORMIXDIR/lib/esql/libixsql.so /lib/libixsql.so ln -s $INFORMIXDIR/lib/esql/libixos.so /lib/libixos.so ln -s $INFORMIXDIR/lib/esql/libixgls.so /lib/libixgls.so ln -s $INFORMIXDIR/lib/esql/libixgen.so /lib/libixgen.so On Tue, 12 Jan 1999, Karthik Ramachandran wrote: > I am trying to use esql/c to write CGI programs for using HTML forms as > front-end to a database in Informix. After I compile the program and make > it into an executable, if i run it from command prompt in the cgi-bin > directory, the HTML statements are printed out fine, but when i try to run > the program from the browser i get an Internal Server Error (HTTP 500) and > the following error message: > [Mon Jan 11 15:12:10 1999] HTTPd: malformed header from script > /usr/local/etc/httpd/cgi-bin/extagenhtml2 > ld.so.1: extagenhtml2: fatal: libixsql.so: can't open file: errno=2 > > I am able to execute the program correctly at the command prompt in > cgi-bin directory without any errors.I have also linked the dynamic > informix esql library using the LD_LIBRARY_PATH environment variable. > What could be the problem? > > I would be thankful for any response. > > -Karthik > E-Mail: kramac1@unix1.sncc.lsu.edu > Regards Pavel *********************************************** * Pavel Hampl * * Corpus s.r.o., ulice Sluzeb 108 52 Praha 10 * * tel. +420-2-701719, 701748 * * fax +420-2-704814 * * E-mail pavel@corpus.cz * * WWW http://www.corpus.cz * ***********************************************