顯示具有 mac OS 標籤的文章。 顯示所有文章
顯示具有 mac OS 標籤的文章。 顯示所有文章

2015/09/18

mac下安装gdb


1. 採用HomeBrew安裝,如何安裝HomeBrew呢?

Homebrew的官网:
http://brew.sh/index_zh-cn.html

安装命令:

ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"


2. 安裝gdb
$ brew install gdb
若產生如下錯誤
Warning: A newer Command Line Tools release is available
Update them from Software Update in the App Store.
Error: No available formula for gdb 
Searching taps...
解决办法是:
brew install https://raw.github.com/Homebrew/homebrew-dupes/master/gdb.rb
or
brew install homebrew/dupes/gdb

3. 製作證書,請參考以下連結


2015/01/27

mac OS 安裝 mysql 使用Homebrew

---- First, ensure that Homebrew is update to date and ready to brew:
$ brew update
$ brew doctor
$ brew upgrade

---- Next, install MySQL:
$ brew install mysql

---- Start MySQL:
$ mysql.server restart

---- Secure your MySQL installation. The main purpose of doing this is to ensure that the configuration of the local environment is set up as close as possible to the production environment.
mysql_secure_installation

設定Admin & 環境


---- 參考:
http://brew.sh/index_zh-tw.html

mac OS 安裝 ant

---- 下載 ant & 解壓縮
http://ant.apache.org

---- 修改目錄為ant

---- 來到自己的目錄
$ cd ~

---- 顯示目前路徑 (# /Users/bruce)
$ pwd

----  搬移ant至此

---- 寫入path
export PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin:/roo:/Users/Bruce/ant/bin

---- 檢視ant版本
$ ant -version

mac OS 安裝HomeBrew

---- 安裝homebrew
$ ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

$ brew install wget
Homebrew 會將 packages 安裝在他們自己的目錄,然後把檔案symlink 到 /usr/local下。

$ cd /usr/local
$ find Cellar
Cellar/wget/1.15
Cellar/wget/1.15/bin/wget
Cellar/wget/1.15/share/man/man1/wget.1

$ ls -l bin
bin/wget -> ../Cellar/wget/1.15/bin/wget