Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#18734 closed defect (invalid)

php5 install causes: configure: error: iconv support requested, but not found

Reported by: jsafire@… Owned by: danielluke (Daniel J. Luke)
Priority: Normal Milestone:
Component: ports Version: 1.7.0
Keywords: php5 iconv 1.7.0 Cc: jyrkiwahlstedt
Port: apr-util

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

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?

Attachments (1)

output.txt (17.2 KB) - added by jsafire@… 15 years ago.
Debug error output file for: sudo port install apache2

Download all attachments as: .zip

Change History (8)

comment:1 Changed 15 years ago by blb@…

Cc: jwa@… added; jsafire@… removed
Owner: changed from macports-tickets@… to ryandesign@…

comment:2 Changed 15 years ago by ryandesign (Ryan Carsten Schmidt)

Description: modified (diff)

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.

Changed 15 years ago by jsafire@…

Attachment: output.txt added

Debug error output file for: sudo port install apache2

comment:3 Changed 15 years ago 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

comment:4 Changed 15 years ago by blb@…

Owner: changed from ryandesign@… to dluke@…
Port: apr-util added; php5 removed
DEBUG: Assembled command: 'cd "/opt/local/var/macports/build/_opt_local_var_macports_sources_rsync.macports.org_release_ports_devel_apr-util/work/apr-util-1.3.4" && ./configure --prefix=/opt/local --with-apr=/opt/local/bin/apr-1-config --with-expat=/opt/local --with-iconv=/opt/local --with-berkeley-db=/opt/local/include:/opt/local/lib/db46 --without-mysql --without-pgsql --with-sqlite3=/opt/local'

Okay, so it's actually apr-util which is failing to build.

checking Expat 1.0/1.1... no
  adding "-L/usr/local/lib" to LDFLAGS
  adding "-I/usr/local/include" to CPPFLAGS
checking Expat 1.95.x in /usr/local... no
  removed "-L/usr/local/lib" from LDFLAGS
  removed "-I/usr/local/include" from CPPFLAGS

Do you have stuff installed in /usr/local, especially /usr/local/lib and/or /usr/local/include?

comment:5 in reply to:  4 Changed 15 years ago by jsafire@…

Um, I think I found the problem... I am trying to install AMP over the Apple stuff on a new macbook. I think the problem is, I migrated everything from my iBookG4 and I had an older version of MacPorts installed on the iBookG4. Plus, I understand from IRC/#MacPorts that the previously installed MacPorts on a PPC machine will not work on an Intel box. Oops. That never dawned on me. I just uninstalled everything and I am going to rebuild all. So far, Apache2 is good to go. I am now installing php5. I hope I didn't waste too much of your time. This is only my second experience with MacPorts and I am not yet in tune with how it all works. Thanks for your help. I think I am okay for now. Have a good one! Jeff

comment:6 Changed 15 years ago by danielluke (Daniel J. Luke)

Resolution: invalid
Status: newclosed

comment:7 Changed 15 years ago by (none)

Milestone: Port Bugs

Milestone Port Bugs deleted

Note: See TracTickets for help on using tickets.