Mac OSX Composer Could not open input file: /Users//composer.phar

July 1, 2020

To most of the people who want to install composer on OSX, usually, the below command is sufficient: $ curl -sS https://getcomposer.org/installer | php $ mv composer.phar /usr/local/bin/composer $ alias composer=’/usr/local/bin/composer.phar’ However, it could still happen to have error of “Could not open input file: /Users/kayliongmac11air/composer.phar“ This is due to shell environment didn’t refresh. To fix this […]

OSX Install Phalcon Error: undefined method `desc’ for Formulary::Formulae::Zlib:Class

November 5, 2015

Installing PHP Phalcon framework on Mac OS using this command brew install php56 php56-phalcon Home brew may have error like: ==> Installing php56 from homebrew/homebrew-php Error: undefined method `desc’ for Formulary::Formulae::Zlib:Class Please report this bug: http://git.io/brew-troubleshooting /usr/local/Library/Taps/homebrew/homebrew-dupes/zlib.rb:2:in `’ To solve this, run: brew update

Building ‘_imagingft’ extension error command ‘cc’ failed with exit status 1

November 3, 2015

This error is due to freetype header missing. _imagingft.c:73:10: fatal error: ‘freetype/fterrors.h’ file not found #include <freetype/fterrors.h> ^ 1 error generated. error: command ‘cc’ failed with exit status 1  First, verify freetype is installed. With brew: brew install freetype If freetype installed, warning message shows: Warning: freetype-2.5.5 already installed Next to fixed the issue, is […]

Screen Shot 2015-11-03 at 11.33.25 AM

Pip Install error: invalid command ‘bdist_wheel’ Mac Os

November 3, 2015

Install the wheel package first: pip install wheel If requirement already satisfied, you will see: Requirement already satisfied (use –upgrade to upgrade) Then, you should update your setuptools: pip install setuptools –upgrade Run again pip install, it should works now!