Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : Hello



Threaded Mode | Print  

 Hello, Hello (2 Replies, Read 15107 times)
DPets
Group: Member
Post Group: Newbie
Posts: 3
Status:
Hello all, I am enjoying the AMPPS stack. So simple to get it going. Well done! Currently trying to get php extension->mssql working with it. I am having some problems getting the apache server to load my mssql.so. Which part of this forum should I post under? I think I might be building for the wrong architecture. Once again thanks for AMPPS!
IP: --   

Hello
DPets
Group: Member
Post Group: Newbie
Posts: 3
Status:
I think I had better add some details. To build a mssql.so file I followed instructions at this link:http://lkrms.org/php-with-freetds-on-os-x-mavericks/#comment-82521 Basic process using Freetds is :D ownload php from php.net unzip (downloads folder) cd php-5.4.17/ext/mssql

phpize

./configure --with-php-config=/usr/bin/php-config --with-mssql=/usr/local/freetds

make After configure I see some lines indicating the architecture I am building for:checking build system type... i386-apple-darwin13.1.0
checking host system type... i386-apple-darwin13.1.0
checking target system type... i386-apple-darwin13.1.0 I get mssql.so in mssql/modules folder after "make" I move it to " /Applications/AMPPS/php-5.4/lib/extensions/ext" add "extensions=mssql.so" to php.ini file. Restart apache. Then check the error logs and I get this error :P HP Warning:  PHP Startup: Unable to load dynamic library '/Applications/AMPPS/php-5.4/lib/extensions/ext/mssql.so' - dlopen(/Applications/AMPPS/php-5.4/lib/extensions/ext/mssql.so, 9): no suitable image found.  Did find:\n\t/Applications/AMPPS/php-5.4/lib/extensions/ext/mssql.so: mach-o, but wrong architecture in Unknown on line 0So I think I built it for the wrong architecture, but I don't know for sure and I don't know how to build it for a different achitecture.I checked my machine architecture using the following, but I got mixed results:uname -p

i368

uname -m

x86_64

arch

i386 I checked php binary architecture using the following:cd /Applications/AMPPS/php-5.5/bin  Then file php  The output is "php: Mach-O executable i386" phpinfo() gives "System" as Darwin myMac 13.1.0 Darwin Kernel Version 13.1.0: Thu Jan 16 19:40:37 PST 2014; root:xnu-2422.90.20~2/RELEASE_X86_64 x86_64  Does this mean x86_64 binary Any help in figuring out how to get a working mssql.so would be greatly appreciated.
IP: --   

Hello
DPets
Group: Member
Post Group: Newbie
Posts: 3
Status:
Quick update: I test the AMPPS php build architecture using an existing mysql.so which came with AMPPS. I run file /Applications/AMPPS/php-5.4/lib/extensions/ext/mysql.so Output: Mach-0 bundle i386 I test the build architecture of the mssql.so which I built.  I run file /Applications/AMPPS/php-5.4/lib/extensions/ext/mssql.so Output: Mach-0 bundle x86_64 So I really need to know how to specify the build architecture when building .php extensions so that I can build an extension that is compatible with the AMPPS installation.
IP: --   

« Previous    Next »

Threaded Mode | Print  



Jump To :


Users viewing this topic
1 guests, 0 users.


All times are GMT. The time now is April 19, 2024, 3:54 pm.

  Powered By AEF 1.0.8 © 2007-2008 Electron Inc.Queries: 11  |  Page Created In:0.024