rails环境 bundle 时无法安装nokogiri 完美解决

解决 rails bundle 时无法安装nokogiri 的问题

2011-08-09 09:54:12| 分类: 默认分类 |字号 订阅
ibxslt is missing. please visit http://nokogiri.org/tutorials/installing_nokogiri.html for help with installing dependencies.

缺少依赖

 

安装

apt-get install libxslt-dev libxml2-dev

这时候可能会出现这样的错误:

E: Could not open lock file /var/lib/dpkg/lock - open (13: Permission denied)
E: Unable to lock the administration directory (/var/lib/dpkg/), are you root?

解决办法:
sudo rm -rf /var/lib/dpkg/lock

sudo rm -rf /var/cache/apt/archives/lock

sudo apt-get update

然后运行sudo dpkg --configure -a重新配置

 

posted @ 2012-05-08 23:07  刘贝  阅读(254)  评论(0编辑  收藏  举报