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

Cant build in my school #28749

Closed
dxrxbxk opened this issue May 14, 2024 · 5 comments
Closed

Cant build in my school #28749

dxrxbxk opened this issue May 14, 2024 · 5 comments
Labels
build building and installing Neovim using the provided scripts

Comments

@dxrxbxk
Copy link

dxrxbxk commented May 14, 2024

Problem

when i try to build it gives this error:

CMake Error at /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:230 (message):
  Could NOT find Gettext (missing: GETTEXT_MSGMERGE_EXECUTABLE
  GETTEXT_MSGFMT_EXECUTABLE)
Call Stack (most recent call first):
  /usr/share/cmake-3.22/Modules/FindPackageHandleStandardArgs.cmake:594 (_FPHSA_FAILURE_MESSAGE)
  /usr/share/cmake-3.22/Modules/FindGettext.cmake:81 (FIND_PACKAGE_HANDLE_STANDARD_ARGS)
  src/nvim/po/CMakeLists.txt:1 (find_package)

The solution is quite easy the comment this line in src/nvim/po/CMakeLists.txt
the line find_package(Gettext REQUIRED) which happens to be the first line needs to be commented

Steps to reproduce

make

Expected behavior

compiling

Neovim version (nvim -v)

NVIM v0.10.0-dev-d2c9dc056

Vim (not Nvim) behaves the same?

no

Operating system/version

Ubuntu

Terminal name/version

Terminal

$TERM environment variable

xterm-256color

Installation

Ubuntu 22.03

@dxrxbxk dxrxbxk added the bug issues reporting wrong behavior label May 14, 2024
@clason
Copy link
Member

clason commented May 14, 2024

But it is; it's required to compile a (fully) working Neovim.

@clason clason removed the bug issues reporting wrong behavior label May 14, 2024
@dundargoc
Copy link
Member

Ubuntu 22.03

Is this even a real ubuntu version? Googling gives "did you mean ubuntu 22.04".

@dundargoc dundargoc added the needs:response waiting for reply from the author label May 14, 2024
@zeertzjq
Copy link
Member

Did you follow the instructions at https://github.com/neovim/neovim/blob/master/BUILD.md#ubuntu--debian?

@justinmk
Copy link
Member

The only reason this issue is still open is because it originally asked:

Why is the REQUIRED package not required to build the program ?

The answer (which is just a detail of our build system) is:

  1. REQUIRED is the best way to get useful messages from cmake if we can't find a library that we want to use
  2. For this particular case, gettext is needed to provide translations. That's not strictly necessary to build nvim, but it is a basic feature that we support so of course we need to mark it as required.

For your particular case, as @zeertzjq mentioned you need to install the gettext package on your system. As documented.

@justinmk justinmk closed this as not planned Won't fix, can't repro, duplicate, stale May 15, 2024
@justinmk justinmk added the build building and installing Neovim using the provided scripts label May 15, 2024
@dxrxbxk
Copy link
Author

dxrxbxk commented May 15, 2024

Well i forgot to say that gettext is already installed

@github-actions github-actions bot removed the needs:response waiting for reply from the author label May 15, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build building and installing Neovim using the provided scripts
Projects
None yet
Development

No branches or pull requests

5 participants