progden:~ $brew install pure-ftpd
dyld: DYLD_ environment variables being ignored because main executable (/usr/bin/sudo) is setuid or setgid
==> Downloading http://download.pureftpd.org/pub/pure-ftpd/releases/pure-ftpd-1.
######################################################################## 100.0%
==> ./configure --prefix=/usr/local/Cellar/pure-ftpd/1.0.35 --mandir=/usr/local/
==> make install
==> Caveats
To have launchd start pure-ftpd at login:
ln -sfv /usr/local/opt/pure-ftpd/*.plist ~/Library/LaunchAgents
Then to load pure-ftpd now:
launchctl load ~/Library/LaunchAgents/homebrew.mxcl.pure-ftpd.plist
Or, if you don't want/need launchctl, you can just run:
pure-ftpd
/usr/local/Cellar/pure-ftpd/1.0.35: 26 files, 608K, built in 29 seconds
2013年6月26日 星期三
2013年6月11日 星期二
Homebrew安裝Mysql
brew install mysql
cp /usr/local/Cellar/mysql/5.5.28/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
/usr/local/Cellar/mysql/5.5.28/bin/mysqladmin -u root -h Denniss-MacBook-Pro.local password 'password'
mysql.server start
mysql -u root -p
cp /usr/local/Cellar/mysql/5.5.28/homebrew.mxcl.mysql.plist ~/Library/LaunchAgents/
launchctl load -w ~/Library/LaunchAgents/homebrew.mxcl.mysql.plist
unset TMPDIR
mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
/usr/local/Cellar/mysql/5.5.28/bin/mysqladmin -u root -h Denniss-MacBook-Pro.local password 'password'
mysql.server start
mysql -u root -p
2013年6月6日 星期四
Homebrew安裝多個版本程式 與 建立link
1. 檢視所有的版本
2. 依照版本安裝更新程式
3. 重新建立連結
brew update
brew versions FORMULA
#move to Homebrew's install path
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb
brew unlink FORMULA(option)
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb(??)
Ex.
$brew update
$brew versions tomcat
7.0.32 git checkout 55cfbdf /usr/local/Library/Formula/tomcat.rb
7.0.30 git checkout ec5e2ca /usr/local/Library/Formula/tomcat.rb
7.0.29 git checkout 1683f9e /usr/local/Library/Formula/tomcat.rb
7.0.28 git checkout 3293f97 /usr/local/Library/Formula/tomcat.rb
7.0.27 git checkout 82498e5 /usr/local/Library/Formula/tomcat.rb
7.0.26 git checkout ee016a5 /usr/local/Library/Formula/tomcat.rb
7.0.25 git checkout 48c1c63 /usr/local/Library/Formula/tomcat.rb
7.0.23 git checkout 09e1800 /usr/local/Library/Formula/tomcat.rb
7.0.21 git checkout 22d9df7 /usr/local/Library/Formula/tomcat.rb
7.0.20 git checkout f857eca /usr/local/Library/Formula/tomcat.rb
7.0.19 git checkout 548514e /usr/local/Library/Formula/tomcat.rb
7.0.16 git checkout 14e4db3 /usr/local/Library/Formula/tomcat.rb
7.0.14 git checkout bdd4756 /usr/local/Library/Formula/tomcat.rb
7.0.6 git checkout 0476235 /usr/local/Library/Formula/tomcat.rb
6.0.26 git checkout 9e18876 /usr/local/Library/Formula/tomcat.rb
2.
cd `brew --prefix`
2. 依照版本安裝更新程式
3. 重新建立連結
brew update
brew versions FORMULA
#move to Homebrew's install path
cd `brew --prefix`
git checkout HASH Library/Formula/FORMULA.rb
brew unlink FORMULA(option)
brew install FORMULA
brew switch FORMULA VERSION
git checkout -- Library/Formula/FORMULA.rb(??)
Ex.
$brew update
$brew versions tomcat
7.0.32 git checkout 55cfbdf /usr/local/Library/Formula/tomcat.rb
7.0.30 git checkout ec5e2ca /usr/local/Library/Formula/tomcat.rb
7.0.29 git checkout 1683f9e /usr/local/Library/Formula/tomcat.rb
7.0.28 git checkout 3293f97 /usr/local/Library/Formula/tomcat.rb
7.0.27 git checkout 82498e5 /usr/local/Library/Formula/tomcat.rb
7.0.26 git checkout ee016a5 /usr/local/Library/Formula/tomcat.rb
7.0.25 git checkout 48c1c63 /usr/local/Library/Formula/tomcat.rb
7.0.23 git checkout 09e1800 /usr/local/Library/Formula/tomcat.rb
7.0.21 git checkout 22d9df7 /usr/local/Library/Formula/tomcat.rb
7.0.20 git checkout f857eca /usr/local/Library/Formula/tomcat.rb
7.0.19 git checkout 548514e /usr/local/Library/Formula/tomcat.rb
7.0.16 git checkout 14e4db3 /usr/local/Library/Formula/tomcat.rb
7.0.14 git checkout bdd4756 /usr/local/Library/Formula/tomcat.rb
7.0.6 git checkout 0476235 /usr/local/Library/Formula/tomcat.rb
6.0.26 git checkout 9e18876 /usr/local/Library/Formula/tomcat.rb
2.
cd `brew --prefix`
訂閱:
文章 (Atom)