On 11/22/2011 07:26 AM, bioinfornatics wrote:
dear, i started to interface fastcgi to D
https://github.com/bioinfornatics/DFastCGI
They are a Readme and some example for quick start
at this time take example from examples/test3_fcgiapp.d
Any help are welcome
Thanks
I don't see a test3_fcgiapp.d, but I've tested the
test_fcgiapp on CentOS 6 with dmd (the Fedora rpm works great).
Once I fixed the build script to work properly on my machine, everything
else worked out of the box. I installed fastcgi fresh on my server just
to test this, no extra config required.
I'm not very good with github, or I would have forked, and submitted a
pull request.
diff --git a/build.sh b/build.sh
index 4c2e737..cf7b64a 100755
--- a/build.sh
+++ b/build.sh
@@ -49,7 +49,7 @@ DESTDIR="../install"
LIBDIR_PATH=""
DFLAGS="-w -g -op -c -od../build"
-while getopts âhvqscf:l:p:â OPTION
+while getopts âhvqsc:f:l:p:â OPTION
do
case $OPTION in
c)
@@ -202,11 +202,11 @@ case ${DC} in
echo "not supported"
else
if [[ $VERBOSE -ge 2 ]]; then
- echo -e "${DC} -link *.o -of
${LIBDIR_PATH}/libDFastCGI-${COMPILER}.a"
+ echo -e "${DC} -lib *.o
-of${LIBDIR_PATH}/libDFastCGI-${COMPILER}.a"
fi
- ${DC} -link $(find . -name "*.o") -of
${LIBDIR_PATH}/libDFastCGI-${COMPILER}.a
+ ${DC} -lib $(find . -name "*.o")
-of${LIBDIR_PATH}/libDFastCGI-${COMPILER}.a
if [[ $? -ge 1 ]]; then
- fail "${DC} -link"
+ fail "${DC} -lib"
fi
fi
;;