月別アーカイブ: 2013年4月

MySQLインストール

brewさん強力です。瞬殺で終了

lion:apache2 jun$ brew install mysql

Warning: Your Xcode (4.6) is outdated

Please install Xcode 4.6.1.

Warning: It appears you have MacPorts or Fink installed.

Software installed with other package managers causes known problems for

Homebrew. If a formula fails to build, uninstall MacPorts/Fink and try again.

==> Downloading https://downloads.sf.net/project/machomebrew/Bottles/mysql-5.6.1

######################################################################## 100.0%

==> Pouring mysql-5.6.10.mountain_lion.bottle.tar.gz

==> Caveats

Set up databases to run AS YOUR USER ACCOUNT with:

unset TMPDIR

mysql_install_db –verbose –user=`whoami` –basedir=”$(brew –prefix mysql)” –datadir=/usr/local/var/mysql –tmpdir=/tmp

To set up base tables in another folder, or use a different user to run

mysqld, view the help for mysql_install_db:

mysql_install_db –help

and view the MySQL documentation:

* http://dev.mysql.com/doc/refman/5.5/en/mysql-install-db.html

* http://dev.mysql.com/doc/refman/5.5/en/default-privileges.html

 

 

To run as, for instance, user “mysql“, you may need to `sudo`:

sudo mysql_install_db …options…

A “/etc/my.cnf” from another install may interfere with a Homebrew-built

server starting up correctly.

To connect:

mysql -uroot

To have launchd start mysql at login:

ln -sfv /usr/local/opt/mysql/*.plist ~/Library/LaunchAgents

Then to load mysql now:

launchctl load ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist

Or, if you don’t want/need launchctl, you can just run:

mysql.server start

==> Summary

🍺 /usr/local/Cellar/mysql/5.6.10: 9244 files, 351M

lion:apache2 jun$

野獣の怒り ボブサップ

野獣の怒り

野獣の怒り

格闘技、プロレス本はそれなりに読んだ自負はあるし本書に引用されている

言い訳だらけの著書を出して嬉しそうにしている谷川

の本も読んだが、他の本ではほとんど感じられないリアリティがこの本にはある。

新著だが平積みでは無く、ただ本棚に刺さっていただけの本だったが、正直もったいない。センセーショナルな帯を付けて営業すべし!

本書が素晴らしいのは、ただの暴露本では無く格闘家のその後の人生にもスポットを当てている点。

久々に読み応えありました。

Mac OS X Lion Server①brewインストール

久々更新。homebrewをインストールしてみた。オフィシャルはここ。

http://mxcl.github.com/homebrew/

インストールは以下で終了。ただ、Macにまだ慣れないので今ひとつわからない。。。

ruby -e “$(curl -fsSkL raw.github.com/mxcl/homebrew/go)”

Don’t run this as root!

bash-3.2# exit

exit

lion:apache2 jun$ ruby -e “$(curl -fsSkL raw.github.com/mxcl/homebrew/go)”

==> This script will install:

/usr/local/bin/brew

/usr/local/Library/…

/usr/local/share/man/man1/brew.1

Press ENTER to continue or any other key to abort

==> /usr/bin/sudo /bin/mkdir /usr/local

==> /usr/bin/sudo /bin/chmod g+rwx /usr/local

==> /usr/bin/sudo /usr/bin/chgrp admin /usr/local

==> Downloading and Installing Homebrew…

remote: Counting objects: 106921, done.

remote: Compressing objects: 100% (44546/44546), done.

remote: Total 106921 (delta 75965), reused 89557 (delta 61470)

Receiving objects: 100% (106921/106921), 16.02 MiB | 796 KiB/s, done.

Resolving deltas: 100% (75965/75965), done.

From https://github.com/mxcl/homebrew

* [new branch] master -> origin/master

HEAD is now at 6238a2b fann and wxmaxima: are now in homebrew/science

Warning: Install the “Command Line Tools for Xcode“: http://connect.apple.com

==> Installation successful!

You should run `brew doctor’ *before* you install anything.

Now type: brew help

lion:apache2 jun$

Wariningが出ているがひとまず気にせず進める。