Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Error installing magit (w32, makeinfo installed, fails to create magit.info) #2574

Open
subhacom opened this issue Oct 26, 2017 · 8 comments

Comments

@subhacom
Copy link

Using emacs 25.3 on Windows 7 with msys64 I encounter this error when trying install magit:
Error (el-get): while installing magit: el-get: c:/msys64/usr/bin/install-info.exe el-get could not build magit [c:/msys64/usr/bin/install-info.exe c:\Users\UserName\AppData\Roaming.emacs.d\el-get\magit\Documentation\magit.info dir]

I can, however, install magit from the usual packages list via list-packages command.

@npostavs
Copy link
Collaborator

Are you using a cygwin/msys version of Emacs (i.e., not win32 native)? What is the full output from M-x emacs-version?

@subhacom
Copy link
Author

GNU Emacs 25.3.1 (x86_64-w64-mingw32) of 2017-09-26

@npostavs
Copy link
Collaborator

Hmm, if you do M-: system-type do you not get windows-nt?

@npostavs
Copy link
Collaborator

Is there a *el-get-build: magit* buffer with some error messages?

@subhacom
Copy link
Author

subhacom commented Oct 26, 2017

Yes, I do get windows-nt for system-type.
Yes, el-get-build: magit buffer shows the same error:
install-info: No such file or directory for \Users\UserName\AppData\Roaming\.emacs.d\el-get\magit\Documentation\magit.info

And indeed, there is no magit.info in "\Users\UserName\AppData\Roaming.emacs.d\el-get\magit\Documentation"

@npostavs
Copy link
Collaborator

npostavs commented Oct 26, 2017

Oh, right, el-get tries to install info if you have install-info in PATH, but the w32 build recipe doesn't create the .info file (it assumes there is no makeinfo).

You can add (:name magit :info nil) to your el-get-sources to prevent .info installation, or (:name magit :build/windows-nt nil) to use the standard build recipe which should create the .info file, assuming you have make and makeinfo installed.

@subhacom
Copy link
Author

This entry in my .emacs worked: (add-to-list 'el-get-sources '(:name magit :info nil))
I guessed you meant :info instead of :documentation.
Thank you for the help.

@npostavs
Copy link
Collaborator

I guessed you meant :info instead of :documentation.

Oops! Yeah, got confused, :info is correct.

@npostavs npostavs changed the title Error installing magit Error installing magit (w32, makeinfo installed, fails to create magit.info) Jan 17, 2018
kiririmode added a commit to kiririmode/dotfiles that referenced this issue Aug 18, 2018
when installing magit, info file of magit does not exist and error raised.
This is an resolved issue (see dimitri/el-get#2574)
but I cannot resolved in my environment.
uraw pushed a commit to uraw/dotfiles that referenced this issue Dec 24, 2021
LefterisJP added a commit to LefterisJP/el-get that referenced this issue Apr 22, 2022
Hey guys I tried to install magit in a new system via el-get and I kept getting an error. that magit can't find magit.info. Following hints from this: dimitri#2574 I removed Documentation from `:info` to `nil` and it now works.

I am not sure if this is an error in the recipe or something I do not understand about how it should work, but I am opening a PR to gather some feedback
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants