Skip to content

Instantly share code, notes, and snippets.

@dlangille
Last active November 20, 2022 17: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 dlangille/c027ee552c55b7313710dc053c73ae77 to your computer and use it in GitHub Desktop.
Save dlangille/c027ee552c55b7313710dc053c73ae77 to your computer and use it in GitHub Desktop.
trouble installing joe via home brew
[air01 dan ~] % brew install joe 8:55:49
Running `brew update --auto-update`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/services).
==> New Formulae
bindgen ferium libretls pgsync python@3.11 vhs
btrfs-progs fred libunibreak pinocchio rnr waybackpy
cbindgen gebug license-eye pluto tart xcodes
cdsclient hotbuild llama pomsky textract xq
cloudprober huggingface-cli mariadb@10.8 postgresql@15 trezor-bridge
cmctl hysteria markdownlint-cli2 proxsuite typewritten
cntb libdivide muon python-gdbm@3.11 typos-cli
corrosion libemf2svg node@18 python-lsp-server valijson
fend libgrapheme pferd python-tk@3.11 verovio
You have 6 outdated formulae installed.
You can upgrade them with brew upgrade
or list them with brew outdated.
Warning: joe 4.6 is already installed, it's just not linked.
[air01 dan ~] % brew doctor 11:54:23
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 or file an issue; just ignore this. Thanks!
Warning: Some installed kegs have no formulae!
This means they were either deleted or installed manually.
You should find replacements for the following formulae:
tmux-cssh
Warning: The following directories do not exist:
/usr/local/Frameworks
You should create these directories and change their ownership to your user.
sudo mkdir -p /usr/local/Frameworks
sudo chown -R $(whoami) /usr/local/Frameworks
Warning: gettext files detected at a system prefix.
These files can cause compilation and link failures, especially if they
are compiled with improper architectures. Consider removing these files:
/usr/local/lib/libgettextlib.dylib
/usr/local/lib/libintl.dylib
/usr/local/lib/libgettextlib.dylib
/usr/local/lib/libintl.dylib
Warning: libiconv files detected at a system prefix other than /usr.
Homebrew doesn't provide a libiconv formula, and expects to link against
the system version in /usr. libiconv in other prefixes can cause
compile or link failure, especially if compiled with improper
architectures. macOS itself never installs anything to /usr/local so
it was either installed by a user or some other third party software.
tl;dr: delete these files:
/usr/local/lib/libiconv.dylib
/usr/local/lib/libiconv.dylib
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/libasprintf.0.0.0.dylib
/usr/local/lib/libcharset.1.dylib
/usr/local/lib/libgettextlib-0.17.dylib
/usr/local/lib/libgettextpo.0.4.0.dylib
/usr/local/lib/libgettextsrc-0.17.dylib
/usr/local/lib/libiconv.2.dylib
/usr/local/lib/libintl.8.0.2.dylib
/usr/local/lib/libksba.8.9.6.dylib
/usr/local/lib/libpth.20.0.27.dylib
/usr/local/lib/libusb-0.1.4.dylib
/usr/local/lib/libusb-1.0.0.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/libasprintf.la
/usr/local/lib/libcharset.la
/usr/local/lib/libgettextlib.la
/usr/local/lib/libgettextpo.la
/usr/local/lib/libgettextsrc.la
/usr/local/lib/libiconv.la
/usr/local/lib/libintl.la
/usr/local/lib/libksba.la
/usr/local/lib/libpth.la
/usr/local/lib/libusb-1.0.la
/usr/local/lib/libusb.la
Warning: You have unlinked kegs in your Cellar.
Leaving kegs unlinked can lead to build-trouble and cause formulae that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
gawk
gettext
joe
Warning: Some installed formulae are not readable:
tmux-cssh: wrong number of arguments (given 1, expected 0)
[air01 dan ~] % ls -ld /usr/local/share/man/man* 11:57:20
drwxrwxr-x 55 root wheel 1760 Nov 20 10:02 /usr/local/share/man/man1
drwxr-xr-x 10 dan wheel 320 Oct 9 18:21 /usr/local/share/man/man3
drwxr-xr-x 3 dan wheel 96 Oct 9 18:21 /usr/local/share/man/man5
drwxrwxr-x 3 root wheel 96 Nov 3 2014 /usr/local/share/man/man7
drwxr-xr-x 3 dan wheel 96 Oct 9 18:21 /usr/local/share/man/man8
[air01 dan ~] % 11:57:26
@dlangille
Copy link
Author

Solution:

[air01 dan ~] % sudo chown dan /usr/local/share/man/ru/man1
[air01 dan ~] % brew link joe
Linking /usr/local/Cellar/joe/4.6... 23 symlinks created.
[air01 dan ~] % which joe
/usr/local/bin/joe

All of /usr/local/share/man should be chown dan?

I suspect this system once had MacPorts, and things may be inconsistent because of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment