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.
|
|
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的更多相关文章
随机推荐
- 车牌识别LPR(四)-- 车牌定位
第四篇:车牌定位 车牌定位就是采用一系列图像处理或者数学的方法从一幅图像中将车牌准确地定位出来.车牌定位提取出的车牌是整个车牌识别系统的数据来源,它的效果的好坏直接影响到整个系统的表现,只有准确地定位 ...
- 如何使用UIAutomation进行iOS 自动化测试(Part I)
转自:http://www.cnblogs.com/vowei/archive/2012/08/10/2631949.html 写在前面 研究iOS的自动化测试也有些日子了,刚开始的时候,一直苦于找不 ...
- 发布 windows 10 universal app 时微软账号验证失败
具体错误:Visual Studio encountered an unexpected network error and can't contact the Microsoft account s ...
- vssettings 的备份和导入
vssettings 的作用: vssettings的导出(也就是相当于是保存): 现在我们试试导入:找一个别人导出的包,我们导入试试.
- mysql if 和 case when 用法 多个when情况用一个语句 存储过程
在实际开发中,经常会用到 if 和 case when的用法,记录一下,以后可以用得到. DELIMITER $$ USE `数据库`$$ DROPPROCEDUREIFEXISTS `GetNoti ...
- 自定义progressbar
<ProgressBar android:id="@+id/progressBar1" android:layout_width="wrap_content&quo ...
- listview默认选择第一项,点击换子项背景图
(不是大神,没有几百子项目,去你丫的) private int last_item_position ; @Override public void onItemClick(AdapterView&l ...
- codevs 3290 华容道
HAHAHA BFS+SPFA. #include<iostream> #include<cstdio> #include<cstring> #include< ...
- HDU 4612 Warm up (边双连通分量+DP最长链)
[题意]给定一个无向图,问在允许加一条边的情况下,最少的桥的个数 [思路]对图做一遍Tarjan找出桥,把双连通分量缩成一个点,这样原图就成了一棵树,树的每条边都是桥.然后在树中求最长链,这样在两端点 ...
- 随机变量的方差variance & 随机向量的协方差矩阵covariance matrix
1.样本矩阵 如果是一个随机变量,那么它的样本值可以用一个向量表示.相对的,如果针对一个随机向量,那么就需要利用矩阵表示,因为向量中的每一个变量的采样值,都可以利用一个向量表示. 然后,一个矩阵可以利 ...