惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

S
Securelist
L
LangChain Blog
让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
腾讯CDC
月光博客
月光博客
S
Schneier on Security
Simon Willison's Weblog
Simon Willison's Weblog
WordPress大学
WordPress大学
freeCodeCamp Programming Tutorials: Python, JavaScript, Git & More
D
Darknet – Hacking Tools, Hacker News & Cyber Security
C
Cisco Blogs
cs.AI updates on arXiv.org
cs.AI updates on arXiv.org
美团技术团队
S
Security @ Cisco Blogs
人人都是产品经理
人人都是产品经理
L
LINUX DO - 热门话题
S
SegmentFault 最新的问题
D
DataBreaches.Net
C
CXSECURITY Database RSS Feed - CXSecurity.com
Microsoft Security Blog
Microsoft Security Blog
www.infosecurity-magazine.com
www.infosecurity-magazine.com
N
News | PayPal Newsroom
W
WeLiveSecurity
F
Fortinet All Blogs
The Hacker News
The Hacker News
The Register - Security
The Register - Security
P
Palo Alto Networks Blog
Engineering at Meta
Engineering at Meta
T
The Exploit Database - CXSecurity.com
Vercel News
Vercel News
G
GRAHAM CLULEY
博客园 - 聂微东
P
Privacy International News Feed
P
Privacy & Cybersecurity Law Blog
Hacker News: Ask HN
Hacker News: Ask HN
Webroot Blog
Webroot Blog
G
Google Developers Blog
T
Tailwind CSS Blog
V
Vulnerabilities – Threatpost
L
Lohrmann on Cybersecurity
T
Tenable Blog
Cisco Talos Blog
Cisco Talos Blog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
S
Security Affairs
云风的 BLOG
云风的 BLOG
cs.CV updates on arXiv.org
cs.CV updates on arXiv.org
B
Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Hugging Face - Blog
Hugging Face - Blog
T
Threatpost

博客园 - ddr888

Ubuntu16.04LTS国内快速源 bitnami redmine版本由2.3.1升级至3.2.2过程 Ubuntu1404安装gogs过程 Excel根据单元格背景色批量设置格式的宏 服务器监控之热身:只是试用monit SAP ABAP鸟瞰【AV+PPT】 常用SAP表 HP-UX 11i v2上Oracle10.2基本安装指南 Debian5 dom0上跑Xen Debian5 lenny domU&Xen ubuntu10.04 Lucid domU--我爱你,飞一般的感觉 SAP BW BEx工具集简单介绍【AV+PPT】 resolve.conf引起登录HPUX的CDE故障 cx_Oracle说:Python访问Oracle并不难 让服务器时间“云”起来【拍死标题党】 ubuntu 10.04 源 HP-UX下使用python发送邮件 HP-UX 11i v2安装使用python 2.5.2 birdnest 102 api出现internel error处理 Heroku使用手记 ubuntu常用网络服务配置
mac上配置rails开发环境
ddr888 · 2009-10-12 · via 博客园 - ddr888

mac被众多rails开发者喜爱,本文就自己的环境介绍一下rails开发环境的配置。

本人配置、基本环境:

t43

leopard 9.5.6

本身mac上已经自带了ruby 1.8.6,所以我们需要安装的组件有:

  • 安装mac开发组件xcode
  • 更新gem
  • 安装rails 2.3.3版本
  • 安装mysql
  • 安装ruby的mysql驱动

1. 下载xcode并安装900M左右

2. 更新gem

sudo -s
gem update --system

3. 安装rails

这里根据自己的需要安装适合的版本,由于我想在heroku上部署,所以目前使用2.3.3

gem install rails --version=2.3.3

4. 下载适合mac安装的mysql的dmg包安装

5. 安装ruby的mysql驱动

gem install mysql -- --with-mysql-dir=/usr/local/mysql

6. 使用rails

cd ~
rails _2.3.3_ -d mysql myblog
cd myblog
rake db:create
rake db:migrate
script/server

现在打开浏览器查看,rails环境界面是不是已经看到了?如果开发不使用mysql,可以略过mysql的安装过程,直接用sqlite3.