universal-ctags / homebrew-universal-ctags

Homebrew Tap for Universal Ctags on OSX
https://ctags.io
GNU General Public License v2.0
326 stars 19 forks source link

Installation fails on OSX #54

Open badench opened 4 years ago

badench commented 4 years ago

Hi I am trying to install universal-ctags per the formula in the README, I get the following output

==> Installing universal-ctags from universal-ctags/universal-ctags
==> Cloning https://github.com/universal-ctags/ctags.git
Updating /Users/cbade/Library/Caches/Homebrew/universal-ctags--git
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
HEAD is now at 3f0ea94 Merge pull request #2605 from masatake/ldscript-fix-map-pattern
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/universal-ctags/HEAD-3f0ea94
Last 15 lines from /Users/cbade/Library/Logs/Homebrew/universal-ctags/02.configure:
checking for setenv... yes
checking for regcomp... yes
checking if regcomp works... yes
checking for scandir... yes
checking for dirent.h... (cached) yes
checking for pkg-config... /usr/local/Homebrew/Library/Homebrew/shims/mac/super/pkg-config
checking pkg-config is at least version 0.9.0... yes
checking for libxml-2.0 >= 2.7.7... yes
checking for jansson... no
checking for libseccomp... no
checking for yaml-0.1... no
configure: checking for new missing prototypes
checking for iconv_open or libiconv_open with -liconv... no
checking for iconv_open... no
configure: error: Could not find libiconv. Please install libiconv and libiconv-devel.

If reporting this issue please do so at (not Homebrew/brew or Homebrew/core):
  https://github.com/universal-ctags/homebrew-universal-ctags/issues

These open issues may also help:
universal-ctags: Fix build for Linux https://github.com/universal-ctags/homebrew-universal-ctags/pull/52
Please create pull requests instead of asking for help on Homebrew's GitHub,
Discourse, Twitter or IRC.

I tried installing libiconv and libiconv-devel. Homebrew couldnt find any available formula for libiconv-devel. I got the following message when trying to install libiconv "libiconv is keg-only, which means it was not symlinked into /usr/local, because macOS already provides this software and installing another version in parallel can cause all kinds of trouble"

OSX: 10.14.6 Homebrew: 2.4.9