Skip to content

Instantly share code, notes, and snippets.

@cam8001
Created March 11, 2013 15:25
Show Gist options
  • Star 1 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save cam8001/5135012 to your computer and use it in GitHub Desktop.
Save cam8001/5135012 to your computer and use it in GitHub Desktop.
How to add PECL source files (NOT binary modules) to Acquia hosting.
#!/bin/bash
$ pear install Net_SmartIRC
downloading Net_SmartIRC-1.0.2.tgz ...
Starting to download Net_SmartIRC-1.0.2.tgz (184,705 bytes)
........................................done: 184,705 bytes
install ok: channel://pear.php.net/Net_SmartIRC-1.0.2
# Now the class is downloaded to my local include path.
# Get the local include path...
$ php -r "echo ini_get('include_path');"
.:/Applications/MAMP/bin/php/php5.3.14/lib/php
# And copy the downloaded files to my Acquia repository.
$ cp -r /Applications/MAMP/bin/php/php5.3.14/lib/php/Net ~/Sites/camerontod/library/
# Now commit and push.
$ cd ~/Sites/camerontod
$ git add library/
$ git commit -m 'Added SmartIRC library from PECL.'
$ git push
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment