Welcome Guest. Please Login or Register  


You are here: Index > AMPPS > General Support > Topic : new module



Threaded Mode | Print  

 new module (9 Replies, Read 22799 times)
oscaroxy
Group: Member
Post Group: Newbie
Posts: 2
Status:
I'm new of ampps for mac, I would add oci8, how do I do?

thanks
IP: --   

new module
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

Do you have the oracle libraries ?

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

new module
oscaroxy
Group: Member
Post Group: Newbie
Posts: 2
Status:
I downloaded instantClient and put into /opt/oracle/instantclient_11_2

both basic and sdk file

I would to know this for to understand how add new modules (extension) to php per mac osx with ampps.
However the oci8 and mySqli are need for me if you learn me how to do I would be grateful, thanks
IP: --   

new module
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

You can refer the following link,
http://www.php.net/manual/en/oci8.installation.php

For a manual install, download the PECL OCI8 package, e.g. oci8-1.3.5.tgz.

Extract the package:
Code
tar -zxf oci8-1.3.5.tgz
cd oci8-1.3.5


Prepare the package:
Code
/Applications/AMPPS/php/bin/phpize


Configure the package, either using $ORACLE_HOME or Instant Client
Code
./configure -with-oci8=shared,$ORACLE_HOME

or

Code
./configure -with-oci8=shared,instantclient,/path/to/instant/client/lib


Install the package:
Code
sudo make install


-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

new module
rjaquino
Group: Member
Post Group: Newbie
Posts: 3
Status:
I tried following this but I still cannot see it in my phpinfo. Please help.
IP: --   

new module
ketan
Group: Member
Post Group: Working Member
Posts: 241
Status:
Hi,

Can you find oci8 extension in /Applications/AMPPS/php/lib/extensions/ext/?

If yes,
- Then enable it (Goto AMPPS->PHP->Php Extension-> Tick the oci8 extension if not ticked)
- Restart Apache.
- Now check again phpinfo.

Edited by ketan : May 8, 2014, 11:06 am

-----------------------
Follow AMPPS on,
Twitter
Facebook
Google+
IP: --   

new module
rjaquino
Group: Member
Post Group: Newbie
Posts: 3
Status:
Even if I enabled and restart it nothing happens. I checked the error log and I think the problem is that AMPPS for Mac is only available in 32 bit. The one that got compiled is 64bit. I don't know how to make it 32
IP: --   

new module
tidus
Group: Member
Post Group: Super Member
Posts: 1121
Status:
Hi,

Add

Code
CPPFLAGS="-m32" CFLAGS="-m32" LDFLAGS="-m32"


before ./configure command.


Edited by tidus : May 8, 2014, 12:20 pm

-----------------------
Follow AMPPS on,
Twitter : https://twitter.com/AMPPS_Stack
Facebook :  http://www.facebook.com/softaculousampps
Google+ : https://plus.google.com/+AmppsStack
IP: --   

new module
rjaquino
Group: Member
Post Group: Newbie
Posts: 3
Status:
still creates x86_x64 if I add --build=i386 though it has an error: configure: error: Oracle Instant Client libraries libnnz.so and libclntsh.so not found
IP: --   

new module
jigar
Group: Member
Post Group: Newbie
Posts: 27
Status:
Hi,

Yes you will have to install Oracle Instant Client libraries

Please refer this:
http://www.php.net/manual/en/oci8.requirements.php
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 27, 2024, 3:56 am.

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