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

Error #56

Open zzlw opened 3 years ago

zzlw commented 3 years ago
touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
Updating Homebrew...
==> Installing universal-ctags from universal-ctags/universal-ctags
==> Cloning https://github.com/universal-ctags/ctags.git
Updating /Users/andy/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 86bdb84c Merge pull request universal-ctags/ctags#2650 from hirooih/sv-units-args.ctags
==> ./autogen.sh
Last 15 lines from /Users/andy/Library/Logs/Homebrew/universal-ctags/01.autogen.sh:
optlib/passwd.ctags
optlib/pod.ctags
optlib/qemuhx.ctags
optlib/puppetManifest.ctags
optlib/scss.ctags
optlib/systemtap.ctags'
+ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
aclocal: error: aclocal: file '/usr/local/share/aclocal/progtest.m4' does not exist
autoreconf: aclocal 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

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.
k-takata commented 3 years ago
aclocal: error: aclocal: file '/usr/local/share/aclocal/progtest.m4' does not exist

Please make sure that autoconf and automake are correctly installed.

zzlw commented 3 years ago

I'm sure Autoconf and automake are installed, but they still don't work

touch: /usr/local/Homebrew/.git/FETCH_HEAD: Permission denied
Updating Homebrew...
==> Installing universal-ctags from universal-ctags/universal-ctags
==> Cloning https://github.com/universal-ctags/ctags.git
Updating /Users/andy/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 86bdb84c Merge pull request universal-ctags/ctags#2650 from hirooih/sv-units-args.ctags
==> ./autogen.sh
Last 15 lines from /Users/andy/Library/Logs/Homebrew/universal-ctags/01.autogen.sh:
optlib/passwd.ctags
optlib/pod.ctags
optlib/qemuhx.ctags
optlib/puppetManifest.ctags
optlib/scss.ctags
optlib/systemtap.ctags'
+ autoreconf -vfi
autoreconf: Entering directory `.'
autoreconf: configure.ac: not using Gettext
autoreconf: running: aclocal --force
aclocal: error: aclocal: file '/usr/local/share/aclocal/progtest.m4' does not exist
autoreconf: aclocal 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

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.
k-takata commented 3 years ago

How did you install them? What does type -a aclocal show?

masatake commented 3 years ago

@KazuakiM, I have two requests.

A. longer (complete?) reference log taken at Travis-ci

To inspect issues like this issue, we need a "reference log" that is recorded in the environment where ctags is successfully built. So we can compare the reference log and the log shown by the issue reporter.

At Travis-ci, you run a test for building ctags. Therefore, we can take a reference log at Travis-ci. We can access the log at Travis-ci now. However, many lines of log recorded at Travis-ci looks omitted. So, we cannot use it as a reference log now. Let's see an example: (https://travis-ci.org/github/universal-ctags/homebrew-universal-ctags/jobs/705821620)

...
477 ==> ./autogen.sh
478 ==> ./configure --prefix=/usr/local/Cellar/universal-ctags/HEAD-b4574f0
...

We cannot see the output of autogen.sh and configure.

Is it possible to record and show all the output of commands as a log? So I, a person who doesn't have a Machintosh, can study how ctags is built successfully within the Homebrew environment.

B. command line instruction for users to show all output of building

Please, look at the output in the initial comment of this issue:

...
==> ./autogen.sh
Last 15 lines from /Users/andy/Library/Logs/Homebrew/universal-ctags/01.autogen.sh:
...

The output is limited to the last 15 lines. For shooting troubles, in some cases, we need whole the log. This is just an example. We need to let users who have troubles in building ctags take a more detailed log.

By comparing the reference log with the detailed log taken by the user, I expect we can analyze the issue even if we don't have a Machintosh.

zzlw commented 3 years ago

截屏2020-09-24 上午10 46 20

zzlw commented 3 years ago

截屏2020-09-24 上午10 53 16

zzlw commented 3 years ago

截屏2020-09-24 上午10 55 18

zzlw commented 3 years ago
brew install autoconf automake
k-takata commented 3 years ago

Similar issue here: https://stackoverflow.com/questions/25151658/xcode-build-failure-aclocal-share-files-missing How about running brew doctor and brew prune?

zzlw commented 3 years ago

截屏2020-09-24 上午11 43 22

k-takata commented 3 years ago

So, does brew doctor detect anything? BTW, text log is enough. A screenshot is not so useful in this case.

KazuakiM commented 3 years ago

@masatake Hi, I add debug code for TravisCI, passed test. https://travis-ci.org/github/universal-ctags/homebrew-universal-ctags/builds/730504378

masatake commented 3 years ago

@KazuakiM, thank you.