اول از همه :
اگه شما هم تازه ۲ روز باشه لینوکس کار کرده باشین و بعد بخواین اواچی نصب کنین همینطوری میشین.
جر خوردم من اول خواستم حسابی از ریشه ید بگیرم رفتم سورسشو از این لینک دانلود کردم:
http://apache.mirrors.tds.net//httpd/httpd-2.2.17.tar.gzبعد خیر سرم بازش کردم و فایل کانفیگشو اجرا کردم . اول اینو بگم از بس شوش میزدم نفهمیدم داره کجا نصب میکنه هرچی هم prefix میزدم انگا داشتم با دیوار حرف میزدم.
خلاصه یه ۲ ۳ باری چندجای مختلف در اثر سوتی های زیاد آواچی رو نصب کردم بعدا فهمیدم چطوری میشه در مسیر دلخواه نصب کرد.
اه خسته شدم بس خزول گفتم آقا لپ مطلب اینه که من فایل کانفیگ رو که اجرا میکنم در مسیر :
/usr/local/apache2
در ۲ خط آخرش اررور میده که:
configure failed for xml/expat
configure failed for srclib/apr-util
بعد گفتم به جهنم make رو زدم و اونم در خط های پایانی اینارو داد:
make[3]: *** [xml/apr_xml.lo] Error 1
make[3]: Leaving directory `/usr/local/srclib/apr-util'
make[2]: *** [all-recursive] Error 1
make[2]: Leaving directory `/usr/local/srclib/apr-util'
make[1]: *** [all-recursive] Error 1
make[1]: Leaving directory `/usr/local/srclib'
make: *** [all-recursive] Error 1
بعد از این قضیه رفتم در synaptic اونجا دیدم apache داره ُ زدم اونم نصب کردم اما نفهمیدم بعدش کجا باید دننبالش بگردم و چه گلی بگیرم.
نهایت اهداف من اینه که آپاچی رو نصب کنم php رو هم بنصبم و دایرکت ادمین نصب کنم و از طریق لوکال هاست با اینا کار کنم.
هلپ می
راستی اینم ماله موقعی هست که male install میزنم :
root@mostafa-desktop:/usr/local/apache2# make install
Making install in srclib
make[1]: Entering directory `/usr/local/apache2/srclib'
Making install in apr
make[2]: Entering directory `/usr/local/apache2/srclib/apr'
make[3]: Entering directory `/usr/local/apache2/srclib/apr'
make[3]: Nothing to be done for `local-all'.
make[3]: Leaving directory `/usr/local/apache2/srclib/apr'
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr/build/mkdir.sh /usr/local/apache2/lib /usr/local/apache2/bin /usr/local/apache2/build \
/usr/local/apache2/lib/pkgconfig /usr/local/apache2/include
/usr/bin/install -c -m 644 /usr/local/apache2/srclib/apr/include/apr.h /usr/local/apache2/include
for f in /home/mostafa/Desktop/httpd-2.2.17/srclib/apr/include/apr_*.h; do \
/usr/bin/install -c -m 644 ${f} /usr/local/apache2/include; \
done
/bin/bash /usr/local/apache2/srclib/apr/libtool --mode=install /usr/bin/install -c -m 755 libapr-1.la /usr/local/apache2/lib
/usr/bin/install -c -m 755 .libs/libapr-1.so.0.4.2 /usr/local/apache2/lib/libapr-1.so.0.4.2
(cd /usr/local/apache2/lib && { ln -s -f libapr-1.so.0.4.2 libapr-1.so.0 || { rm -f libapr-1.so.0 && ln -s libapr-1.so.0.4.2 libapr-1.so.0; }; })
(cd /usr/local/apache2/lib && { ln -s -f libapr-1.so.0.4.2 libapr-1.so || { rm -f libapr-1.so && ln -s libapr-1.so.0.4.2 libapr-1.so; }; })
/usr/bin/install -c -m 755 .libs/libapr-1.lai /usr/local/apache2/lib/libapr-1.la
/usr/bin/install -c -m 755 .libs/libapr-1.a /usr/local/apache2/lib/libapr-1.a
chmod 644 /usr/local/apache2/lib/libapr-1.a
ranlib /usr/local/apache2/lib/libapr-1.a
libtool: install: warning: remember to run `libtool --finish /usr/local/apache2//lib'
/usr/bin/install -c -m 644 apr.exp /usr/local/apache2/lib/apr.exp
/usr/bin/install -c -m 644 apr.pc /usr/local/apache2/lib/pkgconfig/apr-1.pc
for f in libtool shlibtool; do \
if test -f ${f}; then /usr/bin/install -c -m 755 ${f} /usr/local/apache2/build; fi; \
done
/usr/bin/install -c -m 755 /home/mostafa/Desktop/httpd-2.2.17/srclib/apr/build/mkdir.sh /usr/local/apache2/build
for f in make_exports.awk make_var_export.awk; do \
/usr/bin/install -c -m 644 /home/mostafa/Desktop/httpd-2.2.17/srclib/apr/build/${f} /usr/local/apache2/build; \
done
/usr/bin/install -c -m 644 build/apr_rules.out /usr/local/apache2/build/apr_rules.mk
/usr/bin/install -c -m 755 apr-config.out /usr/local/apache2/bin/apr-1-config
make[2]: Leaving directory `/usr/local/apache2/srclib/apr'
Making install in apr-util
make[2]: Entering directory `/usr/local/apache2/srclib/apr-util'
/bin/bash /usr/local/apache2/srclib/apr/libtool --silent --mode=compile gcc -g -O2 -pthread -DHAVE_CONFIG_H -DLINUX=2 -D_REENTRANT -D_GNU_SOURCE -D_LARGEFILE64_SOURCE -I/usr/local/apache2/srclib/apr-util/include -I/usr/local/apache2/srclib/apr-util/include/private -I/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/include/private -I/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/include -I/usr/local/apache2/srclib/apr/include -I/home/mostafa/Desktop/httpd-2.2.17/srclib/apr/include -I/usr/local/apache2/srclib/apr-util/xml/expat/lib -o xml/apr_xml.lo -c /home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c && touch xml/apr_xml.lo
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:35:19: error: expat.h: No such file or directory
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:66: error: expected specifier-qualifier-list before ‘XML_Parser’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c: In function ‘cleanup_parser’:
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:344: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:345: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c: At top level:
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:364: error: expected ‘;’, ‘,’ or ‘)’ before ‘*’ token
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c: In function ‘apr_xml_parser_create’:
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:381: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:382: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:390: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:391: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:392: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:404: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:404: error: ‘default_handler’ undeclared (first use in this function)
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:404: error: (Each undeclared identifier is reported only once
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:404: error: for each function it appears in.)
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c: In function ‘do_parse’:
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:414: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:418: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:422: error: ‘apr_xml_parser’ has no member named ‘xp_err’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:422: error: ‘apr_xml_parser’ has no member named ‘xp’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c: In function ‘apr_xml_parser_geterror’:
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:480: error: ‘apr_xml_parser’ has no member named ‘xp_err’
/home/mostafa/Desktop/httpd-2.2.17/srclib/apr-util/xml/apr_xml.c:480: error: ‘apr_xml_parser’ has no member named ‘xp_err’
make[2]: *** [xml/apr_xml.lo] Error 1
make[2]: Leaving directory `/usr/local/apache2/srclib/apr-util'
make[1]: *** [install-recursive] Error 1
make[1]: Leaving directory `/usr/local/apache2/srclib'
make: *** [install-recursive] Error 1
root@mostafa-desktop:/usr/local/apache2# ^C
root@mostafa-desktop:/usr/local/apache2#