Brauen oder toasten?

Posted by daniel on Wednesday, December 17, 2014

Eher durch Zufall sind wir darüber gestolpert, dass das bei den Mac-Usern in unserem Team sehr geschätzte Tool homebrew nun auch einen Linux-Port hat. Wer Homebrew also bereits auf seinem Mac einsetzt, muss sich nun nicht noch zusätzlich mit toast befassen, um Software zu installieren, die bei uns nicht out of the box oder in einer benötigten Version installiert ist.

In dem Zuge haben wir uns dann gedacht, dass es ja kaum schaden kann, das gleich mal bei uns im Wiki zu dokumentieren. Es sei aber noch darauf hingewiesen, dass wir Homebrew noch nicht als offizielles Uberspace-Feature betrachten und es daher noch nicht auf unseren Hosts bereitstellen. Die Installation gestaltet sich aber als recht einfach.

Das Brauen Die Installation von Tools geht dann erschreckend leicht, hier mal am Beispiel von imagemagic, was von CentOS leider nur in einer recht betagten Version zur Verfügung gestellt wird.

[moritz@andromeda ~]$ brew install imagemagick
==> Installing dependencies for imagemagick: libtool, pkg-config, jpeg, libpng, freetype
==> Installing imagemagick dependency: libtool
==> Downloading http://ftpmirror.gnu.org/libtool/libtool-2.4.2.tar.gz
######################################################################## 100.0%
==> Patching
patching file libltdl/config/ltmain.sh
patching file configure
patching file libltdl/configure
patching file libltdl/m4/libtool.m4
==> ./configure --prefix=/home/moritz/.linuxbrew/Cellar/libtool/2.4.2 --program-prefix=g --enable-ltdl-install
==> make install
==> Caveats
In order to prevent conflicts with Apple's own libtool we have prepended a "g"
so, you have instead: glibtool and glibtoolize.
==> Summary
/home/moritz/.linuxbrew/Cellar/libtool/2.4.2: 69 files, 2.7M, built in 34 seconds
==> Installing imagemagick dependency: pkg-config
==> Downloading http://pkgconfig.freedesktop.org/releases/pkg-config-0.28.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/home/moritz/.linuxbrew/Cellar/pkg-config/0.28 --disable-host-tool --with-internal-glib
==> make
==> make check
==> make install
/home/moritz/.linuxbrew/Cellar/pkg-config/0.28: 10 files, 648K, built in 37 seconds
==> Installing imagemagick dependency: jpeg
==> Downloading http://www.ijg.org/files/jpegsrc.v8d.tar.gz
######################################################################## 100.0%
==> ./configure --prefix=/home/moritz/.linuxbrew/Cellar/jpeg/8d
==> make install
/home/moritz/.linuxbrew/Cellar/jpeg/8d: 18 files, 804K, built in 10 seconds
==> Installing imagemagick dependency: libpng
==> Downloading     https://downloads.sf.net/project/libpng/libpng16/1.6.15/libpng-1.6.15.tar.xz
######################################################################## 100.0%
==> ./configure --disable-silent-rules --prefix=/home/moritz/.linuxbrew/Cellar/libpng/1.6.15
==> make
==> make test
==> make install
/home/moritz/.linuxbrew/Cellar/libpng/1.6.15: 17 files, 1.3M, built in 33 seconds
==> Installing imagemagick dependency: freetype
==> Downloading https://downloads.sf.net/project/freetype/freetype2/2.5.3/freetype-2.5.3.tar.bz2
######################################################################## 100.0%
==> ./configure --prefix=/home/moritz/.linuxbrew/Cellar/freetype/2.5.3_1 --without-harfbuzz
==> make
==> make install
/home/moritz/.linuxbrew/Cellar/freetype/2.5.3_1: 60 files, 2.7M, built in 11 seconds
==> Installing imagemagick
==> Downloading http://www.imagemagick.org/download/releases/ImageMagick-6.8.9-8.tar.xz
######################################################################## 100.0%
==> ./configure --disable-osx-universal-binary --prefix=/home/moritz/.linuxbrew/Cellar/imagemagick/6.8.9-8 --ena
==> make install
/home/moritz/.linuxbrew/Cellar/imagemagick/6.8.9-8: 1437 files, 22M, built in 106 seconds

Wir behalten dann mal im Auge, inwieweit Homebrew auf Anklang stößt.

Prost.