-
Notifications
You must be signed in to change notification settings - Fork 105
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
Installation Error on OS X 10.11.6 #36
Comments
Hi @walker-walks, in order to get this compiled, you need to have To do this on MacOS, you need to get Homebrew installed, if you haven't yet, then install PHP:
However, I haven't tested this on MacOS so YMMV. You will most likely need to add the full path to the |
I installed php shared library and added the full path.
|
Did you build with i.e.:
Unfortunately, you'll have to pass that in any build command that includes |
I was not using build tags.
|
I believe you may have accidentally removed the following:
Which defines the include paths for the local PHP 7.x headers. |
I did the whole process from downloading the "go-php" library and I've got the same error message.
I'm thinking that OS X version of php is very strange because instead of installing in |
The I'll see if I can find a MacOS machine to test support on. |
I think I got that part.. Now I have another message. At first when I just finished to download and do
so I change // #cgo CFLAGS: -I/usr/local/Cellar/php70/7.0.7/include/php -I/usr/local/Cellar/php70/7.0.7/include/php/main -I/usr/local/Cellar/php70/7.0.7/include/php/TSRM
// #cgo CFLAGS: -I/usr/local/Cellar/php70/7.0.7/include/php/Zend -Iinclude The new part is here. this is the new message I've got.
|
You're getting there! Final piece (hopefully) would require that you go into
I assume that's where Homebrew installs the PHP libraries. |
The lib path is that you wrote. |
It may be that Homebrew installs the libraries as |
inside
next
but results the same. |
Bah, how stupid. It appears that Homebrew does not support building PHP as a shared library. I assumed passing the These are your choices:
|
yah, actually I couldn't notice that. brew didn't give me any feedback.. |
hi, I built php from source. Now I have embed lib files but still I have a similar message.
|
Hi guys, how did you succeed to build PHP from source on OS X with "--enable-embed=shared"? I constantly got bunch of errors like this:
Tried different ways but still no luck. |
I'm not sure if PHP can be built with Clang. If anything, there's probably documentation out there on how to build. The real outcome of this is I should probably provide binary packages built against PHP statically, but I need to confirm with the PHP license before I can do that. |
I built with gcc-6 too, there are some problems with .o / .dyld file locations on OS X when building with "--enable-embed=shared" option. It is a known bug at PHP.net, but nobody cares. If you could, please release static binary, because "shared PHP" is quite hard to achieve on OS X. Thanks a lot for the package though :) |
Hi, I could build PHP on Mac but the problem was to link these files and build with go. |
@walker-walks Could you tell how did you compile the PHP in shared mode on OS X, please? |
Hi @aaxx . To be honest I don't remember exactly. I mixed up some tutorials to do that.
these options are just an example, for detail you can check here.
I think it was something like this. |
Feature/eventhub metrics
Hi, @deuill . I'm making a portable server to help my graphic designers friends on FrontEnd development with golang/echo framework. https://github.com/walker-walks/quick_serv
They said it would be useful if the server executes php files. so I was trying to call and execute php from go in a way I don't have License problem..
So I'm trying to use go-php library but
I'm having the same issue with some people when I'm doing
go get
.I don't know if it's correct but, I downloaded the php source file and put the
php-7/main
intogo-php/engine/main
and passed this part and them appeared another error which is.I moved all the files were in
php-7/Zend
togo-php/engine/main
. and Now I have the issue below that I can't understand.I wold be very happy if you could give me any suggestions.
thanks.
The text was updated successfully, but these errors were encountered: