Skip to content

Instantly share code, notes, and snippets.

@andrewchee
Last active August 29, 2015 14:04
Show Gist options
  • Save andrewchee/a83b0b3f7980961061d0 to your computer and use it in GitHub Desktop.
Save andrewchee/a83b0b3f7980961061d0 to your computer and use it in GitHub Desktop.
brew install rtmpdump
$ brew update
$ brew install rtmpdump
// if
/usr/local/.git: Permission denied
Error: Failure while executing: git init
// then
$ sudo chmod 777 /usr/local
$ brew update
$ brew install rtmpdump
// and if
==> Installing rtmpdump dependency: openssl
==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/openssl-1.0.1h.mavericks.bottle.tar.gz
######################################################################## 100.0%
==> Pouring openssl-1.0.1h.mavericks.bottle.tar.gz
Error: Permission denied - /usr/local/etc/openssl
Warning: Bottle installation failed: building from source.
Error: /usr/local/opt/makedepend not present or broken
Please reinstall makedepend. Sorry :(
// then
$ brew install makedepend
$ brew install rtmpdump
// and then....
$ brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: /usr/local/etc isn't writable.
This can happen if you "sudo make install" software that isn't managed by
by Homebrew. If a formula tries to write a file to this directory, the
install will fail during the link step.
You should probably `chown` /usr/local/etc
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/bin/archive/clusterdb
/usr/local/bin/archive/createdb
/usr/local/bin/archive/createlang
/usr/local/bin/archive/createuser
/usr/local/bin/archive/dropdb
/usr/local/bin/archive/droplang
/usr/local/bin/archive/dropuser
/usr/local/bin/archive/ecpg
/usr/local/bin/archive/initdb
/usr/local/bin/archive/oid2name
/usr/local/bin/archive/pg_archivecleanup
/usr/local/bin/archive/pg_config
/usr/local/bin/archive/pg_controldata
/usr/local/bin/archive/pg_ctl
/usr/local/bin/archive/pg_dump
/usr/local/bin/archive/pg_dumpall
/usr/local/bin/archive/pg_resetxlog
/usr/local/bin/archive/pg_restore
/usr/local/bin/archive/pg_standby
/usr/local/bin/archive/pg_upgrade
/usr/local/bin/archive/pgbench
/usr/local/bin/archive/postgres
/usr/local/bin/archive/postmaster
/usr/local/bin/archive/psql
/usr/local/bin/archive/reindexdb
/usr/local/bin/archive/vacuumdb
/usr/local/bin/archive/vacuumlo
/usr/local/bin/github
Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link <formula>` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.
Binaries provided by keg-only formulae may override system binaries
with other strange results.
You may wish to `brew unlink` these brews:
ossp-uuid
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libosxfuse.2.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libosxfuse.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/macfuse.pc
/usr/local/lib/pkgconfig/osxfuse.pc
Warning: You have uncommitted modifications to Homebrew
If this a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
cd /usr/local/Library && git stash && git clean -d -f
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install openssl
Run `brew missing` for more details.
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
archive
Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link <formula>` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.
Binaries provided by keg-only formulae may override system binaries
with other strange results.
You may wish to `brew unlink` these brews:
ossp-uuid
$
// so then...
$ sudo chown -R $USER /usr/local/etc
$ brew doctor
// which yields
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry and just ignore them. Thanks!
Warning: Broken symlinks were found. Remove them with `brew prune`:
/usr/local/bin/archive/clusterdb
/usr/local/bin/archive/createdb
/usr/local/bin/archive/createlang
/usr/local/bin/archive/createuser
/usr/local/bin/archive/dropdb
/usr/local/bin/archive/droplang
/usr/local/bin/archive/dropuser
/usr/local/bin/archive/ecpg
/usr/local/bin/archive/initdb
/usr/local/bin/archive/oid2name
/usr/local/bin/archive/pg_archivecleanup
/usr/local/bin/archive/pg_config
/usr/local/bin/archive/pg_controldata
/usr/local/bin/archive/pg_ctl
/usr/local/bin/archive/pg_dump
/usr/local/bin/archive/pg_dumpall
/usr/local/bin/archive/pg_resetxlog
/usr/local/bin/archive/pg_restore
/usr/local/bin/archive/pg_standby
/usr/local/bin/archive/pg_upgrade
/usr/local/bin/archive/pgbench
/usr/local/bin/archive/postgres
/usr/local/bin/archive/postmaster
/usr/local/bin/archive/psql
/usr/local/bin/archive/reindexdb
/usr/local/bin/archive/vacuumdb
/usr/local/bin/archive/vacuumlo
/usr/local/bin/github
Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link <formula>` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.
Binaries provided by keg-only formulae may override system binaries
with other strange results.
You may wish to `brew unlink` these brews:
ossp-uuid
Warning: Unbrewed dylibs were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected dylibs:
/usr/local/lib/libosxfuse.2.dylib
Warning: Unbrewed .la files were found in /usr/local/lib.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .la files:
/usr/local/lib/libosxfuse.la
Warning: Unbrewed .pc files were found in /usr/local/lib/pkgconfig.
If you didn't put them there on purpose they could cause problems when
building Homebrew formulae, and may need to be deleted.
Unexpected .pc files:
/usr/local/lib/pkgconfig/macfuse.pc
/usr/local/lib/pkgconfig/osxfuse.pc
Warning: You have uncommitted modifications to Homebrew
If this a surprise to you, then you should stash these modifications.
Stashing returns Homebrew to a pristine state but can be undone
should you later need to do so for some reason.
cd /usr/local/Library && git stash && git clean -d -f
Warning: Some installed formula are missing dependencies.
You should `brew install` the missing dependencies:
brew install openssl
Run `brew missing` for more details.
Warning: /usr/bin occurs before /usr/local/bin
This means that system-provided programs will be used instead of those
provided by Homebrew. The following tools exist at both paths:
archive
Consider setting your PATH so that /usr/local/bin
occurs before /usr/bin. Here is a one-liner:
echo export PATH='/usr/local/bin:$PATH' >> ~/.bash_profile
Warning: Some keg-only formula are linked into the Cellar.
Linking a keg-only formula, such as gettext, into the cellar with
`brew link <formula>` will cause other formulae to detect them during
the `./configure` step. This may cause problems when compiling those
other formulae.
Binaries provided by keg-only formulae may override system binaries
with other strange results.
You may wish to `brew unlink` these brews:
ossp-uuid
// so then...
$ sudo chown -R $USER /usr/local/bin/archive
$ brew prune
// doctored, then...
$ brew unlink ossp-uuid
// doctored, then...
$ brew install openssl
// doctored, then...
$ cd /usr/local/Library
$ git stash && git clean -d -f
// ignore the errors, then finally
brew install rtmpdump
// done
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment