Forums / Install & configuration / Installing 4.1.1 on OS X - issue with iconv

Installing 4.1.1 on OS X - issue with iconv

Author Message

Jani Tarvainen

Sunday 10 May 2009 1:08:04 pm

eZ Publish 4.1.1 requires iconv support to be enabled in PHP. Normally installation is a snap, but Idiscovered that it is quite tricky to get iconv support to work on OS X (at least using PHP built from source and iconv from Ports installed). And to just to be clear - this is not an issue with eZ Publish, just the platform :)

Just incase you hit the same issue - here are the steps that worked for me (OS X 10.5.6, PHP 5.2.9):

- get PHP source, extract, etc., have your current configure command available (from phpinfo(), for example)
- run configure: ./configure --with-apxs2
- run make
- reconfigure with your current configure command (remove "--with-apxs2" and make sure you use: --with-iconv=/opt/local)
- make
- make install
- restart apache

More info: http://bugs.php.net/bug.php?id=43189

--
http://ezpublish.fi/

Ɓukasz Serwatka

Monday 11 May 2009 12:14:00 am

Hi,

Thanks for sharing your experience. Another easy way is to just install PHP via MacPorts[1] where the iconv is enabled by default. Works great in my environment.

Using MAMP[2] should be easy as well, it has iconv enabled too.

[1] http://www.macports.org/
[2] http://www.mamp.info/en/index.html

Personal website -> http://serwatka.net
Blog (about eZ Publish) -> http://serwatka.net/blog

Jani Tarvainen

Thursday 14 May 2009 9:01:31 pm

If I would do a clean install I would install the PHP package from entropy.ch. It has pretty much everything built in and installation is a snap: http://www.entropy.ch/phpbb2/viewtopic.php?t=3937&sid=a96908f62deacc8232d36b36438ffcb7

--
http://ezpublish.fi/