"jekyll" command does not work.

130 views
Skip to first unread message

eturk

unread,
Nov 2, 2009, 6:20:43 AM11/2/09
to jekyll.rb
I've installed Jekyll successfully, but the "jekyll" command in
Terminal (I'm on Ubuntu 9.10) does not work. Is there a Ruby-side fix,
or will I have to add to my PATH?

LUK ShunTim

unread,
Nov 2, 2009, 9:05:51 AM11/2/09
to jeky...@googlegroups.com
Hi,

I guess ubuntu follows the debian way. Here's what README.Debian says in
debian/sid:

"Notes for rubygems{1.8|1.9.1} in Debian
=====================================

Since some patches are applied to fit Debian FHS, Debian's RubyGems
behaves a bit differently than the original.

* Directory where gems are to be installed

/var/lib/gems is default in Debian instead of /usr/lib/gems. You can
override it by defining GEM_HOME environment variable.

* Executables provided by gems

Gems which Debian's RubyGems will install are stored at /var/lib/gems
instead of /usr/lib/ruby/gems. Executables of the gems will be put at
/var/lib/gems/{1.8|1.9.1}/bin. In order to use them you manually have to
add the directory in your PATH environment variable or make symbolic
links at /usr/bin or /usr/local/bin."

HTH,
ST
--





> >
>

eturk

unread,
Nov 2, 2009, 3:17:51 PM11/2/09
to jekyll.rb
I added it to my path, and a Ruby error appears when I do "jekyll":

/var/lib/gems/1.8/gems/mojombo-jekyll-0.5.4/lib/jekyll.rb:4:in
`require': no such file to load -- rubygems (LoadError)
from /var/lib/gems/1.8/gems/mojombo-jekyll-0.5.4/lib/jekyll.rb:4
from /var/lib/gems/1.8/gems/mojombo-jekyll-0.5.4/bin/jekyll:19:in
`require'
from /var/lib/gems/1.8/gems/mojombo-jekyll-0.5.4/bin/jekyll:19

LUK ShunTim

unread,
Nov 4, 2009, 1:38:48 AM11/4/09
to jeky...@googlegroups.com
eturk wrote:
> I added it to my path, and a Ruby error appears when I do "jekyll":
>
> /var/lib/gems/1.8/gems/mojombo-jekyll-0.5.4/lib/jekyll.rb:4:in
> `require': no such file to load -- rubygems (LoadError)
> from /var/lib/gems/1.8/gems/mojombo-jekyll-0.5.4/lib/jekyll.rb:4
> from /var/lib/gems/1.8/gems/mojombo-jekyll-0.5.4/bin/jekyll:19:in
> `require'
> from /var/lib/gems/1.8/gems/mojombo-jekyll-0.5.4/bin/jekyll:19

I don't have this problem in debian/sid. It should come with
rubygems1.8. Maybe it's not (properly) installed. Try "apt-get install
rubygems1.8" as root or something similar.

Regards,
ST
--

Reply all
Reply to author
Forward
0 new messages