You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
indiaone edited this page Feb 14, 2014
·
1 revision
Building latest version from source on Sabayon / Gentoo Linux
I would like to work with the latest versions of development tools like wxWidgets,php etc. I prefer Gentoo linux and its derived Sabayon linux because it is developer friendly. Use this process if you would like to install from source the latest wxphp.
I have noticed that the phpize command on my latest sabayon gives error like this:
libtool: Version mismatch error. This is libtool 2.4.2, but the
libtool: definition of this LT_INIT comes from an older release.
libtool: You should recreate aclocal.m4 with macros from libtool 2.4.2
libtool: and run autoconf again.
make: *** [src/app.lo] Error 63
To solve that I have removed the distribution provided php and wxGTK version using this command
(It is actually better to download from the website so that it selects the fastest mirror)
Unzip and compile the wxwidgets source
unzip wxWidgets-3.0.0.zip
cd wxWidgets-3.0.0
./configure`
If there are no errors in configuration you can proceed to make
make
After successful compilation you can install using
make install
Now we will download latest php source from www.php.net
wget https://in1.php.net/get/php-5.5.9.tar.gz/from/this/mirror
tar -xvf php-5.5.9.tar.gz
cd php-5.5.9
./configure
make
make install
Now we can download and install wxphp source
wget https://jaist.dl.sourceforge.net/project/wxphp/wxphp/3.0.0.0/wxphp-3.0.0.0.tar.gz
tar -xvf wxphp-3.0.0.0.tar.gz
cd wxphp-3.0.0
./build.sh
You can proceed with the instructions. It asked me to run phpize command. After running that, I have run the ususal
./configure
make
make install
Now wxphp is installed.
In order to use it you can add the following lines to your php.ini file