OS X Moutain Lion

General discussion forum for the Zend Server
Post Reply
smithdg
Posts: 41
Joined: Sun Mar 22, 2009 3:32 am

OS X Moutain Lion

Post by smithdg » Mon Jul 30, 2012 10:33 pm

When I run zendctl.sh start or stop, I get messages that user zend does not exist. How do I fix this? The biggest problem is mysql:

120730 21:09:01 mysqld_safe Starting mysqld daemon with databases from /usr/local/zend/mysql/data
120730 21:09:01 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
120730 21:09:01 [Warning] '--skip-locking' is deprecated and will be removed in a future release. Please use '--skip-external-locking' instead.
120730 21:09:01 [Warning] Setting lower_case_table_names=2 because file system for /usr/local/zend/mysql/data/ is case insensitive
120730 21:09:01 [ERROR] Fatal error: Can't change to run as user 'zend' ; Please check that the user exists!

120730 21:09:01 [ERROR] Aborting

120730 21:09:01 [Note] /usr/local/zend/mysql/bin/mysqld: Shutdown complete

smithdg
Posts: 41
Joined: Sun Mar 22, 2009 3:32 am

Re: OS X Moutain Lion

Post by smithdg » Mon Jul 30, 2012 11:01 pm

I created the user using this website: http://tanulunk.blogspot.com/2011/08/up ... n-and.html

Now If I can just figure out why mysql does not automatically start.

User avatar
kentatzend
Posts: 1778
Joined: Thu Dec 11, 2008 1:08 pm

Re: OS X Moutain Lion

Post by kentatzend » Thu Aug 02, 2012 10:03 pm

THere is a new 5.6 SP2 release that should fix issues with Mountain Lion. Let us know if it does not work.

dohpaz_42
Posts: 2
Joined: Wed Apr 04, 2012 7:50 pm

Re: OS X Moutain Lion

Post by dohpaz_42 » Mon Aug 06, 2012 2:41 pm

If x86_64 support has been available for Linux, why in the world can't the Zend folk supply an x86_64 version of Zend Server for Mac OS X. It's not very difficult with the gcc toolchain for Mac OS X. Hell, downloading XCode (which provides the Mac GCC toolkit) and using the following would be sufficient:

Code: Select all

MACOSX_DEPLOYMENT_TARGET=10.8 CFLAGS="-arch i386 -arch x86_64 -g -Os -pipe -no-cpp-precomp" CCFLAGS="-arch i386 -arch x86_64 -g -Os -pipe" CXXFLAGS="-arch i386 -arch x86_64 -g -Os -pipe" LDFLAGS="-arch i386 -arch x86_64 -bind_at_load"
Forcing the community to do this ourselves is abysmal at the very least -- it's not like Mountain Lion was dropped in our laps over night. Given all of the Zend-supplied webinars that demonstrate that developers are using Macs, this shouldn't be a resource issue.
kentatzend wrote:THere is a new 5.6 SP2 release that should fix issues with Mountain Lion. Let us know if it does not work.
"Works" is a relative term, as noted with a fresh install (no tweaks) of ZSCE 5.6.0 SP 2 hotfix 1:

Code: Select all

neo:local dohpaz42$ php
PHP Warning:  PHP Startup: Unable to load dynamic library '/usr/local/zend/lib/php_extensions/mcrypt.so' - dlopen(/usr/local/zend/lib/php_extensions/mcrypt.so, 9): Library not loaded: /usr/lib/libltdl.3.dylib
  Referenced from: /usr/local/zend/lib/php_extensions/mcrypt.so
  Reason: image not found in Unknown on line 0
[06.08.2012 09:31:00 WARNING] [ ZendExtensionManager.cpp : 1229 ( zend_extension_manager_startup ) ] Will not load extension 'loader': can not find none of keys: ('zend_extension_manager.dir.loader', 'zend_extension_manager.loader') 
[06.08.2012 09:31:00 WARNING] [ ZendExtensionManager.cpp : 1229 ( zend_extension_manager_startup ) ] Will not load extension 'jbridge': can not find none of keys: ('zend_extension_manager.dir.jbridge', 'zend_extension_manager.jbridge') 

User avatar
kentatzend
Posts: 1778
Joined: Thu Dec 11, 2008 1:08 pm

Re: OS X Moutain Lion

Post by kentatzend » Mon Aug 06, 2012 6:44 pm

I'll have someone look into it. BTW the reason we still build it as 32 bit is because in general PHP works a bit better 32 bit (runs faster and uses less memory) unless you really need 64 bit integers it usually does not matter.

martinmonchev
Posts: 1
Joined: Tue Aug 07, 2012 3:18 pm

Re: OS X Moutain Lion

Post by martinmonchev » Tue Aug 07, 2012 3:41 pm

Hi
I tried on Mac Mountain Lion, but not able to reproduce the problems with both 5.2 and 5.3 packages, downloaded directly from the zend.com site

- The zendctl.sh works fine
- The mysql works fine
- Also when run the php from the terminal, no warnings are displayed

Can you give us more details, so we can nail exact the problem.



dohpaz_42, Is the installation of the Zend Server is clean, or you have done an upgrade from older version ?


smithdg, I see that you are missing the zend user, that should be created during the installation
smithdg wrote: 120730 21:09:01 [ERROR] Fatal error: Can't change to run as user 'zend' ; Please check that the user exists!
Do you have any additional security applications installed in the Mountain Lion ( some application that can block the creation of the zend user during the installation ) ?
What exact version do you install ?
Do you have any specific configuration of the Zend Server after the installation ?

Post Reply