Skip to content
This repository has been archived by the owner on Mar 25, 2024. It is now read-only.

Installation fails on Mac os #40

Open
bIgBV opened this issue Jan 19, 2019 · 11 comments
Open

Installation fails on Mac os #40

bIgBV opened this issue Jan 19, 2019 · 11 comments

Comments

@bIgBV
Copy link

bIgBV commented Jan 19, 2019

Running the brew installation command in the README fails with the following error:

~/C/project $ brew install --HEAD universal-ctags/universal-ctags/universal-ctags
==> Installing universal-ctags from universal-ctags/universal-ctags
==> Cloning https://github.com/universal-ctags/ctags.git
Updating /Users/bigb/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 5a2b65f Merge pull request #1977 from masatake/fix-readtags-dsl-or-operator
==> Downloading https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e47
######################################################################## 100.0%
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/universal-ctags/HEA
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/universal-ctags/HEAD-5a2b65f
Last 15 lines from /Users/bigb/Library/Logs/Homebrew/universal-ctags/03.configure:
2019-01-19 11:38:58 -0600

./configure
--prefix=/usr/local/Cellar/universal-ctags/HEAD-5a2b65f


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

~/C/project $

Running brew doctor shows no issues as well:

~/C/project $ 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 or file an issue; just ignore this. Thanks!

Warning: You have unlinked kegs in your Cellar
Leaving kegs unlinked can lead to build-trouble and cause brews that depend on
those kegs to fail to run properly once built. Run `brew link` on these:
  vim

I'm running brew 1.9.2 and am on Mac OS 10.14

Please let me know if you need more information!

@miranska
Copy link

miranska commented Jun 7, 2019

I'll add the same problem here (brew 2.1.4 and MacOS 10.14.5):

$ brew install --HEAD universal-ctags/universal-ctags/universal-ctags
==> Installing universal-ctags from universal-ctags/universal-ctags
==> Cloning https://github.com/universal-ctags/ctags.git
Updating /Users/admin/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 3fdf28b Merge pull request #2102 from techee/external_parser_list
==> Downloading https://files.pythonhosted.org/packages/84/f4/5771e41fdf52aabebbadecc9381d11dea0fa34e4759b4071244fa094804c/docutils-0.14.tar.gz
Already downloaded: /Users/admin/Library/Caches/Homebrew/downloads/082747f2931278a960879f30afd38989c894b92d04eda36ead03e57dfb6703fc--docutils-0.14.tar.gz
==> python -c import setuptools... --no-user-cfg install --prefix=/usr/local/Cellar/universal-ctags/HEAD-3fdf28b/libexec/vendor --install-scripts=/usr/local/Cellar/universal-ctags/HEAD-3fdf28b/libexec/vendor/bin --single-version-externally-managed --record=installed.txt
==> ./autogen.sh
==> ./configure --prefix=/usr/local/Cellar/universal-ctags/HEAD-3fdf28b
Last 15 lines from /Users/admin/Library/Logs/Homebrew/universal-ctags/03.configure:
2019-06-07 10:46:13 -0400

./configure
--prefix=/usr/local/Cellar/universal-ctags/HEAD-3fdf28b


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

Any suggestions on how to diagnose?

@CliveK
Copy link

CliveK commented Jul 3, 2020

Have the same issue on Mac

➜ brew install --HEAD universal-ctags
Updating Homebrew...
==> Installing universal-ctags from universal-ctags/universal-ctags
==> Cloning https://github.com/universal-ctags/ctags.git
Updating /Users/CliveKitchen/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 1cae951 Merge pull request #2581 from masatake/sql-ignore--create-extension
==> ./autogen.sh
Last 15 lines from /Users/CliveKitchen/Library/Logs/Homebrew/universal-ctags/01.autogen.sh:
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
autoreconf: configure.ac: tracing
autoreconf: configure.ac: not using Libtool
autoreconf: running: /usr/local/Cellar/autoconf/2.69/bin/autoconf --force
configure.ac:129: error: possibly undefined macro: AC_DEFINE
If this token and others are legitimate, please use m4_pattern_allow.
See the Autoconf documentation.
configure.ac:330: error: possibly undefined macro: AC_MSG_ERROR
configure.ac:597: error: possibly undefined macro: AS_IF
autoreconf: /usr/local/Cellar/autoconf/2.69/bin/autoconf failed with exit status: 1

  • echo 'failed in running autoreconf'
    failed in running autoreconf
  • exit 1

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

@masatake
Copy link
Member

masatake commented Jul 3, 2020

Have the same issue on Mac

I think the issues are not the same.
@bIgBV's one and @miranska's one are failed at ./configure.
However, @CliveK's one is failed at ./autogen.sh.

@KazuakiM, could you consider adding depends_on "libtool" => :build to universal-ctags.rb ?

In this March, I introduced a library called libreadtags.so to u-ctags.
For building libreadtags.so, libtool is needed.
Missing libtool may cause the failure of running ./autogen.sh as reported by @CliveK.

@KazuakiM
Copy link
Member

KazuakiM commented Jul 6, 2020

Sorry, I try it when I get back home.

@CliveK
Copy link

CliveK commented Jul 6, 2020

@masatake - could you perhaps advise me as to how to install the libtool is needed.

I installed libtool via homebrew but still get the same as above.

@k-takata
Copy link
Member

k-takata commented Jul 6, 2020

configure.ac:129: error: possibly undefined macro: AC_DEFINE

Is pkg-config installed?

@wadkar
Copy link

wadkar commented Jul 6, 2020

@CliveK , I think brew install libtool gives you a g prefixed binaries, see brew info libtool:

libtool: stable 2.4.6 (bottled)
Generic library support script
https://www.gnu.org/software/libtool/
Not installed
From: https://github.com/Homebrew/homebrew-core/blob/HEAD/Formula/libtool.rb
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.

So you may want to create a symlink, for example: cd /usr/local/bin && ln -s glibtool libtool && ln -s glibtoolize libtoolize

That might pick up the brew installed GNU Libtool and make it work (haven't tried (yet)).

@masatake
Copy link
Member

masatake commented Jul 6, 2020

As far as reading

depends_on "pkg-config" => :build
, pkg-config must be available.
autogen.sh also verifies the availability of pkg-config command.

However, as @k-takata wrote, missing pkg-config is a well-known reason for "configure.ac:129: error: possibly undefined macro: AC_DEFINE". e.g. https://stackoverflow.com/questions/20089579/error-ac-define-is-not-found-to-autoreconf-force-install

@CliveK
Copy link

CliveK commented Jul 7, 2020

I have pkg-config installed and have now done what @wadkar suggested but still getting same error.

@KazuakiM
Copy link
Member

KazuakiM commented Jul 7, 2020

@masatake
I reinstalled master branch when I uninstalled libtool. I could install universal-ctags.
And I tested TravisCI too.

https://travis-ci.org/github/KazuakiM/homebrew-universal-ctags/builds/705820196

So I think not require libtool at build.

@Hritik14
Copy link

This installed on my machine just fine.
Mac Monterey 12.1 (21C52)

brew install --HEAD universal-ctags/universal-ctags/universal-ctags
Running `brew update --preinstall`...
Running `brew update --preinstall`...
==> Auto-updated Homebrew!
Updated 2 taps (homebrew/core and homebrew/cask).
==> New Formulae
netmask                                         pinot                                           zk
==> Updated Formulae
Updated 245 formulae.
==> Renamed Formulae
annie -> lux
==> New Casks
cleanmymac-zh                                                           fishing-funds
==> Updated Casks
Updated 488 casks.
==> Deleted Casks
aio-creator-neo              getrasplex                   rcse                         trayplay                     zoolz
aleo-studio                  omx-ebooks                   sickbeard-anime              web-sharing
art-directors-toolkit        pixelpeeper                  tranquility                  wwdcsrt

==> Tapping universal-ctags/universal-ctags
Cloning into '/opt/homebrew/Library/Taps/universal-ctags/homebrew-universal-ctags'...
remote: Enumerating objects: 110, done.
remote: Counting objects: 100% (18/18), done.
remote: Compressing objects: 100% (13/13), done.
remote: Total 110 (delta 8), reused 8 (delta 4), pack-reused 92
Receiving objects: 100% (110/110), 25.57 KiB | 623.00 KiB/s, done.
Resolving deltas: 100% (53/53), done.
Tapped 1 formula (17 files, 55.5KB).
==> Downloading https://ghcr.io/v2/homebrew/core/automake/manifests/1.16.5
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/automake/blobs/sha256:f68481d06be7fa3f0a0881edb825a336e7f6548191c762d68bd817183b238f5a
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f68481d06be7fa3f0a0881edb825a336e7f6548191c762d68bd817183b
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/manifests/3.37.2
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/sqlite/blobs/sha256:debcf87141c39a5902b5142d64b1d91935677eb44f9838d60e52abc37a42a31e
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:debcf87141c39a5902b5142d64b1d91935677eb44f9838d60e52abc37a
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/docutils/manifests/0.18.1
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/docutils/blobs/sha256:d7be7131a30339be430d398e605bf870d1afa6842ece2f723b9ae4539f680c9c
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:d7be7131a30339be430d398e605bf870d1afa6842ece2f723b9ae4539f
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jansson/manifests/2.14
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/jansson/blobs/sha256:f8a132e116364ead3e428b1ad39768791f7a11ad26c07f5040c41d3514b7dea2
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:f8a132e116364ead3e428b1ad39768791f7a11ad26c07f5040c41d3514
######################################################################## 100.0%
==> Cloning https://github.com/universal-ctags/ctags.git
Cloning into '/Users/neo/Library/Caches/Homebrew/universal-ctags--git'...
==> Checking out branch master
Already on 'master'
Your branch is up to date with 'origin/master'.
==> Installing universal-ctags from universal-ctags/universal-ctags
==> Installing dependencies for universal-ctags/universal-ctags/universal-ctags: automake, sqlite, docutils and jansson
==> Installing universal-ctags/universal-ctags/universal-ctags dependency: automake
==> Pouring automake--1.16.5.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/automake/1.16.5: 131 files, 3.5MB
==> Installing universal-ctags/universal-ctags/universal-ctags dependency: sqlite
==> Pouring sqlite--3.37.2.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/sqlite/3.37.2: 11 files, 4.3MB
==> Installing universal-ctags/universal-ctags/universal-ctags dependency: docutils
==> Pouring docutils--0.18.1.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/docutils/0.18.1: 814 files, 9.9MB
==> Installing universal-ctags/universal-ctags/universal-ctags dependency: jansson
==> Pouring jansson--2.14.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/jansson/2.14: 11 files, 228.4KB
==> Installing universal-ctags/universal-ctags/universal-ctags --HEAD
==> ./autogen.sh
==> ./configure --prefix=/opt/homebrew/Cellar/universal-ctags/HEAD-9369f18
==> make
==> make install
==> Caveats
Under some circumstances, emacs and ctags can conflict. By default,
emacs provides an executable `ctags` that would conflict with the
executable of the same name that ctags provides. To prevent this,
Homebrew removes the emacs `ctags` and its manpage before linking.
However, if you install emacs with the `--keep-ctags` option, then
the `ctags` emacs provides will not be removed. In that case, you
won't be able to install ctags successfully. It will build but not
link.
==> Summary
🍺  /opt/homebrew/Cellar/universal-ctags/HEAD-9369f18: 23 files, 3.3MB, built in 45 seconds
==> Running `brew cleanup universal-ctags`...
Disable this behaviour by setting HOMEBREW_NO_INSTALL_CLEANUP.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
==> Upgrading 2 dependents:
Disable this behaviour by setting HOMEBREW_NO_INSTALLED_DEPENDENTS_CHECK.
Hide these hints with HOMEBREW_NO_ENV_HINTS (see `man brew`).
awscli 2.4.9 -> 2.4.11, pgcli 3.2.0 -> 3.3.0
==> Downloading https://ghcr.io/v2/homebrew/core/awscli/manifests/2.4.11
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/awscli/blobs/sha256:12c38e09c2fbe9e2d0de3a782617d7a74fcf32ec28c17023c85a8b09ce24328e
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:12c38e09c2fbe9e2d0de3a782617d7a74fcf32ec28c17023c85a8b09ce
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pgcli/manifests/3.3.0
######################################################################## 100.0%
==> Downloading https://ghcr.io/v2/homebrew/core/pgcli/blobs/sha256:4be456671fefcabc7687db17460cc87a6670e75f1167314e9fcd5184dc719bfc
==> Downloading from https://pkg-containers.githubusercontent.com/ghcr1/blobs/sha256:4be456671fefcabc7687db17460cc87a6670e75f1167314e9fcd5184dc
######################################################################## 100.0%
==> Upgrading awscli
  2.4.9 -> 2.4.11

==> Pouring awscli--2.4.11.arm64_monterey.bottle.tar.gz
==> Caveats
The "examples" directory has been installed to:
  /opt/homebrew/share/awscli/examples

zsh completions and functions have been installed to:
  /opt/homebrew/share/zsh/site-functions
==> Summary
🍺  /opt/homebrew/Cellar/awscli/2.4.11: 12,333 files, 95MB
==> Running `brew cleanup awscli`...
Removing: /opt/homebrew/Cellar/awscli/2.4.9... (12,856 files, 99.1MB)
Removing: /Users/neo/Library/Caches/Homebrew/awscli--2.4.9... (16.3MB)
==> Upgrading pgcli
  3.2.0 -> 3.3.0

==> Pouring pgcli--3.3.0.arm64_monterey.bottle.tar.gz
🍺  /opt/homebrew/Cellar/pgcli/3.3.0: 1,940 files, 17.2MB
==> Running `brew cleanup pgcli`...
Removing: /opt/homebrew/Cellar/pgcli/3.2.0... (2,228 files, 19.1MB)
Removing: /Users/neo/Library/Caches/Homebrew/pgcli--3.2.0... (4.2MB)
==> Checking for dependents of upgraded formulae...
==> No broken dependents found!
==> Caveats
==> universal-ctags
Under some circumstances, emacs and ctags can conflict. By default,
emacs provides an executable `ctags` that would conflict with the
executable of the same name that ctags provides. To prevent this,
Homebrew removes the emacs `ctags` and its manpage before linking.
However, if you install emacs with the `--keep-ctags` option, then
the `ctags` emacs provides will not be removed. In that case, you
won't be able to install ctags successfully. It will build but not
link.
==> awscli
The "examples" directory has been installed to:
  /opt/homebrew/share/awscli/examples

zsh completions and functions have been installed to:
  /opt/homebrew/share/zsh/site-functions

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

8 participants