NuSphere Forums Forum Index
NuSphere Forums
Reply to topic
Problems installing dbg-2.11 on SUSE 9.3 *solved*


Joined: 14 Jul 2005
Posts: 4
Reply with quote
Hello guys,

i'm getting mad with my SUSE 9.3 (x86_64 architecture) while installing dbg... O_o

everything I need for developing is installed and works properly! apache2, php, pearl, mysql, and so on. but the debugger doesn't want to start working!!! my phpinfo() doesn't show the debugger module. i followed exactly the installation instructions, the dbg module seems to get loaded (no error msg in apache error log) but I couldnt figure out WHY it is not found by phpinfo()...

any suggestions?? any help is appreciated!

thx in advance!
View user's profileFind all posts by ArciSend private message


Joined: 14 Jul 2005
Posts: 8
Location: Chicago, IL
Reply with quote
You have to build the module from source. Make sure you have the php*-devel package installed.

when you run deferphpize, make sure you set the "phpize" env variable to /usr/bin/phpize (export phpize=/usr/bin/phpize).


Although, I'm not really sure this even works because I have it built and installed an debugging still doesn't work.
View user's profileFind all posts by epchrisSend private messageAIM AddressMSN Messenger


Joined: 14 Jul 2005
Posts: 4
Reply with quote
Ok, now I've tried to build the dbg module from source and even that does NOT work... its despairing Confused

i get following errors after running ./deferphpize:
Quote:
Arci:~/dbg-2.11.32 # ./deferphpize
/usr/local/bin/phpize: line 55: aclocal: command not found
./deferphpize: line 22: aclocal: command not found
left default
./deferphpize: line 54: ./configure: No such file or directory
make: *** No targets specified and no makefile found. Stop.
Arci:~/dbg-2.11.32 #


any other suggestions?? btw, ther's no configure script in the directory! that seems to be the problem, but I'm not yet very used to Linux stuff and dont know exactly how to fix that...

following files are in the directory after ./deferphpize:
Code:
Arci:~/dbg-2.11.32 # ls -l
total 254
drwxrwxr-x   3  500  500   808 Jul 15 15:55 .
drwx------  24 root root  1296 Jul 15 15:54 ..
-rw-------   1  500  500    34 Jun 11  2003 AUTHORS
-rw-r--r--   1  500  500  3023 Jan 31 00:37 COPYING
-rw-------   1  500  500  1353 Sep  7  2004 INSTALL
-rwxr-xr-x   1 root root  3137 Jul 15 15:55 Makefile.global
-rw-------   1  500  500   186 Jun 11  2003 Makefile.in
-rwxr-xr-x   1 root root 47099 Jul 15 15:55 acinclude.m4
drwxr-xr-x   2 root root   144 Jul 15 15:55 build
-rw-------   1  500  500  1284 Jun 11  2003 config.m4
-rwxr-xr-x   1 root root  2241 Jul 15 15:55 configure.in
-rw-r--r--   1  500  500 32489 Jan 12  2005 dbg.c
-rw-------   1  500  500  7782 Jan 12  2005 dbg.dsp
-rw-r--r--   1  500  500 11074 Jan 12  2005 dbg_bp.c
-rw-r--r--   1  500  500  1508 Jan 12  2005 dbg_bp.h
-rw-r--r--   1  500  500 35687 Jan 12  2005 dbg_cmd.c
-rw-r--r--   1  500  500  2408 Jan 12  2005 dbg_cmd.h
-rw-r--r--   1  500  500 12652 Jan 12  2005 dbg_net.c
-rw-r--r--   1  500  500 13650 Jan 29 23:32 dbg_net.h
-rw-r--r--   1  500  500 11115 Jan 12  2005 dbg_prof.c
-rw-r--r--   1  500  500  1910 Jan 12  2005 dbg_prof.h
-rw-r--r--   1  500  500  8059 Jan 12  2005 dbg_ser.c
-rw-r--r--   1  500  500  1206 Jan 12  2005 dbg_ser.h
-rwx--x--x   1  500  500  1084 Sep  6  2004 deferphpize
-rw-r--r--   1 root root     0 Jul 15 15:55 install-sh
-rw-r--r--   1 root root     0 Jul 15 15:55 missing
-rw-r--r--   1 root root     0 Jul 15 15:55 mkinstalldirs
-rw-r--r--   1  500  500 12337 Jan 12  2005 php_dbg.h
Arci:~/dbg-2.11.32 #
View user's profileFind all posts by ArciSend private message


Joined: 14 Jul 2005
Posts: 8
Location: Chicago, IL
Reply with quote
You'll have to make sure the at least the following packages are installed:
automake
autoconf
make
gcc

If you get other errors about libraries, you can usually install the *-devel package for that library to get the needed files.
View user's profileFind all posts by epchrisSend private messageAIM AddressMSN Messenger
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
and libtool too.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Jul 2005
Posts: 4
Reply with quote
first of all thank you for your help! First problem solved, it was the missing packages... Wink

now i though get errors from deferphpize:

Quote:
appending configuration tag "CXX" to libtool
appending configuration tag "F77" to libtool
configure: creating ./config.status
config.status: creating config.h
/bin/sh /root/dbg-2.11.32/libtool --mode=compile gcc -I. -I/root/dbg-2.11.32 -D
PHP_ATOM_INC -I/root/dbg-2.11.32/include -I/root/dbg-2.11.32/main -I/root/dbg-2.
11.32 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/
include/php/TSRM -DHAVE_CONFIG_H -DHAVE_CONFIG_H -DHAVE_CONFIG_H -prefer-pic - c /root/dbg-2.11.32/dbg.c -o dbg.lo
mkdir .libs
gcc -I. -I/root/dbg-2.11.32 -DPHP_ATOM_INC -I/root/dbg-2.11.32/include -I/root/ dbg-2.11.32/main -I/root/dbg-2.11.32 -I/usr/include/php -I/usr/include/php/main -I/usr/include/php/Zend -I/usr/include/php/TSRM -DHAVE_CONFIG_H -DHAVE_CONFIG_H -DHAVE_CONFIG_H -c /root/dbg-2.11.32/dbg.c -fPIC -DPIC -o .libs/dbg.o
In file included from /root/dbg-2.11.32/dbg.c:21:
/usr/include/php/main/php_network.h:78:25: openssl/ssl.h: No such file or direct ory
In file included from /root/dbg-2.11.32/dbg.c:21:
/usr/include/php/main/php_network.h:129: error: syntax error before "SSL"
/usr/include/php/main/php_network.h:129: warning: no semicolon at end of struct or union
/usr/include/php/main/php_network.h:132: error: syntax error before '}' token
/usr/include/php/main/php_network.h:162: error: syntax error before "SSL_METHOD"
/root/dbg-2.11.32/dbg.c: In function `dbg_startup':
/root/dbg-2.11.32/dbg.c:518: warning: cast from pointer to integer of different size
/root/dbg-2.11.32/dbg.c: In function `dbg_shutdown':
/root/dbg-2.11.32/dbg.c:537: warning: cast from pointer to integer of different size
make: *** [dbg.lo] Error 1
Arci:~/dbg-2.11.32


before it there are several "checking ..." outputs like
Quote:
Arci:~/dbg-2.11.32 # ./deferphpize
Configuring for:
PHP Api Version: 20020918
Zend Module Api No: 20020429
Zend Extension Api No: 20021010
left default
checking build system type... x86_64-suse-linux
checking host system type... x86_64-suse-linux
checking for gcc... gcc
checking for C compiler default output file name... a.out
checking whether the C compiler works... yes
View user's profileFind all posts by ArciSend private message
Site Admin

Joined: 13 Jul 2003
Posts: 8344
Reply with quote
Quote:
/usr/include/php/main/php_network.h:78:25: openssl/ssl.h: No such file or directory

and this error caused all the followings:
Quote:
/usr/include/php/main/php_network.h:129: error: syntax error before "SSL


you need openssl installed.
View user's profileFind all posts by dmitriSend private messageVisit poster's website


Joined: 14 Jul 2005
Posts: 4
Reply with quote
After installing openssl-devel package the build was successful. The dbg module seems to get properly loaded now, shows up in phpinfo()

THX A LOT for your immediate help!!! Smile

And finally a big praise for developing dbg! Thx for that and keep up the good work! Wink
View user's profileFind all posts by ArciSend private message
Problems installing dbg-2.11 on SUSE 9.3 *solved*
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
All times are GMT - 5 Hours  
Page 1 of 1  

  
  
 Reply to topic