Jekyll Installation of Wits

Source: Internet
Author: User

Small white installation Jekyll Some of the problems, there are errors welcome to correct, there is a better way to hope to inform.

Want to do some of their usual things to tidy up, convenient for their own inspection. Want to put on GitHub and discover the need to know about GitHub pages. GitHub pages perfectly supports Jekyll. You will need to install Jekyll.

Installing Jekyll is fairly straightforward, but you have to do some preparatory work before you start to make sure you have the following configuration in your system.

    • Ruby
    • RubyGems
    • Linux, Unix, or Mac OS X

Found a CentOS machine.
Yum Install Ruby


After ruby-v , Ruby 2.0.0p598 right!


The gem is installed by default, and then the gem Update--system, the function is to update to do so.


At this time cannot gem install Jekyll, will error Could not find a valid gem ' Jekyll ', meaning to remind you to FQ. (not obvious hint, hey, I didn't see it.) )

The way to set up the proxy might work, I didn't get through. I use the domestic mirror way, please refer here and follow this setup well, of course the setup process may also be my problem, like me:
While executing gem ... (net::httpretriableerror) 302 "Found"


(killed, FQ will not, with the domestic mirror does not work, God died I also?) At last it seems to restart a few servers, error No, don't ask me, I do not know how not. Finally met

Current SOURCES * * *

https://ruby.taobao.org

Think everything goes bright, easy gem install Jekyll, click Enter to get it done, didn't think
Error One:
Could not create Makefile due to some reason, probably lack of necessary libraries and/or headers


So easy, online search for a solution, then gem install Jekyll, did not expect to become
Error Two:
Can ' t find header files for Ruby At/usr/share/include/ruby.h


is not the same thing, then search the solution, then gem install Jekyll, good, become
Error Three:

No package ' Libffi ' found


Guys, I'm yum install Libffi-devel, then gem install Jekyll, okay, you win.
Error Four:
Failed to build gem native extension


Try again n method, this reason seems to be different from machine, reference here, I use a big trick,

yum-y install gcc ruby-devel rubygems Compass , then gem install Jekyll, finally no error, like the calm after the storm, well, hurriedly record down, There are similar errors can be consulted, and quickly enjoy the Jekyll I spent half a day to install.

Jekyll Installation of Wits

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.