Results 1 to 7 of 7

Thread: LAMP: PHP5 source installation onto openSUSE 12.2

  1. #1

    Wink 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.

    Thanks in Advanced

  2. #2
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: LAMP: PHP5 source installation onto openSUSE 12.2

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

  3. #3
    Join Date
    Jun 2008
    Location
    Netherlands
    Posts
    24,881

    Default Re: LAMP: PHP5 source installation onto openSUSE 12.2

    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.
    Henk van Velden

  4. #4
    Join Date
    Jun 2008
    Location
    Groningen, Netherlands
    Posts
    19,662
    Blog Entries
    14

    Default Re: LAMP: PHP5 source installation onto openSUSE 12.2

    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.
    ° Appreciate my reply? Click the star and let me know why.

    ° Perfection is not gonna happen. No way.

    https://en.opensuse.org/openSUSE:Board#Members
    http://en.opensuse.org/User:Knurpht
    http://nl.opensuse.org/Gebruiker:Knurpht

  5. #5

    Default AW: LAMP: PHP5 source installation onto openSUSE 12.2

    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 .. . . :-)

  6. #6
    Join Date
    Aug 2008
    Location
    Seattle, WA
    Posts
    1,376

    Default Re: AW: LAMP: PHP5 source installation onto openSUSE 12.2

    Quote Originally Posted by Attila_Ladanyi View Post
    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.
    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.

  7. #7

    Default AW: LAMP: PHP5 source installation onto openSUSE 12.2

    Hello,

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


Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •