This repository has been archived by the owner on Mar 12, 2019. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 236
CentOS6
carlorosati edited this page Feb 6, 2018
·
11 revisions
docker build -t linuxbrew-centos6 https://raw.githubusercontent.com/Linuxbrew/docker/master/centos6/Dockerfile
docker run -it --name=linuxbrew-centos6 linuxbrew-centos6
Follow the Linuxbrew installation instructions.
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
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 cd to the brew directory and run the following command (this is a workaround. hopefully can fix this).
sed -i s/--list/-l/ ./Library/Homebrew/cmd/update.sh
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