Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

OS X 10.8.1 + php 5.3.16 #47

Closed
masood09 opened this issue Sep 1, 2012 · 9 comments
Closed

OS X 10.8.1 + php 5.3.16 #47

masood09 opened this issue Sep 1, 2012 · 9 comments

Comments

@masood09
Copy link

masood09 commented Sep 1, 2012

When trying to run the phalcon framework, getting this error in apache logs:

dyld: lazy symbol binding failed: Symbol not found: _phalcon_call_method_normal
Referenced from: /usr/local/Cellar/php53/5.3.16/lib/php/extensions/no-debug-non-zts-20090626/phalcon.so
Expected in: flat namespace

Any ideas?

@phalcon
Copy link
Collaborator

phalcon commented Sep 2, 2012

Hi, you need to change your default c compiler from clang to gcc to correctly compile Phalcon,

@phalcon phalcon closed this as completed Sep 3, 2012
@rsilvestre
Copy link

OSX 10.7.4
PHP 5.4.6

Ok, and How?
Could you precise what you said by : "change your default c compiler from clang to gcc" please?

@phalcon
Copy link
Collaborator

phalcon commented Sep 5, 2012

As of Xcode 4.2 in Lion, Apple no longer ships its previous version of gcc-4.2, which was in Xcode 4.1 and earlier versions. It now only ships llvm-gcc (gcc front-end with llvm code backend) and clang (clang front-end with llvm backend).

I think compiling Phalcon in the following way could work:

git clone git://github.com/phalcon/cphalcon.git
cd cphalcon/release
export CC="gcc"
export CFLAGS="-O2 -fno-delete-null-pointer-checks"
phpize
./configure --enable-phalcon
make
sudo make install

@phalcon
Copy link
Collaborator

phalcon commented Sep 5, 2012

This is a shared folder on Dropbox, https://www.dropbox.com/sh/ncjy0toqp7drjo0/Z68Cn2L5Zg

that have both active versions compiled on my osx lion, i'm not sure if this will work on your machines, you can copy any of them to your extensions directory

@rsilvestre
Copy link

I try with with which I have compiled and i have this message :

[05-Sep-2012 22:44:21 UTC] PHP Fatal error: Uncaught exception 'Phalcon\Mvc\Micro\Exception' with message 'The Not-Found handler is not callable or is not defined' in /Users/nice/git/kenjikobe/index.php:121
Stack trace:
#0 /Users/nice/git/kenjikobe/index.php(121): Phalcon\Mvc\Micro->handle()
#1 {main}

thrown in /Users/nice/git/kenjikobe/index.php on line 121

Your extension don't work on my computer...

@phalcon
Copy link
Collaborator

phalcon commented Sep 5, 2012

I assume that you're running this: https://github.com/kenjikobe/cellar/blob/master/index.php

As the exception says: that application doesn't have a "not-found" handler: http://docs.phalconphp.com/en/0.5.0/reference/micro.html#not-found-handler

@rsilvestre
Copy link

ok,
So I tried your tutorial just now, and here is what's appening :

[06-Sep-2012 21:34:35 UTC] PHP Fatal error: Class 'Phalcon_Controller_Front' not found in /Users/nice/git/phalcon.test.local/public/index.php on line 5
[06-Sep-2012 21:34:35 UTC] PHP Stack trace:
[06-Sep-2012 21:34:35 UTC] PHP 1. {main}() /Users/nice/git/phalcon.test.local/public/index.php:0

@phalcon
Copy link
Collaborator

phalcon commented Sep 7, 2012

hi mika, the tutuorial you need to follow is the 0.5.0 one: http://docs.phalconphp.com/en/0.5.0/reference/tutorial.html

@rsilvestre
Copy link

pfiouuuuu,

YES! It Work! I have my 'hello world' !

It's a little bit tricky. May be you should add the line : 'export CC="gcc"' in the install command lines in the frontpage on github!

Regards

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants