Skip to content

Instantly share code, notes, and snippets.

@phpdave
Last active September 17, 2016 01:17
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpdave/4953884fb12231d84ace469825295896 to your computer and use it in GitHub Desktop.
Save phpdave/4953884fb12231d84ace469825295896 to your computer and use it in GitHub Desktop.
Browse Source: https://github.com/derickr/xdebug, Install instructions: https://xdebug.org/docs/all
#1 Get source
git clone git://github.com/xdebug/xdebug.git
#change to xdebug directory
cd xdebug
#2 setup environment variables for configure and make
export IBM_DB_HOME=/usr
export PHP_HOME=/usr/local/phpdave7
export PASE_TOOLS_HOME=/QOpenSys/usr
export AIX_TOOLS_HOME=/usr/local
export PATH=$PATH:$PHP_HOME/bin:$PASE_TOOLS_HOME/bin:$AIX_TOOLS_HOME/bin
export LIBPATH=$PHP_HOME/lib:$PASE_TOOLS_HOME/lib:$AIX_TOOLS_HOME/lib
export CC=gcc
export CFLAGS="-DPASE -I=.:$PHP_HOME/php/include"
export CCHOST=powerpc-ibm-aix6.1.0.0
#3 Compile
phpize && ./configure --build=$CCHOST --host=$CCHOST --target=$CCHOST --cache-file=../config.cache && gmake && gmake test && gmake install
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment