G0574's Archiver

弯月圆刀 发表于 2008-10-5 09:38

安装mephisto

安装mephisto的过程充满了挫折,几乎叫人放弃。但其实只是犯了一个小错误而已。

根据常识,在mephisto网站的download页面下载tarball,然后解压阅读安装文件即可。但mephisto由于存在大量的依赖关系,如果仅仅从download下载tarball,要运行起来非常困难。

其实只要从git下载特定版本的commit即可,因为这是开发者处于运行状态的快照,基本上能够运行。

果然从git下载解压之后,终于顺利运行了。这是我第一次接触基于ruby的cms系统,好好了解一下吧。

弯月圆刀 发表于 2008-10-6 14:52

学习了git之后,发现正确的做法是:

D:\>git clone git://github.com/halorgium/mephisto.git mymephisto
Initialize mymephisto/.git
Initialized empty Git repository in D:/mymephisto/.git/
remote: Counting objects: 17439, done.
remote: Compressing objects: 100% (4567/4567), done.        )
remote: Total 17439 (delta 12244), reused 17413 (delta 12228)
Receiving objects: 100% (17439/17439), 3.08 MiB | 65 KiB/s, done.
Resolving deltas: 100% (12244/12244), done.
Checking out files: 100% (1661/1661), done.

D:\>cd mymephisto

D:\mymephisto>git branch
* master

D:\mymephisto>git branch -r
  origin/HEAD
  origin/francois-multiengine
  origin/master
  origin/rel-0.8

D:\mymephisto>git checkout -b rel-0.8-tag origin/rel-0.8
M       vendor/rubyzip-0.5.12/samples/write_simple.rb
Branch rel-0.8-tag set up to track remote branch refs/remotes/origin/rel-0.8.
Switched to a new branch "rel-0.8-tag"

D:\mymephisto>git branch
  master
* rel-0.8-tag

到这里为止,当前目录下面就是0.8版本的mephisto了。

页: [1]

Powered by Discuz! Archiver 6.1.0  © 2001-2007 Comsenz Inc.