problem about octopress-Collection of common programming errors


  • dentonjacobs
    ruby freebsd octopress
    I am attempting to get octopress going and having trouble installing the required package posix-spawn.Here this is the error output: ERROR: Error installing posix-spawn:ERROR: Failed to build gem native extension./home/private/.rvm/rubies/ruby-1.9.3-p392/bin/ruby extconf.rb creating Makefilemake compiling posix-spawn.c posix-spawn.c:9:19: error: spawn.h: No such file or directory In file included from /home/private/.rvm/rubies/ruby-1.9.3-p392/include/ruby- 1.9.1/ruby/ruby.h:24,from /home/pri

  • valentino
    ruby octopress rdiscount
    I tried to install octopress following the documentation and got this error during the process. (after ‘bundle install’)Tried to manually reinstall it with no success.Installing rdiscount (2.0.7.3) Gem::Installer::ExtensionBuildError: ERROR: Failed to build gem native extension./Users/*****/.rvm/rubies/ruby-1.9.3-p194/bin/ruby extconf.rb checking for random()… yes checking for srandom()… yes checking for rand()… yes checking for srand()… yes checking size of unsigned long… *** extcon

  • thlgood
    ruby redcloth octopress
    I want to install Octopress in my computer. I try to do it like Octopress document.When I runbundle installI got error messageAn error occured while installing RedCloth (4.2.9), and Bundler cannot continue. Make sure that `gem install RedCloth -v ‘4.2.9’` succeeds before bundling.So, I runsudo gem install RedCloth -v ‘4.2.9’then, I got a error message again:ERROR: Error installing RedCloth: ERROR: Failed to build gem native extension./usr/bin/ruby1.9.1 extconf.rb/usr/lib/ruby/1.9.1/rubygems/cus

  • SiddharthaRT
    ruby rake jekyll rakefile octopress
    I followed all instructions in Octopress Documentation: sddhrthrt@thinkpad:~/octopress$ rake generate ## Generating Site with Jekyll directory source/stylesheets/ create source/stylesheets/screen.css Configuration from /home/sddhrthrt/octopress/_config.yml /home/sddhrthrt/octopress/plugins/pygments_code.rb:5: warning: already initialized constant PYGMENTS_CACHE_DIR /home/sddhrthrt/octopress/plugins/render_partial.rb:25:in `require’:./plugins/octopress_filters.rb:69: undefined (?…) sequence:/&

  • Jianwen W.
    debugging markdown jekyll octopress
    I use Octopress for blogging. Generally it works well except one occassion — after typing rake generate, I got depressing output which says something like:psych.rb:203:in `parse’: (<unknown>): mapping values are not allowed in this context at line 3 column 6 (Psych::SyntaxError)I can’t remember how many times I’ve encounterd this situation. Every time I google the key words above, but got nothing help. What I can do is to exclude all the source files (*.mkd) from _posts, and add them one

  • musicmatze
    ruby linux gem jekyll octopress
    I use Octopress (jekyll) as blogging engine/generator. When I include a piece of code with the{% include_code foo.bar %}syntax, it completely crashes. This happens also if I do write code inside the markup with the other syntax“` ruby puts foo “`But only when I specify a language. I don’t know how to fix it and the answers on similar questions here at stackoverflow didn’t lead me to a solution! Patching gems didn’t work, inserting a plugin with RubyPython::Interpreter.configure and so on didn’

  • Murat Çorlu
    ruby jekyll octopress
    I use octopress for my technical blog. I updated my octopress codes from official octopress repo, and I get an error like that when I run rake generate:|1.9.3-p194| home in ~/Documents/work/git/muratcorlu.github.com ± |source ?| ? rake generate ## Generating Site with Jekyll directory source/stylesheets/ create source/stylesheets/screen.css Configuration from /Users/muratcorlu/Documents/work/git/muratcorlu.github.com/_config.yml /Users/muratcorlu/Documents/work/git/muratcorlu.github.com/plugins

  • lkdjiin
    liquid octopress
    I have this code:module Jekyllclass ConnexeTag < Liquid::Tagdef render(context)categories = get_categories(context)categories.class.name # => “Array”# categories # => “category1category2″# categories.join(‘,’) # => Error !# categories.size # => Error !endprivatedef get_categories(context)context.environments.first[“page”][“categories”]endend endIt outputs Array, and that’s ok. But when I try some methods on categories, like size or each I get this error:Building site: source ->

  • user2259952
    git octopress github-pages
    I’m not sure if I’m going crazy or not. Trying to setup octopress on github pages. Everything is setup fine with RVM, using bundle exec for rake, but when I run setup_github_pages, I put in the read/write URL and get the following:Repository url: [email protected]:ryanmccrary/ryanmccrary.github.io rm -rf _deploy mkdir _deploy cd _deploy Initialized empty Git repository in /Projects/octopress/_deploy/.git/ [master (root-commit) 2c6544e] Octopress init 1 files changed, 1 insertions(+), 0 deletions(-)

  • justingordon
    ruby octopress rakefile
    I’m trying to add some rake tasks to an Octopress Rakefile, and I’d like to put the tasks in another child rakefile, but when I import the child rakefiles, they can’t access the constants at the top of the rakefile.I’m importing the child rakefile with:Dir.glob(‘rakefiles/*.rake’).each { |r| import r }This is the sort of config that I’m not able to read in the child file:public_dir = “public” # compiled site directory source_dir = “source” # source file directory blog_index_dir

  • Oren Maurer
    internet-explorer internet-explorer-8 octopress
    I have re-built my web site using Ocopress. I found it really great for building static site! BUT the problem now is – that when I try to see in in Internet Explorer 8 – it has a “Mobile” look! I mean – that IE8 is thought to be mobile. And it’s not. Al least not for me… In addition – the “navigate” drop-down has “undefined” entries. I use IE8 from time to time at my work PC (even though I prefer Firefox and Chrome / Chromium). See the image I’m attaching – My Octopress site with IE8. [1]Com

  • Alan W. Smith
    ruby gem jekyll liquid octopress
    I’m trying to replace my WordPress blog with Octopress. It’s a photo-blog so I decided to use the photo_tag Plugin but have a problem. If I use the gallery syntax, I get:Liquid error: undefined method `map’What can I do to replace that map method? I googled a little and only found this github issue that tells me I have to use liquid 2.2.2 but that doesn’t seem like an option with jekyll.

  • Julia Anne Jacobs
    markdown jekyll octopress coderay kramdown
    I want to use kramdown tags with ‘:’ in them, ie. {:toc}and coderay code blocks {:lang=”javascript”}in my Octopress blog but I keep getting this error when running rake generate:[my user dir]/.rvm/rubies/ruby-1.9.3-p392/lib/ruby/1.9.1/psych.rb:203:in `parse’: (<unknown>): could not find expected ‘:’ while scanning a simple key at line 8 column 1 (Psych::SyntaxError)I have installed the kramdown and coderay gems and made the following changes to my _config.yml:markdown: kramdownkramdown:au

Web site is in building

I discovery a place to host code、demo、 blog and websites.
Site access is fast but not money