The shared library: libcgicc.so.5 can't be loaded when running test.cgi

贺志国 <[email protected]> Tue, 29 Mar 2005 00:24:11 +0800
Newsgroups gmane.comp.gcc.cgicc.general
Organization NUDT
Message-ID <002001c533b2$9cdbc150$441112ac@davidhopper>
Dear Sir,
 The cgicc is a very good and easy-to-use library. I'm very much
appreciated for your self-giving work.
 But I have a problem when I run the test.cgi demo program in Fedora Core 3.
Here is the error information:

[Sun Mar 27 21:24:49 2005] [error] [client 127.0.0.1]
/var/www/cgi-bin/test.cgi: error while loading shared libraries:
libcgicc.so.5: failed to map segment from shared object: Permission denied
[Sun Mar 27 21:24:49 2005] [error] [client 127.0.0.1] Premature end of
script
headers: test.cgi
[Sun Mar 27 21:24:49 2005] [error] [client 127.0.0.1] File does not exist:
/var/www/html/favicon.ico


 I have changed the cgi section of the "httpd.conf" file to the
following lines:

<Directory "/var/www/cgi-bin">
    AllowOverride None
    Options ExecCGI
    Order allow,deny
    Allow from all
</Directory>

 I have also added some library paths to the "ld.so.conf" file and run
the "ldconfig" command.

In file "ld.so.conf":
include ld.so.conf.d/*.conf
/usr/X11R6/lib
/usr/lib/mysql
/lib
/usr/lib
/usr/local/lib

 Finally I have changed permissions of the cgi-bin directory and
test.cgi file to "rwxr-xr-x".

 I think it is enough to make the program be run correctly. To my
disappointment, it doesn't work at all. I really don't know what
mistakes I have made. Please give me some advice at your convenience.
Thank you very much.

Yours Sincerely,
 David Hopper
 2005-3-27