Skip to content
This repository has been archived by the owner on Mar 12, 2019. It is now read-only.

CentOS6

Wush Wu edited this page Oct 20, 2017 · 11 revisions

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
HOMEBREW_NO_AUTO_UPDATE=1 brew remove gcc
HOMEBREW_NO_AUTO_UPDATE=1 brew install gcc

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
Clone this wiki locally