Skip to content
This repository has been archived by the owner on Nov 29, 2017. It is now read-only.

ERROR when installing jekyll #55

Closed
Vercryger opened this issue May 25, 2014 · 9 comments
Closed

ERROR when installing jekyll #55

Vercryger opened this issue May 25, 2014 · 9 comments

Comments

@Vercryger
Copy link

When i trying to install jekyll with $ gem install jekyll i got this:

ERROR:  Loading command: install (LoadError)
    cannot load such file -- zlib
ERROR:  While executing gem ... (NoMethodError)
    undefined method `invoke_with_build_args' for nil:NilClass

I have already installed this package:


$ ruby -v
ruby 2.1.2p95 (2014-05-08 revision 45877) [i686-linux]
$ gem -v
2.2.2
$ sudo update-alternatives --config ruby
There is only one alternative in link group ruby: /usr/bin/ruby1.9.1
Nothing to configure.
$ sudo update-alternatives --config gem
There is only one alternative in link group gem: /usr/bin/gem1.9.1
Nothing to configure.
@albertogg
Copy link
Member

Hi @Vercryger, It seems that zlib is missing... If you are using Ubuntu I believe its name will be zlib1g-dev; try installing it and see if it solves your problem.

@Vercryger
Copy link
Author

Hi @albertogg, zlib1g-dev is already installed in the newest version, i don't understand :/

@albertogg
Copy link
Member

Did you install it before installing your Rubies?

@Vercryger
Copy link
Author

Mmm i think no, should i have to?

@albertogg
Copy link
Member

I'm not completely sure of, but I always do, you can try that.

@Vercryger
Copy link
Author

Great! It's all working! I followed this steps:
First i removed all previously installed rubies on my OS.
And next this:

sudo apt-get update
sudo apt-get install git-core curl zlib1g-dev build-essential libssl-dev libreadline-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt1-dev libcurl4-openssl-dev python-software-properties

sudo apt-get install libgdbm-dev libncurses5-dev automake libtool bison libffi-dev
curl -L https://get.rvm.io | bash -s stable
source ~/.rvm/scripts/rvm
echo "source ~/.rvm/scripts/rvm" >> ~/.bashrc
rvm install 2.1.2
rvm use 2.1.2 --default

and finally
gem install jekyll
and Bingo!

Thanks a lot! This thread can be closed.

@albertogg
Copy link
Member

No problem! glad I could help.

@thomasdola
Copy link

how did y remove all previously installed rubies on your OS???
need help with that... thank y...

@Vercryger
Copy link
Author

In my case, i did that just removing from my ubuntu synaptic any gem and ruby too. Then i deleted all my gems from RVM, i followed this guide.
Remember, you have to have Node previously installed for Jekyll.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants