[MacPorts] #42410: php5: php-config.1.gz already exists and does not belong to a registered port (was: php5 conflicts with php55)

MacPorts noreply at macports.org
Sun Feb 9 17:23:18 PST 2014


#42410: php5: php-config.1.gz already exists and does not belong to a registered
port
---------------------------+--------------------------
  Reporter:  veltenheyn@…  |      Owner:  ryandesign@…
      Type:  defect        |     Status:  new
  Priority:  Low           |  Milestone:
 Component:  ports         |    Version:  2.2.1
Resolution:                |   Keywords:
      Port:  php5          |
---------------------------+--------------------------
Changes (by ryandesign@…):

 * component:  base => ports
 * priority:  Not set => Low
 * owner:  macports-tickets@… => ryandesign@…
 * keywords:  php55 php5 =>
 * port:   => php5


Old description:

> I get following if i install php55 and then try to install php5 (to get
> pecl running as it is somehow not included in php55).
>
> Error: org.macports.activate for port php5 returned: Image error:
> /opt/local/share/man/man1/php-config.1.gz already exists and does not
> belong to a registered port.  Unable to activate port php5. Use 'port -f
> activate php5' to force the activation.
>
> When I do a 'sudo port contents php55 the file '/opt/local/share/man/man1
> /php-config.1.gz' is listed. So it should be registered, or not?
> Should I use 'port -f activate php5' or fix the problem another way?

New description:

 I get following if i install php55 and then try to install php5 (to get
 pecl running as it is somehow not included in php55).

 {{{
 Error: org.macports.activate for port php5 returned: Image error:
 /opt/local/share/man/man1/php-config.1.gz already exists and does not
 belong to a registered port.  Unable to activate port php5. Use 'port -f
 activate php5' to force the activation.
 }}}

 When I do a 'sudo port contents php55 the file '/opt/local/share/man/man1
 /php-config.1.gz' is listed. So it should be registered, or not?
 Should I use 'port -f activate php5' or fix the problem another way?

--

Comment:

 Why do you need to run pecl manually, and why do you think you need the
 php5 port to do so -- why is the php55 port insufficient for that? If
 there is a php module you need that does not have a port in MacPorts,
 please file a port request ticket so that we can add it to MacPorts.

 "port contents php55" should not list php-config.1.gz. It should list php-
 config55.1.gz. Please verify. php5 should not conflict with php55, and
 does not on my system.

 MacPorts says php-config.1.gz already exists and does not belong to a
 registered port. You're the only one who can explain why that might be so.
 You can force the activation of php5 if you like, but if you have rogue
 php5 files on your system already, who knows how many other rogue files
 you have.

 Note that php5 is the "old" MacPorts php world from years ago and is
 deprecated and will eventually be removed. php53, php54, php55, php56 is
 the "new" php world which you should be using instead.

-- 
Ticket URL: <https://trac.macports.org/ticket/42410#comment:1>
MacPorts <http://www.macports.org/>
Ports system for OS X


More information about the macports-tickets mailing list