FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Mac OS X how to install php / yaml ?
Show: Today's Messages :: Polls :: Message Navigator
Switch to threaded view of this topic Create a new topic Submit Reply
Mac OS X how to install php / yaml ? [message #177288] Sun, 04 March 2012 08:03 Go to next message
Une Bvue is currently offline  Une Bvue
Messages: 30
Registered: March 2012
Karma: 0
Member
I was able to install yaml for Php on Ubuntu 11.10 using pecl and php 5.3.6.

but i'm unable to do the same thing on Mac os x Lion (latest) using the
builtin php5.

some ticks or web page ?
Re: Mac OS X how to install php / yaml ? [message #177297 is a reply to message #177288] Tue, 06 March 2012 07:34 Go to previous messageGo to next message
Michael Vilain is currently offline  Michael Vilain
Messages: 88
Registered: September 2010
Karma: 0
Member
In article <4f5321bb$0$454$426a74cc(at)news(dot)free(dot)fr>,
Une Bévue <unbewusstsein(at)fai(dot)invalid> wrote:

> I was able to install yaml for Php on Ubuntu 11.10 using pecl and php 5.3.6.
>
> but i'm unable to do the same thing on Mac os x Lion (latest) using the
> builtin php5.
>
> some ticks or web page ?

Since no one's responded, I'll take a stab. AFAIK, you'll have to build
your own version of php with the features you want. The version Apple
built and installed on MacOS X doesn't have a YAML module installed. I
tried building php 5.2 with a bunch of options for MacOS X 10.5 but gave
up. The libraries were hard to configure, none of the options used the
GNU autoconfigure option and after a week of trying to get a manual
build to work, I gave up. I modified my copy of Drupal 6 to work in php
5.3 instead. It took less time.

The fink package manager is dead on MacOS X. Closest thing out there is
MacPorts, but it's not supported on Lion. That leaves you to link and
compile php all by your lonesome. If you've never done this without a
package manager, I wish you luck. You'll really really need it. The
dependencies are horrendous. And I was a Unix admin in a previous life
and did free software builds on a regular basis. So I'm not
exaggerating.

The MacOS development environment which I think is part of the Install
package. With Lion and Mountain Lion, I don't know what Apple is doing
for the stuff that would have been on the DVD as optional packages.
You'll have to research that for yourself.

Sorry to not be more helpful but unless you really need php built this
way, my advise is to use what Apple provides. Good luck.

--
DeeDee, don't press that button! DeeDee! NO! Dee...
[I filter all Goggle Groups posts, so any reply may be automatically ignored]
Re: Mac OS X how to install php / yaml ? [message #177298 is a reply to message #177288] Tue, 06 March 2012 10:40 Go to previous messageGo to next message
Captain Paralytic is currently offline  Captain Paralytic
Messages: 204
Registered: September 2010
Karma: 0
Senior Member
On Mar 4, 8:03 am, Une Bévue <unbewussts...@fai.invalid> wrote:
> I was able to install yaml for Php on Ubuntu 11.10 using pecl and php 5.3..6.
>
> but i'm unable to do the same thing on Mac os x Lion (latest) using the
> builtin php5.
>
> some ticks or web page ?

As a last resort you could always use: http://code.google.com/p/spyc/
Re: Mac OS X how to install php / yaml ? [message #177299 is a reply to message #177298] Tue, 06 March 2012 11:12 Go to previous messageGo to next message
Une Bvue is currently offline  Une Bvue
Messages: 30
Registered: March 2012
Karma: 0
Member
Le 06/03/2012 11:40, Captain Paralytic a écrit :
> On Mar 4, 8:03 am, Une Bévue<unbewussts...@fai.invalid> wrote:
>> I was able to install yaml for Php on Ubuntu 11.10 using pecl and php 5.3.6.
>>
>> but i'm unable to do the same thing on Mac os x Lion (latest) using the
>> builtin php5.
>>
>> some ticks or web page ?
>
> As a last resort you could always use: http://code.google.com/p/spyc/

fine, thanks
Re: Mac OS X how to install php / yaml ? [message #177300 is a reply to message #177297] Tue, 06 March 2012 12:25 Go to previous messageGo to next message
The Natural Philosoph is currently offline  The Natural Philosoph
Messages: 993
Registered: September 2010
Karma: 0
Senior Member
Michael Vilain wrote:
> In article <4f5321bb$0$454$426a74cc(at)news(dot)free(dot)fr>,
> Une B�vue <unbewusstsein(at)fai(dot)invalid> wrote:
>
>> I was able to install yaml for Php on Ubuntu 11.10 using pecl and php 5.3.6.
>>
>> but i'm unable to do the same thing on Mac os x Lion (latest) using the
>> builtin php5.
>>
>> some ticks or web page ?
>
> Since no one's responded, I'll take a stab. AFAIK, you'll have to build
> your own version of php with the features you want. The version Apple
> built and installed on MacOS X doesn't have a YAML module installed. I
> tried building php 5.2 with a bunch of options for MacOS X 10.5 but gave
> up. The libraries were hard to configure, none of the options used the
> GNU autoconfigure option and after a week of trying to get a manual
> build to work, I gave up. I modified my copy of Drupal 6 to work in php
> 5.3 instead. It took less time.
>
> The fink package manager is dead on MacOS X. Closest thing out there is
> MacPorts, but it's not supported on Lion. That leaves you to link and
> compile php all by your lonesome. If you've never done this without a
> package manager, I wish you luck. You'll really really need it. The
> dependencies are horrendous. And I was a Unix admin in a previous life
> and did free software builds on a regular basis. So I'm not
> exaggerating.
>
> The MacOS development environment which I think is part of the Install
> package. With Lion and Mountain Lion, I don't know what Apple is doing
> for the stuff that would have been on the DVD as optional packages.
> You'll have to research that for yourself.
>
> Sorry to not be more helpful but unless you really need php built this
> way, my advise is to use what Apple provides. Good luck.
>

set up a linux virtual machine.

Or invest in a dirt cheap low power headless server that you can control
properly, and leave the MAC as just the user interface - stuff all your
data on the server. If you are clever you can NFS mount the server onto
te mac so teh user never knows its really not a local disk.

THEN you can edit your PHP files as if they were local and apart from
all the ._DS bollocks that Macs leave everywhere, and the inability to
understand case in filenames consistently, you will have what amounts to
a decent local file server which can be self backing up, a decent web
server and a decent PHP solution.

I built one - headless server with 1TB of disk - for £200 UKP Intel Atom
board with very low power consumption.

All the LAMP stuff is there. The desktops are just - desktops..one Linux
one Mac.

No important data is on them



--
To people who know nothing, anything is possible.
To people who know too much, it is a sad fact
that they know how little is really possible -
and how hard it is to achieve it.
Re: Mac OS X how to install php / yaml ? [message #177301 is a reply to message #177300] Tue, 06 March 2012 13:30 Go to previous message
Une Bvue is currently offline  Une Bvue
Messages: 30
Registered: March 2012
Karma: 0
Member
Le 06/03/2012 13:25, The Natural Philosopher a écrit :
>
> set up a linux virtual machine.
>
> <snip />
>
> No important data is on them
>

OK, thanks, I'll try first this simple solution :
As a last resort you could always use: http://code.google.com/p/spyc/
  Switch to threaded view of this topic Create a new topic Submit Reply
Previous Topic: php PDO does not work
Next Topic: PHP / LaTeX project
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Sun Nov 10 16:14:32 GMT 2024

Total time taken to generate the page: 0.02304 seconds