whtsky/Catsup

一个问题

Closed this issue · 13 comments

hi.
i run commands:(in /root/)

git clone git://github.com/whtsky/catsup.git
cd catsup
python setup.py install

it shows:
....
src/misaka.c:4193: fatal error: error writing to /tmp/cc6ClsOt.s: No space left on device
compilation terminated.
error: Setup script exited with error: command 'gcc' failed with exit status 1

i use command rm -rf /tmp/*,but i run "python setup.py install" again,i still met the above error.

怎么显示没空间呢?我运行df -h,显示还有600多mb空间,

as3:# df -h
Filesystem Size Used Avail Use% Mounted on
/dev/xvda1 9.9G 8.8G 608M 94% /
tmpfs 254M 0 254M 0% /lib/init/rw
udev 240M 20K 240M 1% /dev
tmpfs 254M 0 254M 0% /dev/shm
overflow 1.0M 108K 916K 11% /tmp
as3:
#

难道600多mb空间装你这个程序,不够用吗?谢谢回复

看起来是/tmp 的空间不足,只有900多k……
在编译C库的时候需要在/tmp有几M的空间

hi.
那如何加大/tmp的空间?比如加大到50mb空间。用什么命令?

@luckypoem Orz ,我还真没试过..
查了一下 http://tieba.baidu.com/p/2015229529 #4的方法可以试试。。?

看你的样子似乎是虚拟机。
可以尝试增加一块虚拟磁盘,然后挂载到/tmp
用完删了就行

hi.

as3:# mkdir tmp-backup
as3:
# mount --rbind tmp-backup /tmp
as3:# mount -o remount.rw /tmp
mount: wrong fs type, bad option, bad superblock on overflow,
missing codepage or helper program, or other error
(for several filesystems (e.g. nfs, cifs) you might
need a /sbin/mount. helper program)
In some cases useful info is found in syslog - try
dmesg | tail or so
as3:
#

不行啊。我用的是linux vps.vps provider对我说:“I would suggest just 'umount /tmp' ,this should fix your problem.”他的建议正确吗?还说“The mountpoint will still exist, so files for /tmp will go into the root filesystem instead of this 1MB filesystem.”,还说umount /tmp命令对我的vps不会有任何坏的影响,他说得对吗


umount /tmp 之后 /tmp 占的就是 / 的空间了,也就是 600+M 的空间

我运行了umount /tmp,然后重新启动vps,
cd catsup
python setup.py install

这次基本正常,不过遇到如下的提示:
src/sundown/html_blocks.h:91: warning: function declaration isn’t a prototype
src/sundown/html_blocks.h:145: warning: function declaration isn’t a prototype
zip_safe flag not set; analyzing archive contents...

不知对成功安装catsup有何不利影响?

@luckypoem 没有影响。
其实,如果你只是安装 catsup 而不想对其进行开发的话,可以
pip install catsup
不必从 git 源 clone 这么麻烦。
感谢选择 catsup :)

hi.

as3:/catsup-blog-files# ls
config.json posts
as3:
/catsup-blog-files# nano posts/2013-02-15-hi.md
as3:/catsup-blog-files# ls
config.json posts
as3:
/catsup-blog-files# catsup build
[I 130215 12:49:09 build:220] Building your blog..
[I 130215 12:49:09 init:42] Loading file posts/2013-02-15-hi.md
[W 130215 12:49:09 init:99] The format of post posts/2013-02-15-hi.md is illegal, ignore it.
[W 130215 12:49:09 build:225] No posts found.Stop building..

as3:/catsup-blog-files# ls
config.json posts
as3:
/catsup-blog-files# cd posts
as3:/catsup-blog-files/posts# ls
2013-02-15-hi.md
as3:
/catsup-blog-files/posts# cat 2013-02-15-hi.md
#hi
hi,this is my first post.
as3:~/catsup-blog-files/posts#

帖子的格式:
#hi
hi,this is my first post.不正确吗

@luckypoem 不正确..
应该是

# hi
---
hi, this is my first post

正文和上面的 meta 部分之间要有一个 --- 隔开。

http://catsup.readthedocs.org/en/latest/write.html#markup

hi.
as3:/catsup-blog-files# ls
config.json deploy posts
as3:
/catsup-blog-files# cd posts
as3:/catsup-blog-files/posts# ls
2013-02-15-hi.md 2013-02-15-install-this-blog.md
as3:
/catsup-blog-files/posts# cd ..
as3:/catsup-blog-files# catsup build
[I 130215 14:57:10 build:220] Building your blog..
[I 130215 14:57:10 init:42] Loading file posts/2013-02-15-install-this-blog. md
[I 130215 14:57:10 init:42] Loading file posts/2013-02-15-hi.md
/usr/local/lib/python2.6/dist-packages/catsup-0.0.8-py2.6.egg/catsup/reader/arch ive.py:9: DeprecationWarning: object.new() takes no parameters
archive = super(Archive, cls).new(cls, name)
[I 130215 14:57:10 build:76] Generating atom
[I 130215 14:57:10 build:82] Start generating articles
[I 130215 14:57:10 build:90] Generating 2013-02-15-install-this-blog
[I 130215 14:57:10 build:90] Generating 2013-02-15-hi
[I 130215 14:57:10 build:98] Start generating pages
[I 130215 14:57:10 build:110] Start generating page 1
[I 130215 14:57:10 build:132] Start generating tag pages
[I 130215 14:57:10 build:159] Start generating archive pages
[I 130215 14:57:10 build:170] Generating archive 2013
[I 130215 14:57:10 build:183] Start generating other pages
[I 130215 14:57:10 build:185] Generating 404.html
[I 130215 14:57:10 build:192] Copying static files.
[I 130215 14:57:10 build:214] Done.
[I 130215 14:57:10 build:242] Finish building in 0.141s
as3:
/catsup-blog-files# ls posts
2013-02-15-hi.md 2013-02-15-install-this-blog.md
as3:~/catsup-blog-files#

怎么在这里http://as3.brite.biz:8008/只显示了2013-02-15-hi.md,而未显示2013-02-15-install-this-blog.md的内容?

@luckypoem 看起来你是用catsup server跑的。
是这样的,catsup server 仅仅是用来做预览的 —— catsup build 和他完全没有关系。
运行完catsup build之后,应该会出现 deploy 目录
你在你的Web服务器(Apache或Nginx)中把目录指过去就行了。