{"id":7335,"date":"2014-06-07T02:28:22","date_gmt":"2014-06-07T02:28:22","guid":{"rendered":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/problem-about-octopress-collection-of-common-programming-errors\/"},"modified":"2014-06-07T02:28:22","modified_gmt":"2014-06-07T02:28:22","slug":"problem-about-octopress-collection-of-common-programming-errors","status":"publish","type":"post","link":"https:\/\/unknownerror.org\/index.php\/2014\/06\/07\/problem-about-octopress-collection-of-common-programming-errors\/","title":{"rendered":"problem about octopress-Collection of common programming errors"},"content":{"rendered":"<ul>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b84d3e88ab934316638f5eacfefc93ba?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\ndentonjacobs<br \/>\nruby freebsd octopress<br \/>\nI 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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2fe93d63a04de35c8836ec2b1d4cca2d?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nvalentino<br \/>\nruby octopress rdiscount<br \/>\nI tried to install octopress following the documentation and got this error during the process. (after &#8216;bundle install&#8217;)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()&#8230; yes checking for srandom()&#8230; yes checking for rand()&#8230; yes checking for srand()&#8230; yes checking size of unsigned long&#8230; *** extcon<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/459cb9bceb3e15677bfd29a491b99867?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nthlgood<br \/>\nruby redcloth octopress<br \/>\nI 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 &#8216;4.2.9&#8217;` succeeds before bundling.So, I runsudo gem install RedCloth -v &#8216;4.2.9&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/05665133126ce60cf61dd94870f83364?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nSiddharthaRT<br \/>\nruby rake jekyll rakefile octopress<br \/>\nI 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&#8217;:.\/plugins\/octopress_filters.rb:69: undefined (?&#8230;) sequence:\/&amp;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/b3eb1cebf7e50959e40abc79435ddb91?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nJianwen W.<br \/>\ndebugging markdown jekyll octopress<br \/>\nI use Octopress for blogging. Generally it works well except one occassion &#8212; after typing rake generate, I got depressing output which says something like:psych.rb:203:in `parse&#8217;: (&lt;unknown&gt;): mapping values are not allowed in this context at line 3 column 6 (Psych::SyntaxError)I can&#8217;t remember how many times I&#8217;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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f98e6ad8c8b579b09886981b1e402c15?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nmusicmatze<br \/>\nruby linux gem jekyll octopress<br \/>\nI 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&#8220;` ruby puts foo &#8220;`But only when I specify a language. I don&#8217;t know how to fix it and the answers on similar questions here at stackoverflow didn&#8217;t lead me to a solution! Patching gems didn&#8217;t work, inserting a plugin with RubyPython::Interpreter.configure and so on didn&#8217;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/2906955ae59c795275979d3782d7bfca?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nMurat \u00c7orlu<br \/>\nruby jekyll octopress<br \/>\nI 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 \u00b1 |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<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/f6d0dff2dbb2fdc08fb1318116ea572c?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nlkdjiin<br \/>\nliquid octopress<br \/>\nI have this code:module Jekyllclass ConnexeTag &lt; Liquid::Tagdef render(context)categories = get_categories(context)categories.class.name # =&gt; &#8220;Array&#8221;# categories # =&gt; &#8220;category1category2&#8243;# categories.join(&#8216;,&#8217;) # =&gt; Error !# categories.size # =&gt; Error !endprivatedef get_categories(context)context.environments.first[&#8220;page&#8221;][&#8220;categories&#8221;]endend endIt outputs Array, and that&#8217;s ok. But when I try some methods on categories, like size or each I get this error:Building site: source -&gt;<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/405dc5d6db1bdf9a7758ff75cc8c44f7?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nuser2259952<br \/>\ngit octopress github-pages<br \/>\nI&#8217;m not sure if I&#8217;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: git@github.com: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(-)<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/134ceddfdac5709794fc23957211ebdb?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\njustingordon<br \/>\nruby octopress rakefile<br \/>\nI&#8217;m trying to add some rake tasks to an Octopress Rakefile, and I&#8217;d like to put the tasks in another child rakefile, but when I import the child rakefiles, they can&#8217;t access the constants at the top of the rakefile.I&#8217;m importing the child rakefile with:Dir.glob(&#8216;rakefiles\/*.rake&#8217;).each { |r| import r }This is the sort of config that I&#8217;m not able to read in the child file:public_dir = &#8220;public&#8221; # compiled site directory source_dir = &#8220;source&#8221; # source file directory blog_index_dir<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/8d2d1b0b05f7c0924d8dfd9790fb6123?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nOren Maurer<br \/>\ninternet-explorer internet-explorer-8 octopress<br \/>\nI have re-built my web site using Ocopress. I found it really great for building static site! BUT the problem now is &#8211; that when I try to see in in Internet Explorer 8 &#8211; it has a &#8220;Mobile&#8221; look! I mean &#8211; that IE8 is thought to be mobile. And it&#8217;s not. Al least not for me&#8230; In addition &#8211; the &#8220;navigate&#8221; drop-down has &#8220;undefined&#8221; entries. I use IE8 from time to time at my work PC (even though I prefer Firefox and Chrome \/ Chromium). See the image I&#8217;m attaching &#8211; My Octopress site with IE8. [1]Com<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/www.gravatar.com\/avatar\/ec8e27851eef45968d23b9be06ba9eb5?s=32&amp;d=identicon&amp;r=PG\" \/><br \/>\nAlan W. Smith<br \/>\nruby gem jekyll liquid octopress<br \/>\nI&#8217;m trying to replace my WordPress blog with Octopress. It&#8217;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&#8217;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&#8217;t seem like an option with jekyll.<\/li>\n<li><img decoding=\"async\" src=\"http:\/\/i.stack.imgur.com\/zDyKp.jpg?s=32&amp;g=1\" \/><br \/>\nJulia Anne Jacobs<br \/>\nmarkdown jekyll octopress coderay kramdown<br \/>\nI want to use kramdown tags with &#8216;:&#8217; in them, ie. {:toc}and coderay code blocks {:lang=&#8221;javascript&#8221;}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&#8217;: (&lt;unknown&gt;): could not find expected &#8216;:&#8217; 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<\/li>\n<\/ul>\n<p>Web site is in building<\/p>\n<p>I discovery a place to host code\u3001demo\u3001 blog and websites.<br \/>\nSite access is fast but not money<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.m5zn.com\/newuploads\/2014\/01\/30\/jpg\/e7da807964b1fff.jpg\" \/><\/p>\n","protected":false},"excerpt":{"rendered":"<p>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 [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-7335","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7335","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/comments?post=7335"}],"version-history":[{"count":0,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/posts\/7335\/revisions"}],"wp:attachment":[{"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/media?parent=7335"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/categories?post=7335"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/unknownerror.org\/index.php\/wp-json\/wp\/v2\/tags?post=7335"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}