Mac10.8的Rails环境搭建

1 篇文章 0 订阅

第一次使用Mac Book,记录于此。

1, 需要按照xcode

xcode 4.2以上的需要安装 command line xxx

打开 xcode -> open develop tools -> more xxxx

2, 将 /Applications/Xcode.app/Contents/Developer/usr/bin  放到 $PATH

修改 ~/.bash_profile 文件

export PATH=/Applications/Xcode.app/Contents/Developer/usr/bin:$PATH

然后运行

source ~/.bash_profile

source ~/.bashrc

3,   查看path的命令

printenv PATH | tr ":" "\n"


4,使用rvm安装Rails


5, 安装 Homebrew


使用vundle安装vim的配置文件

Bundle 'tpope/vim-fugitive'
Bundle 'Lokaltog/vim-easymotion'
Bundle 'rstacruz/sparkup', {'rtp': 'vim/'}
Bundle 'tpope/vim-rails.git'
" vim-scripts repos
Bundle 'L9'
Bundle 'FuzzyFinder'
" non github repos
Bundle 'git://git.wincent.com/command-t.git'
" ...
Bundle 'blackboard.vim'
Bundle 'ZenCoding.vim'
Bundle 'scrooloose/nerdtree'
nmap <F2> :NERDTreeToggle <CR>

Bundle "snipMate"
Bundle 'vim-ruby/vim-ruby'

Bundle 'ctags.vim'


brew 安装 rails

  1. installed mysql with brew install mysql
  2. ran the commands brew suggested:

    unset TMPDIR
    
    mysql_install_db --verbose --user=`whoami` --basedir="$(brew --prefix mysql)" --datadir=/usr/local/var/mysql --tmpdir=/tmp
  3. Start mysql with mysql.server command, to be able to log on it

  4. Used the alternate security script:

    /usr/local/Cellar/mysql/5.5.10/bin/mysql_secure_installation

mysql管理工具 http://www.sequelpro.com


mac上可以安装的软件

  1. The Unarchiver: like WinRAR
  2. FreeMemory: to watch your memory usage and cleanup
  3. Appcleaner: for uninstall apps
  4. Wunderlist: a TODO
  5. Kindle:
  6. Evernote
  7. Dropbox
  8. Mindnode

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值