CentOS6 - Linuxbrew/brew GitHub Wiki
Install Linuxbrew on CentOS 6 using Docker
docker build -t linuxbrew-centos6 https://raw.githubusercontent.com/Linuxbrew/docker/master/centos6/Dockerfile
docker run -it --name=linuxbrew-centos6 linuxbrew-centos6
Install Linuxbrew on CentOS 6 with sudo
Follow the Linuxbrew installation instructions.
Install Linuxbrew on CentOS 6 without sudo
Building glibc 2.23 requires GCC 4.7 or later, and CentOS 6 provides GCC 4.4, so build GCC from source before building glibc.
sh -c "$(curl -fsSL https://raw.githubusercontent.com/Linuxbrew/install/master/install.sh)"
PATH=$HOME/.linuxbrew/bin:$HOME/.linuxbrew/sbin:$PATH
HOMEBREW_NO_AUTO_UPDATE=1 HOMEBREW_BUILD_FROM_SOURCE=1 brew install gcc --without-glibc
HOMEBREW_NO_AUTO_UPDATE=1 brew install glibc
# If encountering locale errors in postinstall of glibc, run
# HOMEBREW_NO_AUTO_UPDATE=1 LC_CTYPE=en_GB.UTF-8 brew postinstall glibc
# see issue - https://github.com/Linuxbrew/legacy-linuxbrew/issues/929
HOMEBREW_NO_AUTO_UPDATE=1 brew remove gcc
HOMEBREW_NO_AUTO_UPDATE=1 brew install gcc
Issues with old ruby or git
If you are getting syntax errors. Install the portable-ruby first.
brew vendor-install ruby
You might also see git errors complaining about error: unknown option `list'
. In which case you'll need to run the following command (this is a workaround. hopefully someone will fix this).
sed -i s/--list/-l/ "$(brew --repository)/Library/Homebrew/cmd/update.sh"
Generate locale
After above installation, there are only two default locales: C
and POSIX
.
Use the following command to generate more locales:
localedef -v -c -i en_US -f UTF-8 en_US.UTF-8