Opened 12 years ago

Closed 12 years ago

Last modified 12 years ago

#31716 closed defect (invalid)

LIBXML2 - multiple versions on my Mac

Reported by: sexonthedex@… Owned by: macports-tickets@…
Priority: Normal Milestone:
Component: ports Version: 2.0.3
Keywords: Cc: ryandesign (Ryan Carsten Schmidt)
Port:

Description (last modified by ryandesign (Ryan Carsten Schmidt))

Hi

I have been using Macports to keep all my software up-to-date, but have recently had a problem where the version of libxml2 has apparently updated, but is actually showing two different versions on my Mac

I have started using a PHP framework call Symfony, which so far seems excellent, but there are certain things that require the version of libxml2 to be 2.6.21 or above.

I have tried several times through Macports to upgrade libxml2, but it tells me that the most recent version is installed.

I get the following when I check the version through Macports:

imac:~ barry$ port search libxml

libxml @1.8.17 (textproc)
XML parsing library

libxml2 @2.7.8 (textproc)
gnome xml library

However, when I use grep I get the following:

imac:/Users barry$ php -i | grep libxml
libxml Version => 2.6.16
libxml
libxml2 Version => 2.6.16

So there are obviously 2 versions of libxml2 sitting on my Mac, and the wrong one is being used. I have searched around forums, and think that the answer may lie in a Symlink, but I do not know what I am doing with this. (I need this spelling out hin simple instructions. lol)

I am using Mac OS 10.4.11 (which means I cannot install Howebrew, hence using Macports as the other alernative). I cannot upgrade my OS as my old IMac will not allow it, and I cannot afford a new one at this moment in time.

Can anybody help me so that I can get my Symfony2 project on the road?

Many thanks in advance

Barry J

Change History (4)

comment:1 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Cc: ryandesign@… added
Description: modified (diff)

It sounds like you're not using MacPorts php. What is the output of these commands:

port installed name:libxml name:php
which php

Remember to use WikiFormatting in your replies -- enclose things you paste from the terminal in {{{ and }}}.

comment:2 Changed 12 years ago by sexonthedex@…

thanks for getting back to me. This is the output:

imac:~ barry$ port installed name:libxml name:php
The following ports are currently installed:
  libxml @1.8.17_0 (active)
  libxml2 @2.7.8_0 (active)
imac:~ barry$ which php
/usr/bin/php

comment:3 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

Resolution: invalid
Status: newclosed

Great, so as suspected, you don't have MacPorts php installed. Install it and use it instead of the php that Apple provided.

sudo port install php5

Before you do that you may want to look at the available variants to see if you want any of them.

port variants php5

comment:4 Changed 12 years ago by ryandesign (Ryan Carsten Schmidt)

The macports-users mailing list is a more appropriate place to ask questions and get help. This issue tracker is for tracking bug reports and feature requests.

Note: See TracTickets for help on using tickets.