Linuxbrew / brew

:beer::penguin: The Homebrew package manager for Linux
https://linuxbrew.sh
BSD 2-Clause "Simplified" License
2.66k stars 237 forks source link

systemd: failed to build on CentOS release 6.9: error: gcrypt.h: No such file or directory #710

Closed hqax closed 6 years ago

hqax commented 6 years ago

I am not able to build systemd with LinuxBrew. I get the error: src/shared/gcrypt-util.c:23:20: fatal error: gcrypt.h: No such file or directory compilation terminated.

gist with debug information, output from brew --config, brew doctor, etc: error building systemd

sjackman commented 6 years ago

Please surround copied-and-pasted logs with triple back ticks. See GitHub Help / Quoting Code.

sjackman commented 6 years ago

gcrypt.h is provided by libgcrypt. Perhaps it should be a dependency of systemd.

sjackman commented 6 years ago

Consider installing Linuxbrew in /home/linuxbrew/.linuxbrew/ if possible so that you can use precompiled binary packages (known as bottles) for non-relocatable formula like systemd. Another possible workaround for you is brew install --force-bottle systemd, but no promises.

If it's an option for you, you could open a ticket with your information systems department to ask that they create a linuxbrew role account with home directory /home/linuxbrew.

The precompiled binary bottles of non-relocatable bottles can only be used if you install in /home/linuxbrew/.linuxbrew, otherwise they have to be built from source. See the documentation below. On macOS the default installation directory is /usr/local. On Linux the default installation directory is /home/linuxbrew/.linuxbrew.

sjackman commented 6 years ago

This issue was moved to Linuxbrew/homebrew-core#7759