infomation
カテゴリー
- GameとEmuのごった煮 (6)
- Webサイト制作の心得とテク (11)
- Windowsの小技・裏技 (10)
- くだらないもの (2)
- すこし黒い話 (11)
- ツール個別紹介 (34)
- ツール特選 (5)
- 動画のエンコードなどアレコレ (2)
- 半日記 (3)
- 画像編集に関するTips (10)
- 自作物 (12)
アーカイブ
相互リンクRSS
- ORBIT SPACE:
- 裏技shop DD:5/18 21:00
- フリーソフトの樹:5/18 11:04
- 二十歳街道まっしぐら:5/18 10:00
- (仮):5/17 22:00
- kurox.net:5/12 01:30
- 花華花だよりプラスα:2/25 00:45
- 恐龍の卵:2/2 15:22
- なんでもブログΣ:12/18 14:43
- NETAZINE:12/3 16:25
-
Lionをクリーンインストールしたらhomebrewでどハマりした話
結論から書くと
- homebrewインストール前に
sudo chgrp staff /usr/local/と/usr/localの権限を変更しておく - Xcode Commandline toolsは必ずインストールしておく
の2点
一つ目はものが分かってればすぐ解決できそうな感じだけど自分にはハードルが高かった。
二つ目はXcode4.3になった時に発生した問題とかで少し前に「homebrew使うだけならCommandline toolsだけで良いヨー」とか書かれた記事を目にしていたけどまさか必要条件とは。しかし二つ目は最近になって発生した問題だからいいとしてどうして一つ目を以前回避できてたのかが分からん……
参考
- Xcode 4.3 と Mac Ports とか HomeBrew とか | もぐログ
- Xcodeが4.3になったのでxcode-selectのファルダパスを変更しよう | CaCi – Takahiro’s Kitchen
- homeblewでパーミッションにちょっとはまる « kwLog
既に上で詳しく書かれているけど、
Error: Could not create /usr/local/Cellarとかから検索される方がいるかもしれないので一応記事にしてみた。苦難の跡
タグ: homebrew, mac, xcode$ sudo chown -R `whoami` /usr/local/ Password: $ brew install git Error: Could not create /usr/local/Cellar Check you have permission to write to /usr/local $ sudo chmod 777 /usr/local/ $ brew install git /usr/local/Library/Homebrew/global.rb:43: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /usr/local/bin/brew:74: warning: Insecure world writable dir /usr/local in PATH, mode 040777 Error: Could not create /usr/local/Cellar Check you have permission to write to /usr/local $ sudo chgrp staff /usr/local/ Password: $ brew install git /usr/local/Library/Homebrew/global.rb:43: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /usr/local/bin/brew:74: warning: Insecure world writable dir /usr/local in PATH, mode 040777 Error: Could not create /usr/local/Cellar Check you have permission to write to /usr/local $ /usr/bin/ruby -e "$(curl -fsSL https://raw.github.com/gist/323731)" -e:66: warning: Insecure world writable dir /usr/local in PATH, mode 040777 -e:77: warning: Insecure world writable dir /usr/local in PATH, mode 040777 ==> This script will install: /usr/local/bin/brew /usr/local/Library/Formula/... /usr/local/Library/Homebrew/... Press enter to continue -e:32: warning: Insecure world writable dir /usr/local in PATH, mode 040777 ==> Downloading and Installing Homebrew... ==> Installation successful! Now type: brew help $ brew install git /usr/local/Library/Homebrew/global.rb:43: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /usr/local/bin/brew:74: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /usr/local/Library/Homebrew/build.rb:7: warning: Insecure world writable dir /usr/local in PATH, mode 040777 ==> Downloading http://git-core.googlecode.com/files/git-1.7.9.3.tar.gz ######################################################################## 100.0% ==> make prefix=/usr/local/Cellar/git/1.7.9.3 CC=/Applications/Xcode.app/Content GIT_VERSION = 1.7.9.3 * new build flags or prefix * new link flags ./generate-cmdlist.sh > common-cmds.h+ && mv common-cmds.h+ common-cmds.h /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o hex.o -c -MF ./.depend/hex.o.d -MMD -MP -Os -w -pipe -march=native -Qunused-arguments -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM hex.c /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o ident.o -c -MF ./.depend/ident.o.d -MMD -MP -Os -w -pipe -march=native -Qunused-arguments -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM ident.c /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o kwset.o -c -MF ./.depend/kwset.o.d -MMD -MP -Os -w -pipe -march=native -Qunused-arguments -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM kwset.c In file included from ident.c:8: In file included from ./cache.h:4: ./git-compat-util.h:93:10: fatal error: 'unistd.h' file not found In file included from hex.c:1: In file included from ./cache.h:4: ./git-compat-util.h:93:10: fatal error: 'unistd.h' file not found In file included from kwset.c:37: In file included from ./cache.h:4: ./git-compat-util.h:93:10: fatal error: 'unistd.h' file not found #include <unistd.h> ^#include <unistd.h> ^ #include <unistd.h> ^ /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang -o levenshtein.o -c -MF ./.depend/levenshtein.o.d -MMD -MP -Os -w -pipe -march=native -Qunused-arguments -I. -DUSE_ST_TIMESPEC -DNO_GETTEXT -DHAVE_DEV_TTY -DSHA1_HEADER='<openssl/sha.h>' -DNO_MEMMEM levenshtein.c 1 error generated. make: *** [hex.o] Error 1 make: *** Waiting for unfinished jobs.... 1 error generated. make: *** [ident.o] Error 1 1 error generated. make: *** [kwset.o] Error 1 In file included from levenshtein.c:1: In file included from ./cache.h:4: ./git-compat-util.h:93:10: fatal error: 'unistd.h' file not found #include <unistd.h> ^ 1 error generated. make: *** [levenshtein.o] Error 1 ==> Exit Status: 2 http://github.com/mxcl/homebrew/blob/master/Library/Formula/git.rb#L47 ==> Environment HOMEBREW_VERSION: 0.8.1 HEAD: (none) HOMEBREW_PREFIX: /usr/local HOMEBREW_CELLAR: /usr/local/Cellar Hardware: quad-core 64-bit sandybridge OS X: 10.7.3 Kernel Architecture: x86_64 Xcode: 3.2.2 GCC-4.0: N/A GCC-4.2: N/A LLVM: build 2336 Clang: N/A MacPorts or Fink? false X11: /usr/X11 System Ruby: 1.8.7-249 /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby Which Perl: /usr/bin/perl Which Python: /usr/bin/python Which Ruby: /usr/bin/ruby => /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby ==> Build Flags CC: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CXX: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang++ => /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang LD: /Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CFLAGS: -Os -w -pipe -march=native -Qunused-arguments CXXFLAGS: -Os -w -pipe -march=native -Qunused-arguments MAKEFLAGS: -j4 Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.9.3 CC=/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/bin/clang CFLAGS=-Os\ -w\ -pipe\ -march=native\ -Qunused-arguments LDFLAGS= install These existing issues may help you: https://github.com/mxcl/homebrew/issues/9023 https://github.com/mxcl/homebrew/issues/9618 https://github.com/mxcl/homebrew/issues/10225 https://github.com/mxcl/homebrew/issues/10544 Otherwise, please report the bug: https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue $ xcode-select -print-path /Developer $ sudo xcode-select -switch /Applications/Xcode.app Password: $ xcode-select -print-path /Applications/Xcode.app/Contents/Developer $ brew install git /usr/local/Library/Homebrew/global.rb:43: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /usr/local/bin/brew:74: warning: Insecure world writable dir /usr/local in PATH, mode 040777 /usr/local/Library/Homebrew/build.rb:7: warning: Insecure world writable dir /usr/local in PATH, mode 040777 ==> Downloading http://git-core.googlecode.com/files/git-1.7.9.3.tar.gz File already downloaded in /Users/***/Library/Caches/Homebrew (中略) Error: Failed executing: make prefix=/usr/local/Cellar/git/1.7.9.3 CC=/usr/bin/xcrun\ clang CFLAGS=-Os\ -w\ -pipe\ -march=native\ -Qunused-arguments LDFLAGS= install These existing issues may help you: https://github.com/mxcl/homebrew/issues/9023 https://github.com/mxcl/homebrew/issues/9618 https://github.com/mxcl/homebrew/issues/10225 https://github.com/mxcl/homebrew/issues/10544 Otherwise, please report the bug: https://github.com/mxcl/homebrew/wiki/checklist-before-filing-a-new-issue- 未分類
- 2012-03-08
- homebrewインストール前に
-
Bloggerがゆっくりしかし確かに成長していた件
はてなブログが一般公開されたようなのでアカウントを取って見ました。使った感じとしてははてなダイアリー以上にテンプレの自由度は低めですがその分シンプルでこのままその良いところを伸ばしてくれればと思います。
で割りと好感触だったので他のサービスとの比較がしてみたくなりまして、LivedoorBlog、SeesaaBlog、FC2Blog、Blogger等も久しぶりに触って見た所、Bloggerが思いの外使えるようになっていたので、今回機能紹介などをしてみようかな、と。
自分がBloggerを最後まともに触ったのは確か2008年に入る前だったと思います、それ以降はずっとWordpressにどっぷりだったので。その頃はFC2blogが広告もなく、ブログサービスの中では一番質が高かったと記憶していますが、少しずつ改良進歩が重ねられ今となっては機能的にもFC2blogや今人気のLivedoorBlogとも引けを取らない出来になっていると感じます。
追記:今からブログを始める人に、僕が「blogger」をすすめるワケ | 想造ノートおっとつい最近似た様な記事がヒットしてたのか……出すタイミング間違えたかも…
タグ: blogger- 未分類
- 2012-01-28
-
「画像を使わずに見出しを水平線で挟むCSS小技」をspan無しで実現してみた
元記事:画像を使わずに見出しを水平線で挟むCSS小技 – かちびと. net
何となくspanを使うのが気に入らなかったのでちょっと試してみた。
<html> <style> h1{ margin:0; padding:0; font-family: 'Sorts Mill Goudy',serif; line-height: 1.5; font-size:30px; } p{ text-align:left; } html,body{ width:100%; padding:0; margin:0; } div#body1{ text-align: center; position:relative; } #body1 h1 { background: none repeat scroll 50% 50% white; display:inline-block; text-align: center; padding:0px 20px; } #body1 h1:before { border-top: 1px solid black; content: ""; display: block; margin: 23px 0 0; position: absolute; left:0; width: 100%; z-index: -1; } #body2 h1{ position:relative; text-align:center; } #body2 h1:before { border-top: 1px solid black; content: ""; display: block; margin: 23px 0 0; position: absolute; width: 100%; z-index: -1; } #body2 h1:first-line { background:white; } </style> <body> <div id="body1"> <h1> Kachibito </h1> <p>Applicake chocolate cake carrot cake sweet roll icing marshmallow powder cake. Biscuit caramels faworki donut jujubes. Toffee dragée bonbon. Soufflé cookie topping powder jelly cookie I love. I love chocolate bar bonbon carrot cake chocolate bar caramels pastry. Pie I love candy applicake bonbon lemon drops. Dragée sweet roll cupcake I love gingerbread danish croissant cotton candy jelly-o. Topping croissant chocolate marshmallow oat cake I love. Pastry chocolate cake pudding cookie dessert marzipan topping wafer I love. Jujubes apple pie sugar plum marzipan I love dragée candy soufflé cotton candy. Sugar plum carrot cake liquorice faworki marzipan tiramisu. Wafer gummies croissant sweet I love. Dessert cake I love liquorice halvah halvah. Tootsie roll candy canes carrot cake chocolate bar gummi bears powder pie cheesecake carrot cake. Oat cake donut gummies soufflé. Sweet sesame snaps cake chupa chups caramels chupa chups.</p> </div> <div id="body2"> <h1> Kachibito </h1> <p>Applicake chocolate cake carrot cake sweet roll icing marshmallow powder cake. Biscuit caramels faworki donut jujubes. Toffee dragée bonbon. Soufflé cookie topping powder jelly cookie I love. I love chocolate bar bonbon carrot cake chocolate bar caramels pastry. Pie I love candy applicake bonbon lemon drops. Dragée sweet roll cupcake I love gingerbread danish croissant cotton candy jelly-o. Topping croissant chocolate marshmallow oat cake I love. Pastry chocolate cake pudding cookie dessert marzipan topping wafer I love. Jujubes apple pie sugar plum marzipan I love dragée candy soufflé cotton candy. Sugar plum carrot cake liquorice faworki marzipan tiramisu. Wafer gummies croissant sweet I love. Dessert cake I love liquorice halvah halvah. Tootsie roll candy canes carrot cake chocolate bar gummi bears powder pie cheesecake carrot cake. Oat cake donut gummies soufflé. Sweet sesame snaps cake chupa chups caramels chupa chups.</p> </div> </body> </html>2パターン。1は割りとオーソドックスな感じ、外にtext-align:center:とposition:relative;が必要、だけど元ネタと同じように自由にデザインできる。もう片方は:first-line擬似要素をspanの代わりに使って実現してある。paddingが使えないのでデザイン的に微妙。
どちらも;before擬似要素を使ってあるのでIE6-7非対応。もうちょっとうまくやれる気がするけど今のところ思い浮かばない。
結論:おとなしくjQueryを使おう。
タグ: css- Webサイト制作の心得とテク
- 2011-11-08
- 次のページへ »
