先日買ったばかりのMacbookairにRictyを入れようとしたときに色々困ったことがあったので備忘録。
まず時系列で起こった事を並べてみると下のような感じになります。
ネットのあるブログを読みながらターミナルを使ってFontForgeをインストール
↓
そのブログを読み進めると、OSがLionの場合はこっちのコマンドだった!テヘペロ
↓
焦る俺
↓
ターミナルをよく見るとところどころwarningと出ている
↓
更に焦る俺、アンインストールしよう!と考える
↓
普通にアンインストールのコマンドを打つ。
↓
ファイルがないって言われたり、すでにインストールされているって言われたりする
↓
アンインストールでHomebrewのコマンドを使わなかったのが原因!!
ネットの情報をよく考えもせず機械的に作業してたつけ(´・ω・`)
その時のターミナルの一連のログ(名前がおかしいのは仕様です)
Last login: Sun Feb 12 23:51:34 on ttys000 futabooosMBAir:~ futabooo$ Last login: Mon Feb 13 00:05:05 on ttys000 futabooosmbair:~ futabooo$ brew install fontforge ==> Installing fontforge dependency: pkg-config ==> Downloading http://pkg-config.freedesktop.org/releases/pkg-config-0.25.tar.g ######################################################################## 100.0% ==> ./configure --disable-debug --prefix=/usr/local/Cellar/pkg-config/0.25 --wit ==> make ==> make check ==> make install Warning: m4 macros were installed to "share/aclocal". Homebrew does not append "/usr/local/share/aclocal" to "/usr/share/aclocal/dirlist". If an autoconf script you use requires these m4 macros, you'll need to add this path manually. ==> Summary /usr/local/Cellar/pkg-config/0.25: 9 files, 236K, built in 31 seconds ==> Installing fontforge dependency: gettext ==> Downloading http://ftpmirror.gnu.org/gettext/gettext-0.18.1.1.tar.gz ######################################################################## 100.0% ==> Downloading patches ######################################################################## 100.0% ######################################################################## 100.0% ==> Patching patching file gettext-tools/configure patching file gettext-tools/Makefile.in ==> ./configure --disable-debug --prefix=/usr/local/Cellar/gettext/0.18.1.1 --wi ==> make ==> make install ==> Caveats This formula is keg-only, so it was not symlinked into /usr/local. OS X provides the BSD gettext library and some software gets confused if both are in the library path. Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add its lib & include paths to your build variables: LDFLAGS -L/usr/local/Cellar/gettext/0.18.1.1/lib CPPFLAGS -I/usr/local/Cellar/gettext/0.18.1.1/include ==> Summary /usr/local/Cellar/gettext/0.18.1.1: 366 files, 13M, built in 3.4 minutes ==> Installing fontforge dependency: libffi ==> Downloading http://mirrors.kernel.org/sources.redhat.com/libffi/libffi-3.0.1 ######################################################################## 100.0% ==> Downloading patches ######################################################################## 100.0% ######################################################################## 100.0% ==> Patching patching file configure patching file configure ==> ./configure --prefix=/usr/local/Cellar/libffi/3.0.10 --disable-debug ==> make install ==> Caveats This formula is keg-only, so it was not symlinked into /usr/local. Mac OS X already provides this program and installing another version in parallel can cause all kinds of trouble. Some formulae require a newer version of libffi. Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add its lib & include paths to your build variables: LDFLAGS -L/usr/local/Cellar/libffi/3.0.10/lib CPPFLAGS -I/usr/local/Cellar/libffi/3.0.10/include ==> Summary /usr/local/Cellar/libffi/3.0.10: 12 files, 484K, built in 23 seconds ==> Installing fontforge dependency: glib ==> Downloading ftp://ftp.gnome.org/pub/gnome/sources/glib/2.30/glib-2.30.2.tar. ######################################################################## 100.0% ######################################################################## 100.0%==> Downloading patches ######################################################################## 100.0% ######################################################################## 100.0% ######################################################################## 100.0% ######################################################################## 100.0% ######################################################################## 100.0% ######################################################################## 100.0% ==> Patching patching file glib/gconvert.c patching file configure patching file glib-2.0.pc.in patching file glib/gunicollate.c patching file glib/gi18n.h patching file gio/xdgmime/xdgmime.c patching file gio/gdbusprivate.c ==> ./configure --disable-rebuilds --prefix=/usr/local/Cellar/glib/2.30.2 --disa ######################################################################## 100.0% ==> ed - config.h < config.h.ed ==> make ==> make install Warning: m4 macros were installed to "share/aclocal". Homebrew does not append "/usr/local/share/aclocal" to "/usr/share/aclocal/dirlist". If an autoconf script you use requires these m4 macros, you'll need to add this path manually. ==> Summary /usr/local/Cellar/glib/2.30.2: 390 files, 13M, built in 9.1 minutes ==> Installing fontforge dependency: pixman ==> Downloading http://cairographics.org/releases/pixman-0.24.2.tar.gz ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/pixman/0.24.2 --enable-gtk=no ==> make install /usr/local/Cellar/pixman/0.24.2: 10 files, 1.2M, built in 32 seconds ==> Installing fontforge dependency: cairo Warning: Formula will not build with LLVM, trying Clang ==> Downloading http://www.cairographics.org/releases/cairo-1.10.2.tar.gz ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/cairo/1.10.2 --with-x --enable-xcb ^[==> make install ==> Caveats This formula is keg-only, so it was not symlinked into /usr/local. Mac OS X already provides this program and installing another version in parallel can cause all kinds of trouble. The Cairo provided by Leopard is too old for newer software to link against. Generally there are no consequences of this for you. If you build your own software and it requires this formula, you'll need to add its lib & include paths to your build variables: LDFLAGS -L/usr/local/Cellar/cairo/1.10.2/lib CPPFLAGS -I/usr/local/Cellar/cairo/1.10.2/include ==> Summary /usr/local/Cellar/cairo/1.10.2: 99 files, 6.9M, built in 100 seconds ==> Installing fontforge dependency: pango ==> Downloading http://ftp.gnome.org/pub/GNOME/sources/pango/1.28/pango-1.28.4.t ######################################################################## 100.0% ==> Downloading patches ######################################################################## 100.0% ==> Patching patching file modules/hebrew/hebrew-shaper.c patching file pango/fonts.c patching file pango/pango-attributes.c patching file pango/pango-attributes.h patching file pango/pangocairo-context.c patching file pango/pango-context.c patching file pango/pango-context.h patching file pango/pango-font.h patching file pango/pango-fontmap.c patching file pango/pangoft2.c patching file pango/pango-language.c patching file pango/pango-language.h patching file pango/pango-layout.c patching file pango/pango-layout.h patching file pango/pango-ot-ruleset.c patching file pango/pango-renderer.c patching file pango/pango-renderer.h patching file pango/pango-script.c patching file pango/pango-script.h patching file pango/pango-utils.c patching file pango/pango-utils.h patching file pango/pangox-fontmap.c ==> ./configure --disable-debug --prefix=/usr/local/Cellar/pango/1.28.4 --enable ==> make ==> make install /usr/local/Cellar/pango/1.28.4: 130 files, 3.8M, built in 69 seconds ==> Installing fontforge dependency: potrace ==> Downloading http://potrace.sourceforge.net/download/potrace-1.10.tar.gz ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/potrace/1.10 --mandir=/usr/local/Cell ==> make install /usr/local/Cellar/potrace/1.10: 10 files, 272K, built in 15 seconds ==> Installing fontforge Warning: Formula will not build with LLVM, trying Clang ==> Downloading http://downloads.sourceforge.net/project/fontforge/fontforge-sou ######################################################################## 100.0% ==> ./configure --prefix=/usr/local/Cellar/fontforge/20110222 --enable-double -- ==> make ==> make install ==> Caveats fontforge is an X11 application. To install the Mac OS X wrapper application run: brew linkapps or: ln -s /usr/local/Cellar/fontforge/20110222/FontForge.app /Applications ==> Summary /usr/local/Cellar/fontforge/20110222: 270 files, 15M, built in 107 seconds futabooosmbair:~ futabooo$ fontforge -version Copyright (c) 2000-2011 by George Williams. Executable based on sources from 13:48 GMT 22-Feb-2011-D. Library based on sources from 13:48 GMT 22-Feb-2011. fontforge 20110222 libfontforge 20110222 futabooosmbair:~ futabooo$ brew install fontforge --use -clang Error: fontforge already installed Try: brew upgrade fontforge futabooosmbair:~ futabooo$ brew upgrade fontforge --use -clang Error: fontforge already upgraded futabooosmbair:~ futabooo$ sudo rm -rf /usr/local/bin/{fontforge,sfddiff} Password: futabooosmbair:~ futabooo$ cd futabooosmbair:~ futabooo$ pwd /Users/futabooo futabooosmbair:~ futabooo$ cd /Users/futabooo/ricty futabooosmbair:ricty futabooo$ sh ricty_generator.sh Inconsolata.otf Migu-1M-regular.ttf Migu-1M-bold.ttf Ricty Generator 3.1.3 Author: Yasunori Yusa <lastname at save dot sys.t.u-tokyo.ac.jp> This script is for generating ``Ricty'' font from Inconsolata and Migu 1M. It requires 2-5 minutes to generate Ricty. Owing to SIL Open Font License Version 1.1 section 5, it is PROHIBITED to distribute the generated font. Error: fontforge command not found futabooosmbair:ricty futabooo$ cd /User/futabooo -bash: cd: /User/futabooo: No such file or directory futabooosmbair:ricty futabooo$ cd /Users/futabooo futabooosmbair:~ futabooo$ sh ricty_generator.sh Inconsolata.otf Migu-1M-regular.ttf Migu-1M-bold.ttf sh: ricty_generator.sh: No such file or directory futabooosmbair:~ futabooo$ sh ricty/ricty_generator.sh Inconsolata.otf Migu-1M-regular.ttf Migu-1M-bold.ttf Ricty Generator 3.1.3 Author: Yasunori Yusa <lastname at save dot sys.t.u-tokyo.ac.jp> This script is for generating ``Ricty'' font from Inconsolata and Migu 1M. It requires 2-5 minutes to generate Ricty. Owing to SIL Open Font License Version 1.1 section 5, it is PROHIBITED to distribute the generated font. Error: fontforge command not found futabooosmbair:~ futabooo$ sh ricty/ricty_generator.sh Inconsolata.otf Migu-1M-regular.ttf Migu-1M-bold.ttf Ricty Generator 3.1.3 Author: Yasunori Yusa <lastname at save dot sys.t.u-tokyo.ac.jp> This script is for generating ``Ricty'' font from Inconsolata and Migu 1M. It requires 2-5 minutes to generate Ricty. Owing to SIL Open Font License Version 1.1 section 5, it is PROHIBITED to distribute the generated font. Error: fontforge command not found futabooosmbair:~ futabooo$ fontforge -version -bash: /usr/local/bin/fontforge: No such file or directory futabooosmbair:~ futabooo$ fontforge -version-bash: /usr/local/bin/fontforge: No such file or directory futabooosmbair:~ futabooo$ brew install fontforge --use -clang Error: fontforge already installed Try: brew upgrade fontforge futabooosmbair:~ futabooo$ fontforge -version -bash: /usr/local/bin/fontforge: No such file or directory futabooosmbair:~ futabooo$ exit