安装Jekyll没有根 [英] Installing Jekyll without root

查看:84
本文介绍了安装Jekyll没有根的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想在共享服务器上建立一个jekyll博客。当我尝试安装Jekyll时,我得到你没有写权限。



更多详细信息:

我在共享服务器上有空间并没有root权限。我无法安装Ruby,但托管公司根据我的请求安装了它。



当我尝试安装Jekyll时,我使用

  user @ hosting .org [〜]#gem install jekyll 

这是我得到的回应:

 错误:执行gem时(Gem :: FilePermissionError)
您没有写入/ usr / lib / ruby​​ / gems / 1.8目录。

我已经看到了改变GEMPATH的不同建议,包括我试过的

  export GEM_PATH = / home / user / something 

但是即使这样做后,仍然是这样

  gem env 


$ b

仍然导致

 创业板路径:
- /usr/lib/ruby/gems/1.8
- /home/user/.gem/ruby/1.8

任何提示?有没有可能安装没有root或sudo priviliges的jekyll,或者我只是做一些菜鸟PATH错误?

解决方案

我没有找一段时间的答案。在#jekyll IRC上,用户指向我 Arch wiki 我发现这件事是强制安装为一个用户:

  gem install jekyll --user-install 


I want to set up a jekyll blog on a shared server. When I try to install Jekyll I get "You don't have write permissions". How do I fix this without root or sudo?

More detail:

I have space on a shared server and don't have root access. I couldn't install Ruby, though the hosting company installed it upon my request.

When I try to install Jekyll I use

user@hosting.org [~]# gem install jekyll

and this is the response I get:

ERROR:  While executing gem ... (Gem::FilePermissionError)
You don't have write permissions into the /usr/lib/ruby/gems/1.8 directory.

I have seen different suggestions for changing the GEMPATH which I have tried including

export GEM_PATH=/home/user/something

But even after doing so

gem env 

still results in

GEM PATHS:
- /usr/lib/ruby/gems/1.8
- /home/user/.gem/ruby/1.8

Any tips? Is it possible to install jekyll without root or sudo priviliges or am I just making some rookie PATH error?

解决方案

I didn't find the answer for a while. on the #jekyll IRC a user pointed me at the Arch wiki and I discovered that the thing is to force the install as a single user:

gem install jekyll --user-install

这篇关于安装Jekyll没有根的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆