The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Special Forums > Web Programming, Web 2.0 and Mashups
.
google unix.com



Web Programming, Web 2.0 and Mashups Discuss Web Programming and Web Server Administration, including LAMP, Apache, MySQL, Flash, HTML, SEO, Mashups and other Web APIs and topics.

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
How to use Suexec with Apache2 ? kernings UNIX for Dummies Questions & Answers 1 03-10-2008 10:41 PM
install apache2 in bsd 6.2 tamayo BSD 2 12-04-2007 03:29 PM
apache2 ldap hassan1 SuSE 0 01-29-2006 01:02 PM

Closed Thread
English Japanese Spanish French German Portuguese Italian Dutch Swedish Russian Norwegian Hungarian Hebrew Danish
 
LinkBack Thread Tools Search this Thread Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #8 (permalink)  
Old 04-27-2009
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
It appears like it cannot find the apr/apr-utils header files. Please try to verify if the needed header packages have been installed.
  #9 (permalink)  
Old 04-28-2009
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,522
Mabye you could try to install apache2 on debian etch using:

Code:
#apt-get install apache2
Then, install PHP5 support for apache2 on debian etch using:

Code:
#apt-get install libapache2-mod-php5 php5-cli php5-common php5-cgi
  #10 (permalink)  
Old 04-28-2009
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 332
I installed all the above packages as mentioned.

I extracted fresh source. And i still get the same error !

Code:
/bin/sh /root/php-5.2.9/libtool --silent --preserve-dup-deps --mode=compile /root/php-5.2.9/meta_ccld  -DLINUX=22 -DEAPI -DTARGET="apache" -DHAVE_SET_DUMPABLE -DDB_DBM_HSEARCH=1 -DDEV_RANDOM=/dev/random -DUSE_HSREGEX -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/apache-1.3   -Isapi/apache2handler/ -I/root/php-5.2.9/sapi/apache2handler/ -DPHP_ATOM_INC -I/root/php-5.2.9/include -I/root/php-5.2.9/main -I/root/php-5.2.9 -I/usr/include/libxml2 -I/root/php-5.2.9/ext/date/lib -I/root/php-5.2.9/TSRM -I/root/php-5.2.9/Zend  -D_REENTRANT  -I/usr/include -g -O2 -pthread -DZTS  -prefer-non-pic -c /root/php-5.2.9/sapi/apache2handler/mod_php5.c -o sapi/apache2handler/mod_php5.lo
In file included from /root/php-5.2.9/sapi/apache2handler/mod_php5.c:26:
/root/php-5.2.9/sapi/apache2handler/php_apache.h:29: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'php5_module'
/root/php-5.2.9/sapi/apache2handler/php_apache.h:38: error: expected specifier-qualifier-list before 'apr_bucket_brigade'
/root/php-5.2.9/sapi/apache2handler/php_apache.h:51: error: expected ')' before '*' token
/root/php-5.2.9/sapi/apache2handler/php_apache.h:52: error: expected ')' before '*' token
/root/php-5.2.9/sapi/apache2handler/php_apache.h:56: error: expected ')' before '*' token
/root/php-5.2.9/sapi/apache2handler/mod_php5.c:28: error: expected '=', ',', ';', 'asm' or '__attribute__' before 'module'
make: *** [sapi/apache2handler/mod_php5.lo] Error 1
Is there any other way to install php-5.2.9 in Debian Etch ?
  #11 (permalink)  
Old 04-28-2009
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,522
Did you deinstall all prior versions before installing? It sounds like you might have a PATH conflict or similar problem.

Can you post your environmental variables?
  #12 (permalink)  
Old 04-29-2009
thegeek thegeek is offline
Registered User
  
 

Join Date: Apr 2009
Location: /usr/bin/vim
Posts: 332
1. I uninstalled, and installed the php related packages. But there is no improvement, the same error occurs again.

2. following is the environment variables..
Code:
BASH=/bin/bash
BASH_ARGC=()
BASH_ARGV=()
BASH_LINENO=()
BASH_SOURCE=()
BASH_VERSINFO=([0]="3" [1]="1" [2]="17" [3]="1" [4]="release" [5]="i486-pc-linux-gnu")
BASH_VERSION='3.1.17(1)-release'
COLUMNS=141
DIRSTACK=()
EDITOR=vim
EUID=0
FCEDIT=vim
GROUPS=()
HISTFILE=/root/.bash_history
HISTFILESIZE=500
HISTSIZE=500
HOME=/root
HOSTNAME=Debian-Server
HOSTTYPE=i486
IFS=$' \t\n'
LANG=en_IN
LINES=41
LOGNAME=root
LS_OPTIONS=--color=auto
MACHTYPE=i486-pc-linux-gnu
MAIL=/var/mail/root
MAILCHECK=60
OPTERR=1
OPTIND=1
OSTYPE=linux-gnu
PATH=/usr/bin/festival:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/bin/X11:/usr/lib/eclipse
PIPESTATUS=([0]="0" [1]="0")
PPID=429
PS1='\h:\w\$ '
PS2='> '
PS4='+ '
PWD=/root
SHELL=/bin/bash
SHELLOPTS=braceexpand:hashall:histexpand:interactive-comments:monitor:vi
SHLVL=1
SSH_CLIENT='192.168.6.56 49231 22'
SSH_CONNECTION='192.168.6.56 49231 192.168.1.155 22'
SSH_TTY=/dev/pts/1
TERM=xterm
UID=0
USER=root
  #13 (permalink)  
Old 04-29-2009
Neo's Avatar
Neo Neo is offline Forum Staff  
Administrator
  
 

Join Date: Sep 2000
Location: Asia Pacific
Posts: 6,522
If you install with apt-get you don't need to configure/make because you are installing the binaries.

Isn't that right?
  #14 (permalink)  
Old 04-29-2009
cbkihong cbkihong is offline Forum Advisor  
Advisor
  
 

Join Date: Sep 2002
Location: Hong Kong, China
Posts: 1,624
Quote:
Originally Posted by Neo View Post
If you install with apt-get you don't need to configure/make because you are installing the binaries.

Isn't that right?
He probably wants to install the latest version. Debian's version is a bit old, though I think not too dated as to be intolerable.

If you dare to use Debian unstable (like I do on my desktop), you will get PHP 5.2.9 instead of 5.2.6 (with Debian Stable - Lenny) or 5.2.0 (Debian Stable - Etch). Then you will not only have bleeding edge PHP, you will always have the very latest version of essentially each and every package on your system if you upgrade often enough.

Managing a Debian Unstable system is tedious, though. Be forewarned.
Sponsored Links
Closed Thread

Bookmarks

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -4. The time now is 08:01 PM.


Powered by: vBulletin, Copyright ©2000 - 2006, Jelsoft Enterprises Limited. Language translation by Google.
vBCredits v1.4 Copyright ©2007 - 2008, PixelFX Studios
The UNIX and Linux Forums Content Copyright ©1993-2009. All Rights Reserved.Ad Management by RedTyger

Content Relevant URLs by vBSEO 3.2.0