Skip to content

Instantly share code, notes, and snippets.

@clasense4
Created October 22, 2016 03:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save clasense4/9ba85646b9007732a7b6a33b1495b8d0 to your computer and use it in GitHub Desktop.
Save clasense4/9ba85646b9007732a7b6a33b1495b8d0 to your computer and use it in GitHub Desktop.
Fixing awk problem in OSX el capitan
brew unlink gawk
brew reinstall awk
awk
─fajriabdillah@Fajris-MacBook-Air.local ~/Projects/playground/swoole-src ‹master*›
╰─➤ awk 1 ↵
dyld: Library not loaded: /usr/local/opt/readline/lib/libreadline.6.dylib
Referenced from: /usr/local/bin/awk
Reason: image not found
[1] 74534 trace trap awk
─fajriabdillah@Fajris-MacBook-Air.local ~/Projects/playground/swoole-src ‹master*›
╰─➤ brew reinstall awk 133 ↵
==> Reinstalling homebrew/dupes/awk
Error: Cannot install homebrew/dupes/awk because conflicting formulae are installed.
gawk: because both install awk executables.
Please `brew unlink gawk` before continuing.
Unlinking removes a formula's symlinks from /usr/local. You can
link the formula again after the install finishes. You can --force this
install, but the build may fail or cause obscure side-effects in the
resulting software.
╭─fajriabdillah@Fajris-MacBook-Air.local ~/Projects/playground/swoole-src ‹master*›
╰─➤ brew unlink gawk 1 ↵
Unlinking /usr/local/Cellar/gawk/4.1.4... 22 symlinks removed
╭─fajriabdillah@Fajris-MacBook-Air.local ~/Projects/playground/swoole-src ‹master*›
╰─➤ brew reinstall awk
==> Reinstalling homebrew/dupes/awk
==> Using the sandbox
==> Downloading https://www.cs.princeton.edu/~bwk/btl.mirror/awk.tar.gz
######################################################################## 100.0%
==> make CC=clang CFLAGS= YACC=yacc -d
🍺 /usr/local/Cellar/awk/20121220: 5 files, 159.4K, built in 8 seconds
╭─fajriabdillah@Fajris-MacBook-Air.local ~/Projects/playground/swoole-src ‹master*›
╰─➤ awk
usage: awk [-F fs] [-v var=value] [-f progfile | 'prog'] [file ...]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment