Comments (18)
it seems that you need 64bit lib for compiling gettext, but the 64bit library is not found. (when you link gettext)
In Mac OS, there is a binary format called univeral
, Macports support this, but I don't know what the option corresponding to this on homebrew is.
from phpbrew.
Check this thread, hope this helps you.
If it still doesn't work, try not to use gettext extension, use separate variants for your php, then use phpbrew install-ext gettext
to build the gettext extension separately.
from phpbrew.
OK, I just got the same error:
/Users/c9s/.phpbrew/build/php-5.3.16/Zend/zend_objects.c: In function ‘zend_objects_destroy_object’:
/Users/c9s/.phpbrew/build/php-5.3.16/Zend/zend_objects.c:96: warning: assignment discards qualifiers from pointer target type
Undefined symbols for architecture x86_64:
"std::terminate()", referenced from:
_umsg_format_helper in msgformat_helpers.o
_umsg_parse_helper in msgformat_helpers.o
"vtable for __cxxabiv1::__class_type_info", referenced from:
typeinfo for icu_48::UMemoryin msgformat_helpers.o
NOTE: a missing vtable usually means the first non-inline virtual member function has no definition.
"___gxx_personality_v0", referenced from:
_umsg_format_helper in msgformat_helpers.o
_umsg_parse_helper in msgformat_helpers.o
Dwarf Exception Unwind Info (__eh_frame) in msgformat_helpers.o
ld: symbol(s) not found for architecture x86_64
collect2: ld returned 1 exit status
make: *** [sapi/cgi/php-cgi] Error 1
from phpbrew.
really strange because my gettext is compiled with "universal".
port installed gettext
The following ports are currently installed:
gettext @0.18.1.1_2
gettext @0.18.1.1_2+universal (active)
seems it needs to be fixed in PHP.
from phpbrew.
I've forced installation from source for icu4c & gettext but I only have x86_64 binaries.
I already have compiled few weeks ago php 5.3.15 with success on mountain lion (was on an iMac whereas I'm trying to compile on a MBA at the moment).
The only things that may have changed since are :
- XCode version
- phpbrew
- I didn't had to install gettext at that time (is it an added requirement since last updates of phpbrew ?)
So I have tried to compile again on the iMac, same issue! php-5.3.15 & php-5.3.16 source code hasn't changed since, true ?
Son before investigating into XCode upgrade, do you know if a recent (1 mont max) change into phpbrew would produce such issue ?
from phpbrew.
I took off the --gettext options out from default, can you run self-update to get latest phpbrew for building ?
from phpbrew.
I think it might be caused by XCode, because I've built 5.3.* phps on Mac Lion. it works very well.
from phpbrew.
Ok thanks, I'll try in a little hour.
Le 4 sept. 2012 à 05:16, Yo-An Lin [email protected] a écrit :
I took off the --gettext options out from default, can you run self-update
to get latest phpbrew for building ?
—
Reply to this email directly or view it on
GitHubhttps://github.com//issues/24#issuecomment-8251404.
from phpbrew.
Hi @shouze,
did it solve your problem?
I just googled and found something,
https://bugs.php.net/bug.php?id=48795
Maybe it helps.
from phpbrew.
Found the solution, it's a bug of PHP source.
http://blog.gcos.me/2012-10-19_how-to-compile-php53-on-64bit-linux-macos.html
from phpbrew.
We now have a built-in patch for building php 5.3.x , I just tested it on my Mac OS X, that should work. ;-)
from phpbrew.
I have such problem now, where is the patch?
from phpbrew.
Patch is still functional, see here.
from phpbrew.
I tried to install 5 mins ago:
brew install php53
==> Downloading http://www.php.net/get/php-5.3.29.tar.bz2/from/this/mirror
Already downloaded: /Library/Caches/Homebrew/php53-5.3.29
==> Patching
patching file configure
patching file configure.in
patching file Zend/zend_language_parser.y
patching file configure
patching file Zend/acinclude.m4
==> rm Zend/zend_{language,ini}_parser.[ch]
Warning: Backing up all known pear.conf and .pearrc files
Warning: If you have a pre-existing pear install outside
of homebrew-php, or you are using a non-standard
pear.conf location, installation may fail.
==> ./configure --prefix=/usr/local/Cellar/php53/5.3.29 --localstatedir=/usr/local/var --sysconfdir=/usr/local/etc/php/5.3 --with-config-file-path=/usr/local/etc/php/5.3 --with-config-file-scan-dir=/usr
==> make
make: *** [sapi/cli/php] Error 1
make: *** Waiting for unfinished jobs....
ld: symbol(s) not found for architecture x86_64
clang: error: linker command failed with exit code 1 (use -v to see invocation)
make: *** [libs/libphp5.bundle] Error 1
READ THIS: https://github.com/Homebrew/homebrew/wiki/troubleshooting
If reporting this issue please do so at (not Homebrew/homebrew):
https://github.com/josegonzalez/homebrew-php/issues
from phpbrew.
You're asking for help in the wrong place. This is phpbrew
project, not homebrew
.
Pleas go to https://github.com/josegonzalez/homebrew-php/issues or try phpbrew :)
from phpbrew.
😅 thx)
from phpbrew.
lol
from phpbrew.
note: sed fix 9844bb7
from phpbrew.
Related Issues (20)
- Can't install on php 8.2.4 HOT 4
- Php 8.2 not supported? HOT 9
- PHP Fatal error: Uncaught TypeError: array_merge(): Argument #1 must be of type array HOT 5
- When will PHP 8.2 be supported? HOT 6
- Centos8 install php 8 error
- Cannot switch to PHP v8.2.8 HOT 1
- PHP 8.1.11 (or 12) pgsql pg_config... not found … Cannot find libpq-fe.h HOT 2
- "patch for fix readline detection" is broken HOT 3
- Release workflow may have some problems
- Problems with 2.2.0 HOT 6
- Was 2.2.0 retagged? HOT 1
- bad pattern issue with phpbrew in macos HOT 1
- RuntimeException: Can't decode release json, invalid JSON string: [] HOT 2
- Failed to install php 7.4.33 on Mac HOT 7
- Abnormal termination (Segfaults) when running compiled php 8.2 as FPM process HOT 1
- phpbrew ext install redis: Error: Command failed
- PHP 8.4 deprecation: Implicitly marking parameter as nullable is deprecated
- PHP 8.1 fails with libxml 2.12.0+ HOT 3
- Php 8.3 fails on EL8 (Rocky 8, Alma 8, Centos8)
- Cache file not created correctly HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from phpbrew.