LAMP: PHP5 source installation onto openSUSE 12.2

Hiya all,

I intend to install PHP5 onto openSUSE 12.2. Apache 2.2 and MySQL are already installed. Aspx2 is installed.

$ ./configure --with-mysql=/usr/include/mysql

But I got following error message::’(

checking for MySQL support… yes
checking for specified location of the MySQL UNIX socket… no
configure: error: Cannot find MySQL header files under /usr/include/mysql.
Note that the MySQL client library is not bundled anymore!

This directory consist of header files, like mysql.h. >:(

What shall I do?

The following MySQl pacjages are installed:

laptop-ladanyi:/home/attila/Letöltések/php-5.4.16 # rpm -qa | grep mysql
libreoffice-base-drivers-mysql-3.5.4.13-1.4.5.i586
mysql-workbench-5.2.37-4.1.2.i586
libmysqld18-5.5.28-1.4.1.i586
mysql-community-server-5.5.28-1.4.1.i586
php5-mysql-5.3.15-1.12.1.i586
libmysqlclient_r18-5.5.28-1.4.1.i586
mysql-community-server-client-5.5.28-1.4.1.i586
libmysqld-devel-5.5.28-1.4.1.i586
libmysqlclient18-5.5.28-1.4.1.i586
libqt4-sql-mysql-4.8.1-2.16.1.i586
mysql-community-server-errormessages-5.5.28-1.4.1.i586
libmysqlclient-devel-5.5.28-1.4.1.i586
laptop-ladanyi:/home/attila/Letöltések/php-5.4.16 #:\

I appreciate any question relating this method.rotfl!

Thanks in Advanced

Why are you installing php from source? You’ll find it in the main repository, and there are later versions on the Build Service.

You seem to be rather new here. Please use CODE tags around any computer text you post here. You get them by clicking on the # button in the tool bar of the post editor.

To complete the install of what I assume shoud be a LAMP server:

  • Yast - Software - Softwaremanager - View - Patterns
  • Click the checkbox for the LAMP server pattern, it will autoselect all necessary PHP stuff
  • Accept, let the installer run.
  • Restart apache.
  • Done.

Hello all,
thanks for your fast reply. I have already at that day solved this problem alone.
chief_sealth: because of I read it in Book “Teach Yourself PHP5 in 24 Hours”, that one shall install it from source in order to access MySQL databases.
For the first time I used Apache 1.3 on SUSE 9.1. This had functioned, but I could not access MySQL. In order to access it I have to install it from source code according to this book. But I use already openSUSE 12.2 with Apache 2.2.
In this way it works:
To complete the install of what I assume shoud be a LAMP server:

  • Yast - Software - Softwaremanager - View - Patterns
  • Click the checkbox for the LAMP server pattern, it will autoselect all necessary PHP stuff
  • Accept, let the installer run.
  • Restart apache.
  • Done.

On my SUSE 12.2 I have installed PHP5 from source code. It was functioned, but I could not STILL access MySQL. I had a lot of problem, I solved them. Than I instaled from Yast and I can now access MySQL. I don$t know, could one access MySQL from PHP5, if one would only install PHP5 as described above, independently, is it from source code or from installation DVD installed.
Thanks yor your help, but i already solved by me. If you have wuestion, I could help you now … . . :slight_smile:

Not necessary. The LAMP pattern will have everything you need to get started with a LAMP server, including PHP and MySQL. I suspect the author chooses to do it from source as this will work on any platform. I’m glad it’s wotked for you, though.

Hello,

yes, yes, thanks for your help. Hopefully it does work.
I can acces now MySQL and query tables. That is fine! rotfl!

:good: