[MacPorts] #18734: php5 install causes: configure: error: iconv support requested, but not found

MacPorts noreply at macports.org
Tue Mar 3 12:53:38 PST 2009


#18734: php5 install causes: configure: error: iconv support requested, but not
found
-----------------------------------+----------------------------------------
 Reporter:  jsafire@…              |       Owner:  ryandesign@…           
     Type:  defect                 |      Status:  new                    
 Priority:  Normal                 |   Milestone:  Port Bugs              
Component:  ports                  |     Version:  1.7.0                  
 Keywords:  php5 iconv 1.7.0       |        Port:  php5                   
-----------------------------------+----------------------------------------

Comment(by jsafire@…):

 I am not sure of the protocol to be used in replying here, so I am
 assuming this is the correct method.
 Anyway, thanks for the expiditious reply.

 The first command that failed was: sudo port install php5
 The last few lines of terminal output were:
 {{{
         checking iconv.h presence... yes
         checking for iconv.h... yes
           setting LIBS to "-liconv"
           nulling LIBS
         configure: error: iconv support requested, but not found

         Error: The following dependencies failed to build: apr-util pcre
         Error: Status 1 encountered during processing.
 }}}
 I reran the same command immediately and got the same identical result.
 I then ran: sudo port install apache2
 which produced the same output error.

 After receiving your response, I ran the clean operation: sudo port clean
 apr-util pcre
 and then ran: sudo port -d install apache2 2>&1 | tee ~/Desktop/output.txt

 I received this error response:
 {{{
         checking iconv.h presence... yes
         checking for iconv.h... yes
           setting LIBS to "-liconv"
           nulling LIBS
         configure: error: iconv support requested, but not found

         Warning: the following items did not execute (for apr-util):
 org.macports.activate
         org.macports.configure org.macports.build org.macports.destroot
 org.macports.install
         Error: The following dependencies failed to build: apr-util pcre
         Error: Status 1 encountered during processing.
         Mercury:/ jsafire$ ls
 }}}
 The output.txt file is attached.

 Jeff Safire
 Consultant
 Shadow Cliffs Engineering
 www.microdisk.com
 ------------------------------------


 On Mar 3, 2009, at 2:23 AM, MacPorts wrote:

 New description:

 When trying to install php5 or apache2, I get this error:
 "configure: error: iconv support requested, but not found".

 MacOSX 10.5.6 on new Macbook.

 I am trying to get mysql running, but having trouble, so decided to
 reinstall AMP using MacPorts.

 In my /usr/lib are:
 {{{
 libiconv.2.4.0.dylib
 libiconv.2.dylib
 libiconv.dylib
 libiconv.la
 }}}

 What does this mean and how can I fix it?

 --

 Comment(by ryandesign@…):

 What's in your /usr/lib is immaterial. MacPorts won't use it. It will use
 its own libiconv port.

 What version of Xcode do you have?

 What is the "port" command you ran that caused the error? Was it "sudo
 port install php5"? Or maybe "sudo port install apache2"? And what port
 did it say failed to build? Was it php5 or apache2 or maybe instead one of
 its dependencies?

 Whatever port failed, can you please clean it and then try again, this
 time with the debug switch, and send us all the output? For example if
 apache2 was the port that failed, then:

 {{{
 sudo port clean apache2
 sudo port -d install apache2 2>&1 | tee ~/Desktop/output.txt
 }}}

 Then, assuming that fails again, attach output.txt from your desktop to
 this ticket.

 --
 Ticket URL: <http://trac.macports.org/ticket/18734#comment:2>
 MacPorts <http://www.macports.org/>
 Ports system for Mac OS

-- 
Ticket URL: <http://trac.macports.org/ticket/18734#comment:3>
MacPorts <http://www.macports.org/>
Ports system for Mac OS


More information about the macports-tickets mailing list