Awestruct is a great static Web site generation framework, based on Jekyll, developed using ruby language. Awestruct can be based on the template to generate very beautiful site, for example, can use Bootstrap or blueprint, these two famous dongdong don't say it, the earth people know. Nonsense not much to say, into the subject. Install ruby Environment
Install some dependent libraries first, otherwise the installation awestruct will report the following error:
Building native extensions.
This is could take a while ..... Error:error Installing Next Generation static Web site Generation tool: Error:failed to build gem native extension.
. /usr/bin/ruby extconf.rb Checking for stdio.h ... * * EXTCONF.RB failed * * Could not create Makefile due to some, Probably lack of necessary libraries and/or headers. Check the Mkmf.log file for more details.
Your may need configuration options.
. Provided configuration options:--with-opt-dir--without-opt-dir--with -opt-include--without-opt-include=${opt-dir}/include--with-opt-lib-- Without-opt-lib=${opt-dir}/lib--with-make-prog--without-make-prog--s
Rcdir=. --curdir--ruby=/usr/bin/ruby/usr/share/ruby/mkmf.rb:381:in ' Try_do ': The compiler failed to generate a
n executable file. (RuntimeerrOR) you have to install development tools.
From/usr/share/ruby/mkmf.rb:506:in ' Try_cpp ' from/usr/share/ruby/mkmf.rb:931:in ' block in Have_header ' From/usr/share/ruby/mkmf.rb:790:in ' block in Checking_for ' from/usr/share/ruby/mkmf.rb : 284:in ' block (2 levels) in postpone ' from/usr/share/ruby/mkmf.rb:254:in ' open ' from/
Usr/share/ruby/mkmf.rb:284:in ' block in postpone ' from/usr/share/ruby/mkmf.rb:254:in ' open '
From/usr/share/ruby/mkmf.rb:280:in ' postpone ' from/usr/share/ruby/mkmf.rb:789:in ' checking_for ' From/usr/share/ruby/mkmf.rb:930:in ' Have_header ' from extconf.rb:2:in ' <main> '
Start the installation of the dependency library, using root or Su to execute the following command:
Yum install-y gcc-c++ patch readline readline-devel zlib zlib-devel libyaml-devel libffi-devel openssl-devel make bzip2 A utoconf automake Libtool Bison iconv-devel
I am a fan of fedora, not to use other distribution of children's shoes, please find the appropriate system installation method according to the installation package I listed.
Install Ruby and RubyGems and use root or Su to execute the following command:
Yum install ruby Ruby-devel RUBY-IRB RubyGems
Fedora18 Yum Source Ruby is very new and is the latest version of the current (2012-12-14) edition to see the version of Ruby installed:
Installing : libyaml-0.1.4-3.fc18.x86_64
1/10
is being installed : ruby-libs-1.9.3.327-22.fc18.x86_64 2/10
Installing : Ruby-irb-1.9.3.327-22.fc18.noarch 3/10
is being installed : rubygem-json-1.6.5-2.fc18.x86_64 4/10
installing : rubygem-io-console-0.3-22.fc18.x86_64 5/10
is being installed : rubygem-bigdecimal-1.1.0-22.fc18.x86_64 6/10
is being installed : Rubygem-rdoc-3.12-5.fc18.noarch 7/10
installing : Rubygems-1.8.24-3.fc18.noarch 8/10
is being installed : ruby-1.9.3.327-22.fc18.x86_64 9/
installation in progress : ruby-devel-1.9.3.327-22.fc18.x86_64