View previous topic :: View next topic |
Author |
Message |
stoltenhoff -
Joined: 11 Jan 2008 Posts: 27 Location: DK
|
Posted: Wed Apr 16, 2008 10:32 pm Post subject: adding special php-extensions |
|
|
hi,
i'm not very familar with installing php. so i've installed the ready-to-use package from abyssunderground – thanks!
it's working great. but two projects (e.g. magento and phpmyadmin) are missing special php-modules such as "mcrypt". what is the best way to add extensions like this (on a mac-machine)? do i have to switch to an new, full installation of php?
thank you and best regards,
jan |
|
Back to top |
|
|
phirez -
Joined: 22 Apr 2006 Posts: 57
|
Posted: Thu Apr 17, 2008 2:39 am Post subject: |
|
|
I'm assuming you're using the pre-configured package from Aprelium....
To install a php extension from source, on a mac (requires Apple's Developer Tools):
Open Terminal and cd to the the extension's source directory and type...
Code: | /Applications/PHP5/bin/phpize |
Next configure (to generate appropriate Makefiles)...
Code: | ./configure --enable-[extension_name] --with-php-config=/Applications/PHP5/bin/php-config |
Finally compile the source....
Then open /Applications/PHP5/lib/php.ini in TextEdit and Add the line:
Code: | extension = [extension_name].so |
|
|
Back to top |
|
|
stoltenhoff -
Joined: 11 Jan 2008 Posts: 27 Location: DK
|
Posted: Thu Apr 17, 2008 12:17 pm Post subject: |
|
|
... thanks a lot, phirex!
this is very helpful, i'm going to follow your steps.
best regards,
jan |
|
Back to top |
|
|
stoltenhoff -
Joined: 11 Jan 2008 Posts: 27 Location: DK
|
Posted: Thu Apr 17, 2008 6:13 pm Post subject: |
|
|
... ok, php plus terminal seems to be my personal hell.
i've installed the developer tools, downloaded the latest mcrypt-sources and i'm stopping just at the first line:
Code: | Cannot find config.m4.
Make sure that you run '/Applications/PHP5/bin/phpize' in the top level source directory of the module |
i have tested every possible location. further, there is no "config.m4" in the mcrypt-directory?
any idea? no pre-compiled extensions available?
greetings,
jan |
|
Back to top |
|
|
aprelium -
Joined: 22 Mar 2002 Posts: 6800
|
Posted: Fri Apr 18, 2008 5:58 pm Post subject: |
|
|
stoltenhoff wrote: |
Code: | Cannot find config.m4.
Make sure that you run '/Applications/PHP5/bin/phpize' in the top level source directory of the module |
|
You should use the cd command to move to the directory where the extension source is. For example:
Code: | cd /Users/jan/mcrypt-extension |
_________________ Support Team
Aprelium - http://www.aprelium.com |
|
Back to top |
|
|
stoltenhoff -
Joined: 11 Jan 2008 Posts: 27 Location: DK
|
Posted: Fri Apr 18, 2008 9:47 pm Post subject: |
|
|
but „yes“, i did it?!
aprelium wrote: |
You should use the cd command to move to the directory where the extension source is. For example:
Code: | cd /Users/jan/mcrypt-extension |
|
|
|
Back to top |
|
|
phirez -
Joined: 22 Apr 2006 Posts: 57
|
Posted: Sat Apr 19, 2008 4:00 pm Post subject: |
|
|
Some source directories include a package.xml for compatibility with PEAR, therefore the actual source directory is another level deep.
So for example
/Users/jan/mcrypt-ext/mcrypt-ext
run the following in the terminal to see the files and folders in the directory:
If it still doesn't work, send me the link for the mcrypt extension. |
|
Back to top |
|
|
|