Apache configuration failed

21 views
Skip to first unread message

Prakhar Agarwal

unread,
Mar 24, 2009, 12:22:10 PM3/24/09
to fire...@googlegroups.com
Thanks everyone!
I successfully did Make. There are 51 binaries in /fire/bin/
Next, I tried to install apache as per install-2.2.txt file. I get there errors:

prakhar@OpenDev:httpd-2.2.8$ ./configure --prefix=$HOME/apache
checking for chosen layout... Apache
checking for working mkdir -p... yes
checking build system type... i686-pc-linux-gnu
checking host system type... i686-pc-linux-gnu
checking target system type... i686-pc-linux-gnu

Configuring Apache Portable Runtime library ...

checking for APR... reconfig
configuring package in srclib/apr now
./configure: eval: line 3477: syntax error near unexpected token `('
./configure: eval: line 3477: `/bin/bash /media/Work/Prakhar/Jaypee/4th year(2008-09)/Image Indexing/FIRE/httpd-2.2.8/srclib/apr/configure ''--prefix=/home/prakhar/apache'' --cache-file=/dev/null --srcdir=/media/Work/Prakhar/Jaypee/4th year(2008-09)/Image Indexing/FIRE/httpd-2.2.8/srclib/apr --prefix=/home/prakhar/apache --exec-prefix=${prefix} --libdir=${exec_prefix}/lib --includedir=${prefix}/include --bindir=${exec_prefix}/bin --datadir=${prefix} --with-installbuilddir=${datadir}/build'
configure failed for srclib/apr

I tried troubleshooting it by searching on net, but could not understand. Somebody please help!

Thanks!
--
Prakhar Agarwal
Linux User# 474643
http://fedoraproject.org/wiki/User:Prakhar
"Life is the greatest teacher"

Prakhar Agarwal

unread,
Mar 24, 2009, 4:50:27 PM3/24/09
to fire...@googlegroups.com
okay, I have completed the installation of Apache server and FIRE, but I wish to ask that it's mentioned in install-2.2.txt that there should be 52 binaries in fire-2.2/bin/
I get 51 and here is the output of "make": http://pastebin.com/m5326f982
How do I make out which binary missing in /bin/ ?
I have setup everything by following all the steps but I'm not able to use it properly. Any activity on the web interface at http://localhost:12960/cgi-bin/fire.py ends up with this error:

Traceback (most recent call last): File "/home/prakhar/apache/cgi-bin/fire.py", line 862, in message+=newFile(form) File "/home/prakhar/apache/cgi-bin/fire.py", line 359, in newFile temporaryFiles=config.tempdir # standard: "/tmp" AttributeError: 'module' object has no attribute 'tempdir'

Is this related to that ONE binary file missing in /bin/ ? Please guide me.

Thomas Deselaers

unread,
Mar 24, 2009, 4:54:17 PM3/24/09
to fire...@googlegroups.com
Hi Prakhar,

You do not necesssarily need 52 binaries.

You only need all binaries if you want to use every feature that was
present in fire at some time. You probably won't.

To get started, you need 3:
fire, extractcolorhistogram, extracttamuratexturefeature

There are a bunch of more files which might be handy for some stuff at
a later point.


the error that you describe below is related to the installation of
your webinterface fire.py and its configuration config.py in the
cgi-bin directory of apache.

Cheers,
thomas
--
http://thomas.deselaers.de

Prakhar Agarwal

unread,
Mar 24, 2009, 5:09:49 PM3/24/09
to fire...@googlegroups.com
Hi!
Thanks for that information. The /cgi-bin/config.py file looks like this:
#default settings
positiveImg="images/positive.png"
negativeImg="images/negativ.png"
neutralImg="images/neutral.png"
fireLogo="images/fire-logo.png"
i6Logo="images/i6.png"
TemplateFile = "fire-template.html"
fireServer="localhost"
firePort=12960
imgpyurl="img.py"
fireurl="fire.py"
#tempdir="/tmp"    ---- I changed it to tempdir="/tmp"
#maxSize=1000, 1000
#minSize=200, 200

Now, this error seems rectified but now I get the following:

Traceback (most recent call last): File "/home/prakhar/apache/cgi-bin/fire.py", line 887, in message+=randomImages() File "/home/prakhar/apache/cgi-bin/fire.py", line 526, in randomImages res=s.getline() File "/home/prakhar/apache/cgi-bin/firesocket.py", line 58, in getline raise RuntimeError, "socket connection broken" RuntimeError: socket connection broken

cheers

Prakhar Agarwal

unread,
Mar 24, 2009, 5:32:13 PM3/24/09
to fire...@googlegroups.com
I also tried this:  fire-2.2/bin/fire -f images/list -D -r 10
but got following errors:

prakhar@OpenDev:~/FIRE$ fire-2.2/bin/fire -f images/list -D -r 10
(10) [Retriever/retriever.cpp:993:filelist] Reading filelist: images/list
(10) [Retriever/database.cpp:136:loadFileList] suffix[0]=color.histo.gz
(10) [Retriever/database.cpp:136:loadFileList] suffix[1]=tamura.histo.gz
(10) [Retriever/retriever.cpp:1005:filelist] Loading features for 48 images...
(10) [Retriever/database.cpp:228:loadFeatures] 0 images loaded.
loading /home/prakhar/FIR/images/Image01.jpgcolor.histo.gz.histo
[Features/basefeature.cpp:14:load] ERROR: Canot open '/home/prakhar/FIR/images/Image01.jpg.color.histo.gz for reading.
loading /home/prakhar/FIR/images/Image01.jpgtamura.histo.gz.histo
[Features/basefeature.cpp:14:load] ERROR: Canot open '/home/prakhar/FIR/images/Image01.jpg.tamura.histo.gz for reading.
loading /home/prakhar/FIR/images/Image02.jpgcolor.histo.gz.histo
[Features/basefeature.cpp:14:load] ERROR: Canot open '/home/prakhar/FIR/images/Image02.jpg.color.histo.gz for reading.

and so on...for all 48 images. An idea about this?

Prakhar Agarwal

unread,
Apr 21, 2009, 3:09:49 PM4/21/09
to fire...@googlegroups.com
Hi!
Related to my previous efforts, I just wish to ask that should the directory containing images be stored inside $FIRE_DIR? I have been trying a lot to get FIRE running on my system but still unsuccessful.

Thomas Deselaers

unread,
Apr 21, 2009, 3:15:56 PM4/21/09
to fire...@googlegroups.com
No, it does not have to be.
Cheers,
thomas
--
http://thomas.deselaers.de

zhang lei

unread,
Apr 21, 2009, 8:03:16 PM4/21/09
to fire...@googlegroups.com
I think the key is the list file. You can write the full path of the image in the list,like
file  /home/username/datasets/100.jpg

so the images can be stored anywhere.

2009/4/22 Prakhar Agarwal <prakha...@gmail.com>
Reply all
Reply to author
Forward
0 new messages