Closed Thread
Results 1 to 6 of 6

Thread: PHP Compile Error

  1. #1
    Hektor is offline Programmer
    Join Date
    Jan 2007
    Posts
    126
    Rep Power
    0

    PHP Compile Error

    When I try to compile PHP I get this error:

    configure: error: xml2-config not found. Please check your libxml2 installation.

    I then do apt-get install libxml2 (which works) and still get the error. Anyone know what I need to install? There is no libxml2-devel package (at least it does not find one).

  2. CODECALL Circuit advertisement
    Join Date
    Always
    Posts
    Many

     
  3. #2
    Tor
    Tor is offline Programming Expert
    Join Date
    Oct 2007
    Posts
    488
    Rep Power
    0
    Try:

    Code:
    # apt-get install libxml2-dev
    It should find that, if not you may need to update your repos.

  4. #3
    tecktalk is offline Programmer
    Join Date
    May 2008
    Posts
    179
    Rep Power
    0
    Yes this would work surely..
    Lyf come without guarantees, except that smiling will brighten ur face, laughing will enhance ur eyes, and falling in luv will change ur lyf

  5. #4
    Jordan Guest
    You need the development packages as Tor suggests. Install that and PHP should work.

  6. #5
    Join Date
    Jul 2006
    Location
    Amherst, New York, United States
    Posts
    6,277
    Blog Entries
    26
    Rep Power
    20
    I just had the same problem, and this solution worked for me. However, since I was compiling php with mysql, I also kept getting this error:
    Code:
    configure: error: Cannot find MySQL header files under yes.
    Note that the MySQL client library is not bundled anymore!
    To fix that I simply did a
    Code:
    sudo apt-get install libmysqlclient-dev
    and it worked fine

  7. #6
    Hektor is offline Programmer
    Join Date
    Jan 2007
    Posts
    126
    Rep Power
    0
    Thanks guys! That worked fine.

Closed Thread

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Compile error help
    By breimer273 in forum C and C++
    Replies: 1
    Last Post: 04-02-2011, 04:55 AM
  2. Weird Compile Error (C)
    By breimer273 in forum C and C++
    Replies: 3
    Last Post: 03-15-2011, 05:45 AM
  3. Getting a compile error in dev
    By hbk in forum C and C++
    Replies: 1
    Last Post: 03-18-2010, 08:17 AM
  4. compile error plz help
    By mmo-dev in forum C and C++
    Replies: 29
    Last Post: 02-14-2010, 08:42 AM
  5. Don't really understand the compile error, help?
    By MichaelNQ in forum C and C++
    Replies: 2
    Last Post: 09-16-2009, 07:26 PM

Tags for this Thread

Bookmarks

Posting Permissions

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