?
Solved

install xdebug centos

Posted on 2010-01-10
10
Medium Priority
?
2,497 Views
Last Modified: 2013-12-13
Hi,

I'm trying to install the xdebug. When I unpacked the tarball. I'm in the folder and the readme states to run phpize. But I receive this error:

[root@seokingdomheaven xdebug-2.1.0beta1.tgz_FILES]# /usr/local/bin/phpize
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module

I have phpize. I ran this:
[root@seokingdomheaven xdebug-2.1.0beta1.tgz_FILES]# find / -name 'phpize'
/home/vkimura/php-5.3.1/scripts/phpize
/usr/local/bin/phpize

How do I run phpize so I can ./configure xdebug?

thank you,
vkimura
0
Comment
Question by:Victor Kimura
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 6
  • 4
10 Comments
 
LVL 1

Expert Comment

by:djcybex
ID: 26277552
just write phpize and press enter in the direcotry where you've unpacked the tarball
it should work.
if it doesn't work ,then you will have to install php-devel package
0
 
LVL 1

Expert Comment

by:djcybex
ID: 26277558

I forgot to mention that you have to be signed as root
and if "phpize" command is not found you could also try
# /usr/local/bin/phpize
0
 

Author Comment

by:Victor Kimura
ID: 26281124
I tried these commands:
[root@seokingdomheaven xdebug-2.1.0beta1.tgz_FILES]# /usr/local/bin/phpize
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module

-----

[root@seokingdomheaven xdebug-2.1.0beta1.tgz_FILES]# cd /usr/local/bin/
[root@seokingdomheaven bin]# phpize
Cannot find config.m4.
Make sure that you run '/usr/local/bin/phpize' in the top level source directory of the module

Same result.

-----

This is what I get when I install php-devel with yum:
[root@seokingdomheaven bin]# yum install php-devel
Loaded plugins: fastestmirror
Repository remi is listed more than once in the configuration
Repository remi-test is listed more than once in the configuration
Determining fastest mirrors
 * epel: linux.mirrors.es.net
 * rpmforge: apt.sw.be
 * base: www.muug.mb.ca
 * updates: www.muug.mb.ca
 * addons: www.muug.mb.ca
 * extras: www.muug.mb.ca
epel                                                     | 3.4 kB     00:00    
f64be83f46d16ae060a4eb1589eb4e3b08a760ea-primary.sqlite. | 2.8 MB     00:03    
adobe-linux-i386                                         |  951 B     00:00    
rpmforge                                                 | 1.1 kB     00:00    
primary.xml.gz                                           | 3.5 MB     00:06    
rpmforge                                                       9749/9749
base                                                     | 2.1 kB     00:00    
updates                                                  | 1.9 kB     00:00    
primary.sqlite.bz2                                       | 444 kB     00:00    
addons                                                   |  951 B     00:00    
extras                                                   | 1.1 kB     00:00    
Excluding Packages from CentOS-5 - Base
Finished
Excluding Packages from CentOS-5 - Updates
Finished
Excluding Packages from CentOS-5 - Extras
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
There are unfinished transactions remaining. You mightconsider running yum-complete-transaction first to finish them.
--> Running transaction check
---> Package php-devel.x86_64 0:5.1.6-23.2.el5_3 set to be updated
--> Processing Dependency: php = 5.1.6-23.2.el5_3 for package: php-devel
--> Finished Dependency Resolution
php-devel-5.1.6-23.2.el5_3.x86_64 from base has depsolving problems
  --> Missing Dependency: php = 5.1.6-23.2.el5_3 is needed by package php-devel-5.1.6-23.2.el5_3.x86_64 (base)
Error: Missing Dependency: php = 5.1.6-23.2.el5_3 is needed by package php-devel-5.1.6-23.2.el5_3.x86_64 (base)
[root@seokingdomheaven bin]# yum-complete-transaction
-bash: yum-complete-transaction: command not found

------

I installed php by source and not by yum so do I need install phpize by source then?
0
VIDEO: THE CONCERTO CLOUD FOR HEALTHCARE

Modern healthcare requires a modern cloud. View this brief video to understand how the Concerto Cloud for Healthcare can help your organization.

 
LVL 1

Expert Comment

by:djcybex
ID: 26281206
Don't miox yum and source installation. If you installed it by source then phpize should be available for you.
Try:
#updatedb
#locate config.m4
0
 

Author Comment

by:Victor Kimura
ID: 26281485
Is the update db a command?

I ran the following:
[root@seokingdomheaven bin]# update db
-bash: update: command not found
[root@seokingdomheaven bin]# locate config.m4
/home/vkimura/httpd-2.2.14/modules/aaa/config.m4
/home/vkimura/httpd-2.2.14/modules/arch/win32/config.m4
/home/vkimura/httpd-2.2.14/modules/cache/config.m4
/home/vkimura/httpd-2.2.14/modules/database/config.m4
/home/vkimura/httpd-2.2.14/modules/debug/config.m4
/home/vkimura/httpd-2.2.14/modules/echo/config.m4
/home/vkimura/httpd-2.2.14/modules/experimental/config.m4
/home/vkimura/httpd-2.2.14/modules/filters/config.m4
/home/vkimura/httpd-2.2.14/modules/ldap/config.m4
/home/vkimura/httpd-2.2.14/modules/loggers/config.m4
/home/vkimura/httpd-2.2.14/modules/metadata/config.m4
/home/vkimura/httpd-2.2.14/modules/proxy/config.m4
/home/vkimura/httpd-2.2.14/modules/ssl/config.m4
/home/vkimura/httpd-2.2.14/modules/test/config.m4
/home/vkimura/httpd-2.2.14/os/config.m4
/home/vkimura/httpd-2.2.14/os/beos/config.m4
/home/vkimura/httpd-2.2.14/os/os2/config.m4
/home/vkimura/httpd-2.2.14/os/unix/config.m4
/home/vkimura/httpd-2.2.14/server/config.m4
/home/vkimura/httpd-2.2.14/server/mpm/config.m4
/home/vkimura/httpd-2.2.14/server/mpm/prefork/config.m4
/home/vkimura/httpd-2.2.14/support/config.m4
/home/vkimura/php-5.3.0/ext/bcmath/config.m4
/home/vkimura/php-5.3.0/ext/bz2/config.m4
/home/vkimura/php-5.3.0/ext/calendar/config.m4
/home/vkimura/php-5.3.0/ext/ctype/config.m4
/home/vkimura/php-5.3.0/ext/curl/config.m4
/home/vkimura/php-5.3.0/ext/dba/config.m4
/home/vkimura/php-5.3.0/ext/dom/config.m4
/home/vkimura/php-5.3.0/ext/enchant/config.m4
/home/vkimura/php-5.3.0/ext/exif/config.m4
/home/vkimura/php-5.3.0/ext/fileinfo/config.m4
/home/vkimura/php-5.3.0/ext/filter/config.m4
/home/vkimura/php-5.3.0/ext/ftp/config.m4
/home/vkimura/php-5.3.0/ext/gd/config.m4
/home/vkimura/php-5.3.0/ext/gettext/config.m4
/home/vkimura/php-5.3.0/ext/gmp/config.m4
/home/vkimura/php-5.3.0/ext/hash/config.m4
/home/vkimura/php-5.3.0/ext/iconv/config.m4
/home/vkimura/php-5.3.0/ext/imap/config.m4
/home/vkimura/php-5.3.0/ext/interbase/config.m4
/home/vkimura/php-5.3.0/ext/intl/config.m4
/home/vkimura/php-5.3.0/ext/json/config.m4
/home/vkimura/php-5.3.0/ext/ldap/config.m4
/home/vkimura/php-5.3.0/ext/mbstring/config.m4
/home/vkimura/php-5.3.0/ext/mcrypt/config.m4
/home/vkimura/php-5.3.0/ext/mssql/config.m4
/home/vkimura/php-5.3.0/ext/mysql/config.m4
/home/vkimura/php-5.3.0/ext/mysqli/config.m4
/home/vkimura/php-5.3.0/ext/oci8/config.m4
/home/vkimura/php-5.3.0/ext/odbc/config.m4
/home/vkimura/php-5.3.0/ext/pcntl/config.m4
/home/vkimura/php-5.3.0/ext/pdo/config.m4
/home/vkimura/php-5.3.0/ext/pdo_dblib/config.m4
/home/vkimura/php-5.3.0/ext/pdo_firebird/config.m4
/home/vkimura/php-5.3.0/ext/pdo_mysql/config.m4
/home/vkimura/php-5.3.0/ext/pdo_oci/config.m4
/home/vkimura/php-5.3.0/ext/pdo_odbc/config.m4
/home/vkimura/php-5.3.0/ext/pdo_pgsql/config.m4
/home/vkimura/php-5.3.0/ext/pdo_sqlite/config.m4
/home/vkimura/php-5.3.0/ext/pgsql/config.m4
/home/vkimura/php-5.3.0/ext/phar/config.m4
/home/vkimura/php-5.3.0/ext/posix/config.m4
/home/vkimura/php-5.3.0/ext/pspell/config.m4
/home/vkimura/php-5.3.0/ext/readline/config.m4
/home/vkimura/php-5.3.0/ext/recode/config.m4
/home/vkimura/php-5.3.0/ext/reflection/config.m4
/home/vkimura/php-5.3.0/ext/session/config.m4
/home/vkimura/php-5.3.0/ext/shmop/config.m4
/home/vkimura/php-5.3.0/ext/simplexml/config.m4
/home/vkimura/php-5.3.0/ext/snmp/config.m4
/home/vkimura/php-5.3.0/ext/soap/config.m4
/home/vkimura/php-5.3.0/ext/sockets/config.m4
/home/vkimura/php-5.3.0/ext/spl/config.m4
/home/vkimura/php-5.3.0/ext/sqlite/config.m4
/home/vkimura/php-5.3.0/ext/standard/config.m4
/home/vkimura/php-5.3.0/ext/sybase_ct/config.m4
/home/vkimura/php-5.3.0/ext/sysvmsg/config.m4
/home/vkimura/php-5.3.0/ext/sysvsem/config.m4
/home/vkimura/php-5.3.0/ext/sysvshm/config.m4
/home/vkimura/php-5.3.0/ext/tidy/config.m4
/home/vkimura/php-5.3.0/ext/tokenizer/config.m4
/home/vkimura/php-5.3.0/ext/wddx/config.m4
/home/vkimura/php-5.3.0/ext/xml/config.m4
/home/vkimura/php-5.3.0/ext/xmlreader/config.m4
/home/vkimura/php-5.3.0/ext/xmlrpc/config.m4
/home/vkimura/php-5.3.0/ext/xmlwriter/config.m4
/home/vkimura/php-5.3.0/ext/xsl/config.m4
/home/vkimura/php-5.3.0/ext/zip/config.m4
/home/vkimura/php-5.3.0/sapi/aolserver/config.m4
/home/vkimura/php-5.3.0/sapi/apache/config.m4
/home/vkimura/php-5.3.0/sapi/apache2filter/config.m4
/home/vkimura/php-5.3.0/sapi/apache2handler/config.m4
/home/vkimura/php-5.3.0/sapi/apache_hooks/config.m4
/home/vkimura/php-5.3.0/sapi/caudium/config.m4
/home/vkimura/php-5.3.0/sapi/cli/config.m4
/home/vkimura/php-5.3.0/sapi/continuity/config.m4
/home/vkimura/php-5.3.0/sapi/embed/config.m4
/home/vkimura/php-5.3.0/sapi/isapi/config.m4
/home/vkimura/php-5.3.0/sapi/litespeed/config.m4
/home/vkimura/php-5.3.0/sapi/milter/config.m4
/home/vkimura/php-5.3.0/sapi/nsapi/config.m4
/home/vkimura/php-5.3.0/sapi/phttpd/config.m4
/home/vkimura/php-5.3.0/sapi/pi3web/config.m4
/home/vkimura/php-5.3.0/sapi/roxen/config.m4
/home/vkimura/php-5.3.0/sapi/thttpd/config.m4
/home/vkimura/php-5.3.0/sapi/tux/config.m4
/home/vkimura/php-5.3.0/sapi/webjames/config.m4
/home/vkimura/php-5.3.1/ext/bcmath/config.m4
/home/vkimura/php-5.3.1/ext/bz2/config.m4
/home/vkimura/php-5.3.1/ext/calendar/config.m4
/home/vkimura/php-5.3.1/ext/ctype/config.m4
/home/vkimura/php-5.3.1/ext/curl/config.m4
/home/vkimura/php-5.3.1/ext/dba/config.m4
/home/vkimura/php-5.3.1/ext/dom/config.m4
/home/vkimura/php-5.3.1/ext/enchant/config.m4
/home/vkimura/php-5.3.1/ext/exif/config.m4
/home/vkimura/php-5.3.1/ext/fileinfo/config.m4
/home/vkimura/php-5.3.1/ext/filter/config.m4
/home/vkimura/php-5.3.1/ext/ftp/config.m4
/home/vkimura/php-5.3.1/ext/gd/config.m4
/home/vkimura/php-5.3.1/ext/gettext/config.m4
/home/vkimura/php-5.3.1/ext/gmp/config.m4
/home/vkimura/php-5.3.1/ext/hash/config.m4
/home/vkimura/php-5.3.1/ext/iconv/config.m4
/home/vkimura/php-5.3.1/ext/imap/config.m4
/home/vkimura/php-5.3.1/ext/interbase/config.m4
/home/vkimura/php-5.3.1/ext/intl/config.m4
/home/vkimura/php-5.3.1/ext/json/config.m4
/home/vkimura/php-5.3.1/ext/ldap/config.m4
/home/vkimura/php-5.3.1/ext/mbstring/config.m4
/home/vkimura/php-5.3.1/ext/mcrypt/config.m4
/home/vkimura/php-5.3.1/ext/mssql/config.m4
/home/vkimura/php-5.3.1/ext/mysql/config.m4
/home/vkimura/php-5.3.1/ext/mysqli/config.m4
/home/vkimura/php-5.3.1/ext/oci8/config.m4
/home/vkimura/php-5.3.1/ext/odbc/config.m4
/home/vkimura/php-5.3.1/ext/pcntl/config.m4
/home/vkimura/php-5.3.1/ext/pdo/config.m4
/home/vkimura/php-5.3.1/ext/pdo_dblib/config.m4
/home/vkimura/php-5.3.1/ext/pdo_firebird/config.m4
/home/vkimura/php-5.3.1/ext/pdo_mysql/config.m4
/home/vkimura/php-5.3.1/ext/pdo_oci/config.m4
/home/vkimura/php-5.3.1/ext/pdo_odbc/config.m4
/home/vkimura/php-5.3.1/ext/pdo_pgsql/config.m4
/home/vkimura/php-5.3.1/ext/pdo_sqlite/config.m4
/home/vkimura/php-5.3.1/ext/pgsql/config.m4
/home/vkimura/php-5.3.1/ext/phar/config.m4
/home/vkimura/php-5.3.1/ext/posix/config.m4
/home/vkimura/php-5.3.1/ext/pspell/config.m4
/home/vkimura/php-5.3.1/ext/readline/config.m4
/home/vkimura/php-5.3.1/ext/recode/config.m4
/home/vkimura/php-5.3.1/ext/reflection/config.m4
/home/vkimura/php-5.3.1/ext/session/config.m4
/home/vkimura/php-5.3.1/ext/shmop/config.m4
/home/vkimura/php-5.3.1/ext/simplexml/config.m4
/home/vkimura/php-5.3.1/ext/snmp/config.m4
/home/vkimura/php-5.3.1/ext/soap/config.m4
/home/vkimura/php-5.3.1/ext/sockets/config.m4
/home/vkimura/php-5.3.1/ext/spl/config.m4
/home/vkimura/php-5.3.1/ext/sqlite/config.m4
/home/vkimura/php-5.3.1/ext/standard/config.m4
/home/vkimura/php-5.3.1/ext/sybase_ct/config.m4
/home/vkimura/php-5.3.1/ext/sysvmsg/config.m4
/home/vkimura/php-5.3.1/ext/sysvsem/config.m4
/home/vkimura/php-5.3.1/ext/sysvshm/config.m4
/home/vkimura/php-5.3.1/ext/tidy/config.m4
/home/vkimura/php-5.3.1/ext/tokenizer/config.m4
/home/vkimura/php-5.3.1/ext/wddx/config.m4
/home/vkimura/php-5.3.1/ext/xml/config.m4
/home/vkimura/php-5.3.1/ext/xmlreader/config.m4
/home/vkimura/php-5.3.1/ext/xmlrpc/config.m4
/home/vkimura/php-5.3.1/ext/xmlwriter/config.m4
/home/vkimura/php-5.3.1/ext/xsl/config.m4
/home/vkimura/php-5.3.1/ext/zip/config.m4
/home/vkimura/php-5.3.1/sapi/aolserver/config.m4
/home/vkimura/php-5.3.1/sapi/apache/config.m4
/home/vkimura/php-5.3.1/sapi/apache2filter/config.m4
/home/vkimura/php-5.3.1/sapi/apache2handler/config.m4
/home/vkimura/php-5.3.1/sapi/apache_hooks/config.m4
/home/vkimura/php-5.3.1/sapi/caudium/config.m4
/home/vkimura/php-5.3.1/sapi/cli/config.m4
/home/vkimura/php-5.3.1/sapi/continuity/config.m4
/home/vkimura/php-5.3.1/sapi/embed/config.m4
/home/vkimura/php-5.3.1/sapi/isapi/config.m4
/home/vkimura/php-5.3.1/sapi/litespeed/config.m4
/home/vkimura/php-5.3.1/sapi/milter/config.m4
/home/vkimura/php-5.3.1/sapi/nsapi/config.m4
/home/vkimura/php-5.3.1/sapi/phttpd/config.m4
/home/vkimura/php-5.3.1/sapi/pi3web/config.m4
/home/vkimura/php-5.3.1/sapi/roxen/config.m4
/home/vkimura/php-5.3.1/sapi/thttpd/config.m4
/home/vkimura/php-5.3.1/sapi/tux/config.m4
/home/vkimura/php-5.3.1/sapi/webjames/config.m4
/home/vkimura/recode-3.6/m4/atconfig.m4

---

Where is the config.m4 supposed to be? What is it for? It appears in the unpacked httpd, php 5.3 and recode sources.
0
 
LVL 1

Accepted Solution

by:
djcybex earned 2000 total points
ID: 26281555
updatedb is written together (not "update db" as you wrote it). It is used to update "locate" database.
check whether you have config.m4 file in your xdebug source directory
0
 

Author Comment

by:Victor Kimura
ID: 26281691
Okay, the updatedb command ran without errors.

The config.m4 file in the xdebug source directory. But it seems like I need to run phpize before I compile the xdebug. The xdebug readme states:
1. Unpack the tarball: tar -xzf xdebug-2.1.x.tgz.  Note that you do
not need to unpack the tarball inside the PHP source code tree.
Xdebug is compiled separately, all by itself, as stated above.

2. cd xdebug-2.1.x

3. Run phpize: phpize
   (or /path/to/phpize if phpize is not in your path).

4. ./configure --enable-xdebug (or: ../configure --enable-xdebug
   --with-php-config=/path/to/php-config if php-config is not in your
   path)

5. Run: make

6. cp modules/xdebug.so /to/wherever/you/want/it

7. add the following line to php.ini:
   zend_extension="/wherever/you/put/it/xdebug.so"

8. Restart your webserver.
0
 
LVL 1

Expert Comment

by:djcybex
ID: 26282205
yes of course you have to run phpize before ./configure and make
did you follow these steps?
0
 

Author Comment

by:Victor Kimura
ID: 26290046
I think it was that updatedb that resolved it. Thank you.
0
 
LVL 1

Expert Comment

by:djcybex
ID: 26290508
hmmm updatedb does nothing more but rebuilds the database structure for locate command. That means if you've just installed something new (eg phpmyadmin) and do "locate phpmyadmin" then locate won't find it until you do "updatedb".
I think you've mistyped something in the first step but well i am glad it works now :)

Thank you for the points!
0

Featured Post

7 Extremely Useful Linux Commands for Beginners

Just getting started with Linux? Here's a quick start guide that has 7 commands that we believe will come in handy.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Nothing in an HTTP request can be trusted, including HTTP headers and form data.  A form token is a tool that can be used to guard against request forgeries (CSRF).  This article shows an improved approach to form tokens, making it more difficult to…
This article discusses how to implement server side field validation and display customized error messages to the client.
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
Suggested Courses

770 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question