Some_problem_with_octopress
今天我总算是使用上了高大上的octopress了,不容易啊,现在我把之前的博客全部搬到了octopress上了,在github上办博客让我不用再担心流量和广告了!~~~爽啊
我使用octopress时遇到的问题汇总:
Error: Permission denied (publickey)
说明:我第一次使用rake deploy命令,总是有一个错误,提示说Error: Permission denied (publickey), 我开始没注意,后来才看见了,原来是我电脑还没有设置publickey
解决:
- 生成一个publickey:
ssh-keygen -lf ~/.ssh/id_rsa.pub- 在github上添加publickey,详情:github-help
octopress/plugins/pygments_code.rb:27:in 'rescue in pygments': Pygments can't parse unknown language: cpp. (RuntimeError)
说明:在我以为成功安装完pygments后,再使用rake deploy命令时就出现这个错误,同样,我也没注意,折腾了半天,连post都不能更新了,郁闷了半天,后面发现我的pygments压根就没安装成功
解决:这个问题已经很明确了,只要成功安装pygments就行了,接下来就是安装pygments的问题了
Traceback (most recent call last):
File "/usr/bin/pycompile", line 36, in <module>
from debpython.version import SUPPORTED, debsorted, vrepr, \
File "/usr/share/python/debpython/version.py", line 24, in <module>
from ConfigParser import SafeConfigParser
ImportError: No module named 'ConfigParser'
说明:提示没有找到ConfigParser这个模块,果断google了下发现,我的ubuntu前几天刚升级了python3,结果ConfigParser这个模块在python3下是configparser
解决:这个问题简单,要么改代码,要么换python2,我电脑上还有python2,直接替换下python3,再次安装pygments就成功了,再次使用rake deploy就OK了,octopress已经在我的ubuntu上完美运行了
- “` error: failed to push some refs to ‘git@github.com:user_name/user_name.github.io.git’
To prevent you from losing history, non-fast-forward updates were rejected
Merge the remote changes (e.g. ‘git pull’) before pushing again. See the
‘Note about fast-forwards’ section of ‘git push —help’ for details.
1 |
|
sh
git pull git@github.com:user_name/user_name.github.io.git
rake deploy“`, OK~
3.完了退出*_deploy*目录,再次
原文地址:
http://vblog.vell001.ml/2014/03/23/some-problem-with-octopress.html
written by VellBibi
posted at http://vblog.vell001.ml
Some_problem_with_octopress的更多相关文章
随机推荐
- 一个酷炫的,基于HTML5,Jquery和Css的全屏焦点图特效,兼容各种浏览器
基于HTML5和CSS的焦点图特效,梅花图案的背景很有中国特色,而且还会动哦,效果超炫,推荐下载! 演示图 html代码 <!DOCTYPE html PUBLIC "-//W3C// ...
- JAX-RS入门
JAX-RS入门 一 :基础 博客分类: JAX-RS 简介 JAX-RS是一套用java实现REST服务的规范,提供了一些标注将一个资源类,一个POJOJava类,封装为Web资源.标注包括: ...
- NSMutableArray 排序
NSMutableArray *array1=[NSMutableArray arrayWithObjects:@"1",@"3",@"2" ...
- C++:函数模板与模板函数
6.1 模板的概念 C++允许用同一个函数定义函数,这些函数的参数个数和参数类型不同.例如求最大值的max函数, int max(int x,int y) { return (x>y ...
- sql中exists,not exists的用法
exists : 强调的是是否返回结果集,不要求知道返回什么, 比如: select name from student where sex = 'm' and mark exists(select ...
- 轻量级MVC标准
看到标题,估计有人就开始想吐了,没关系,你可以先吐完再看,现在MVC框架多如牛毛,没必要再重复发明轮子了,要声明的是,这里不是想要发明轮子,也没那个闲工夫去发明轮子,而是看到这么多MVC框架模样都差不 ...
- IOS ARC与非ARC混合编译
要开启ARC的:-fobjc-arc不开启ARC的:-fno-objc-arc 是否使用arc: 在build setting里找automatic reference counting,YES/NO
- NDK(16)Jni中GetStaticFieldID和GetMethodID 中的类型标识串
env在GetStaticFieldID和GetMethodID 时,函数参数和返回值的类型要指定类型标识串,如: jmethodID init = env->GetMethodID(clz,& ...
- 将Ftp添加到资源管理器中直接使用
在资源管理器中,右键,添加网络位置. 然后输入ftp的url ftp://server2008 使用匿名方式登录
- C/C++内存存储
#include <stdio.h> #include "string.h" #include "malloc.h" void Swap(int a ...