Jump to content

bscott

Member
  • Posts

    3
  • Joined

  • Last visited

Profile Information

  • Location
    Cambridge, UK

bscott's Achievements

Helping Hand

Helping Hand (3/5)

0

Reputation

  1. I had a similar problem with PHP where I wanted to run different MAMP versions. As you have found, the path used by Alfred is not affected by your profile. I ended up copying the built in /usr/bin/php to /usr/bin/php.osx and creating a symlink from /usr/bin/php to whatever PHP version I wanted to run. It was tedious to change the symlink to a different PHP version so I created a workflow to make things easier (PHP Version). An alternative may be to use the full path to the version you want to run. I'd be interested to learn of a more simple way of doing this.
  2. Switch between multiple PHP versions I have several versions of PHP and need to switch between them and created this workflow to make it easier. I'm new to Alfred and this is my first attempt at a workflow and I don't know if my approach is correct or not but someone else may find this useful. Download http://cl.ly/NmQT Usage To add or delete a PHP version phpset key path For example phpset 5.4 /Applications/MAMP/bin/php/php5.4.10/bin/php To remove a PHP version leave the path blank. To query current PHP version phpqry To set PHP version phpver Select the required version from the list displayed as shown in the above image. Notes 1 Setting the PHP version runs as admin and will prompt for username & password. 2 The existing /usr/bin/php is renamed as /usr/bin/php.osx 3 The key osx is set by default to point to /usr/bin/php.osx Contact bob@rwscott.co.uk
  3. If anyone else is having this problem and would rather not reinstall OS X, running the following in terminal may help: sudo ln -s /usr/lib/libpq.5.4.dylib /usr/lib/libpq.5.dylib Change libpq.5.4.dylib to whatever is on your system eg libpq.5.3.dylib
×
×
  • Create New...