At the very least you should probably post this in the
programming/scripting forum. It may also be advisable to take this up
with the PHP folks directly with a bit more data about where in the
compilation process things fail. I’d start with the #php chnanel on IRC
(irc.freenoe.net). Answers may be available somewhere on this forum, but
to me this is probably something the PHP folks will have seen more often.
We hope you will fid you at home here. There is one thing I want to “teach” you and that is the usage of CODE tags. That is not easy to find, that is why we have to explain to every “newcomer” here.
Whenever you want to post computer text here in a post (and we like that, because what the computer “says” is often more telling then what people say), please copy/paste that between CODE tags. You get those tags by clicking on the # button in the toolbar of the post editor.
And please when you post output of a command, then make the copy sweep a bit wider: it should include the prompt, the command, the output and the next prompt.
The usual question first: why compile this yourself? If the reason is other than “because I want to”, don’t. openSUSE has it’s Buildservice where thousands of packages are built and being published in repositories. In your case PHP 5.4.15 is available from the official Devel/Languages/PHP repo. If you don’t make manual changes in compiling PHP, doing so would in the best case lead to an identical install compared to the one from the repos.
Start Yast - Software repositories - Add - Repositories maintained by the community, check the PHP repo, trust the key when prompted for.
Next start the Softwaremanager, go View - Repositories, tick the PHP repo, and click the “link” on the top right that says “Switch system packages to …”
Restart apache2 or reboot and you’re running PHP 5.4.15
Some addition: as you can see PHP would be installed in /usr/local, is expecting apache in /usr/local . On openSUSE these two aren’t in /usr/local, but in /usr/lib64 or /usr/lib , depending on 64bit/32bit install.
Thanks for the advices, but I compile evetything from source, except mariadb, because it’s a requeriment from my Work. It’s a weird thing becuase I can compile this on Debian, Fedora, Red Hat Linux Enterprise, Oracle Linux and CentOS.
Well, have you ever tried to compile anything before?
Maybe you should start with something smaller than PHP first. Maybe try to compile a helloworld program first to check that your compiler works.
And regarding your original error message: (“checking size of char… configure: error: cannot compute sizeof (char)”)
you can see the reason for the failure in the file config.log.