Skip to content

Added OS X support#10

Open
rmzr7 wants to merge 1 commit intoTidalLabs:masterfrom
rmzr7:patch-1
Open

Added OS X support#10
rmzr7 wants to merge 1 commit intoTidalLabs:masterfrom
rmzr7:patch-1

Conversation

@rmzr7
Copy link
Copy Markdown

@rmzr7 rmzr7 commented May 11, 2015

No description provided.

@bkanber
Copy link
Copy Markdown
Contributor

bkanber commented May 11, 2015

Thanks for getting started on this, @remzr7 !

I'd really appreciate it if you could also try your hand at automating that install process by adding a rule to the Makefile called "osx-dependencies" -- let me know if that's possible.

Thanks again, really appreciate you contributing.

@bkanber
Copy link
Copy Markdown
Contributor

bkanber commented May 11, 2015

@CameronBanga I haven't tried setting up in OSX yet, so your debugging is super valuable!

You've added the extension=ncurses.so line to the php.ini -- a few questions to help you troubleshoot, hopefully:

Do you get any kind of error along the lines of "couldn't load ncurses.so" when you try to run the app? If you don't get any error, that might mean that you added the line to the wrong file. Maybe you added to the apache2 or fpm versions of the php.ini rather than the CLI version. Which file did you add it to? For PHP CLI, you shouldn't have to restart any services because it should read the php.ini file every time you run PHP.

If you do get an error, that means that the php.ini sees that you're trying to load the extension but there was a problem with the installation.

LMK about the above and we can continue debugging together. Thanks again!

@CameronBanga
Copy link
Copy Markdown

I think I found the issue, I'm not very good with this, so follow up and verify what I did.

First, ran php --ini to find PHP location

Slacker|master⚡ ⇒ php --ini
Configuration File (php.ini) Path: /etc
Loaded Configuration File:         (none)
Scan for additional .ini files in: /Library/Server/Web/Config/php
Additional .ini files parsed:      (none)

And so based on that, I threw the extension line at the end of /etc/php.ini.default, as that file had already existed.

But realized through some searching/thinking that I need to have that file be at /etc/php.ini. So ran sudo cp /etc/php.ini.default /etc/php.ini and now everything works as expected!

I'm probably dumb and normal people would know to do this, but IDK how this defers from Debian, etc, so worth giving you this info.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants