ShowOff安装测试

ShowOff是什么?showoff是一个用Sinatra开发的基于配置的简报系统。类似于Keynote。详细内容看它的主站吧:https://github.com/schacon/showoff

1.

sudo apt-get install libxml2-dev libxslt-dev

Reading package lists... Done
Building dependency tree       
Reading state information... Done
Note, selecting 'libxslt1-dev' instead of 'libxslt-dev'
The following NEW packages will be installed:
  libxml2-dev libxslt1-dev
0 upgraded, 2 newly installed, 0 to remove and 1 not upgraded.
Need to get 1,412 kB of archives.
After this operation, 5,583 kB of additional disk space will be used.
Get:1 http://cn.archive.ubuntu.com/ubuntu/ natty-updates/main libxml2-dev amd64 2.7.8.dfsg-2ubuntu0.1 [835 kB]
Get:2 http://cn.archive.ubuntu.com/ubuntu/ natty/main libxslt1-dev amd64 1.1.26-6build1 [577 kB]
Fetched 1,412 kB in 4s (299 kB/s)     
Selecting previously deselected package libxml2-dev.
(Reading database ... 249315 files and directories currently installed.)
Unpacking libxml2-dev (from .../libxml2-dev_2.7.8.dfsg-2ubuntu0.1_amd64.deb) ...
Selecting previously deselected package libxslt1-dev.
Unpacking libxslt1-dev (from .../libxslt1-dev_1.1.26-6build1_amd64.deb) ...
Processing triggers for man-db ...
Processing triggers for doc-base ...
Processing 1 added doc-base file(s)...
Registering documents with scrollkeeper...
Setting up libxml2-dev (2.7.8.dfsg-2ubuntu0.1) ...
Setting up libxslt1-dev (1.1.26-6build1) ...

2.

sudo gem install showoff

Building native extensions.  This could take a while...
Building native extensions.  This could take a while...
Building native extensions.  This could take a while...
Successfully installed rack-1.3.2
Successfully installed tilt-1.3.2
Successfully installed sinatra-1.2.6
Successfully installed bluecloth-2.1.0
Successfully installed nokogiri-1.5.0
Successfully installed json-1.5.3
Successfully installed gli-1.3.2
Successfully installed showoff-0.4.2
8 gems installed
Installing ri documentation for rack-1.3.2...
Installing ri documentation for tilt-1.3.2...
Installing ri documentation for sinatra-1.2.6...
Installing ri documentation for bluecloth-2.1.0...
Installing ri documentation for nokogiri-1.5.0...

No definition for get_options

No definition for set_options

No definition for parse_memory

No definition for parse_file

No definition for parse_with
Installing ri documentation for json-1.5.3...
Installing ri documentation for gli-1.3.2...
Installing ri documentation for showoff-0.4.2...
Installing RDoc documentation for rack-1.3.2...
Installing RDoc documentation for tilt-1.3.2...
Installing RDoc documentation for sinatra-1.2.6...
Installing RDoc documentation for bluecloth-2.1.0...
Installing RDoc documentation for nokogiri-1.5.0...

No definition for get_options

No definition for set_options

No definition for parse_memory

No definition for parse_file

No definition for parse_with
Installing RDoc documentation for json-1.5.3...
Installing RDoc documentation for gli-1.3.2...
Installing RDoc documentation for showoff-0.4.2...

3. 安装后缺省目录/var/lib/gems/1.8/bin

4. 创建(信赖RMagick,需安装libmagickwand-dev,再sudo gem install rmagick pdfkit)

/var/lib/gems/1.8/bin/showoff create presentname

5. 创建后进入presentname目录

/var/lib/gems/1.8/bin/showoff serve

image sizing disabled - install rmagick
pdf generation disabled - install pdfkit
== Sinatra/1.2.6 has taken the stage on 9090 for development with backup from WEBrick
[2011-08-17 04:39:17] INFO  WEBrick 1.3.1
[2011-08-17 04:39:17] INFO  ruby 1.8.7 (2010-08-16) [x86_64-linux]
[2011-08-17 04:39:24] INFO  WEBrick::HTTPServer#start: pid=13746 port=9090

参考文章:
1. Subjects covered include Ruby, ERROR, Libxml, Nokogiri, and Iconv.

2.How to install rmagick on Ubuntu 10.04?

打赏

《ShowOff安装测试》有一个想法

  1. 今天尝试用showoff做幻灯片, 无意中搜到了你的帖子,感觉比其他人写的更为清晰,谢谢你!

发表评论

电子邮件地址不会被公开。 必填项已用*标注