{"id":535,"date":"2017-11-10T16:01:23","date_gmt":"2017-11-10T10:31:23","guid":{"rendered":"http:\/\/blog.nuventure.in\/?p=535"},"modified":"2019-11-05T10:20:55","modified_gmt":"2019-11-05T04:50:55","slug":"jekyll-docker-image-missing-c-headers","status":"publish","type":"post","link":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/","title":{"rendered":"Jekyll Docker image missing C headers"},"content":{"rendered":"<p>So, if you are using <a href=\"https:\/\/hub.docker.com\/r\/jekyll\/jekyll\/\">Jekyll Docker<\/a> image and you need to install any Ruby gems that require C headers, such as <code>raindrops<\/code> in my case, which was a dependency for <code>unicorn<\/code>, you will find yourself faced with this error:<\/p>\n<p><code>fatal error: asm\/types.h: No such file or directory<\/code><\/p>\n<p>Fortunately, there is a quick fix for this. Jekyll docker image allows you to add system dependencies very easily. You just need to mention the dependent packages inside a file called <code>.apk<\/code> at the root of your project or beside <code>Dockerfile<\/code>. Since the docker image is based out of Alpine linux, you need to specify the correct package name as in <a href=\"https:\/\/pkgs.alpinelinux.org\/packages\">Alpine packages<\/a>.<\/p>\n<p>Create a file called <code>.apk<\/code> and add the following line to it.<\/p>\n<p><code>linux-headers<\/code><\/p>\n<p>Now, when you bring up your containers, it will automatically install the <code>linux-headers<\/code> package which contains all the required header files and proceed to installing the gems successfully.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>So, if you are using Jekyll Docker image and you need to install any Ruby gems that require C headers, such as raindrops in my case, which was a dependency for unicorn, you will find yourself faced with this error: fatal error: asm\/types.h: No such file or directory Fortunately, there is a quick fix for [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":810,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_exactmetrics_skip_tracking":false,"_exactmetrics_sitenote_active":false,"_exactmetrics_sitenote_note":"","_exactmetrics_sitenote_category":0,"footnotes":""},"categories":[27,20,32],"tags":[62,48,61,33,63,64],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v23.3 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Nuventure Blog Jekyll Docker image missing C headers -<\/title>\n<meta name=\"description\" content=\"Nuventure Blog So, if you are using Jekyll Docker image and you need to install any Ruby gems that require C headers, such as raindrops in my case, which was a\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Nuventure Blog Jekyll Docker image missing C headers -\" \/>\n<meta property=\"og:description\" content=\"Nuventure Blog So, if you are using Jekyll Docker image and you need to install any Ruby gems that require C headers, such as raindrops in my case, which was a\" \/>\n<meta property=\"og:url\" content=\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/\" \/>\n<meta property=\"og:site_name\" content=\"Nuventure Blog\" \/>\n<meta property=\"article:publisher\" content=\"https:\/\/www.facebook.com\/nuventureco\/\" \/>\n<meta property=\"article:published_time\" content=\"2017-11-10T10:31:23+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2019-11-05T04:50:55+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2017\/11\/jekyll-plus-docker.png\" \/>\n\t<meta property=\"og:image:width\" content=\"950\" \/>\n\t<meta property=\"og:image:height\" content=\"472\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/png\" \/>\n<meta name=\"author\" content=\"Tinu Cleatus\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@nuventureco\" \/>\n<meta name=\"twitter:site\" content=\"@nuventureco\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tinu Cleatus\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"1 minute\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/\"},\"author\":{\"name\":\"Tinu Cleatus\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/92ee1865fc62f5f812a01ebc360befdb\"},\"headline\":\"Jekyll Docker image missing C headers\",\"datePublished\":\"2017-11-10T10:31:23+00:00\",\"dateModified\":\"2019-11-05T04:50:55+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/\"},\"wordCount\":143,\"commentCount\":0,\"publisher\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#organization\"},\"image\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2017\/11\/jekyll-plus-docker.png\",\"keywords\":[\"alpine-linux\",\"Docker\",\"jekyll\",\"linux\",\"raindrops\",\"unicorn\"],\"articleSection\":[\"Linux\",\"Ruby\",\"Technology\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/\",\"url\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/\",\"name\":\"Nuventure Blog Jekyll Docker image missing C headers -\",\"isPartOf\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2017\/11\/jekyll-plus-docker.png\",\"datePublished\":\"2017-11-10T10:31:23+00:00\",\"dateModified\":\"2019-11-05T04:50:55+00:00\",\"description\":\"Nuventure Blog So, if you are using Jekyll Docker image and you need to install any Ruby gems that require C headers, such as raindrops in my case, which was a\",\"breadcrumb\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#primaryimage\",\"url\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2017\/11\/jekyll-plus-docker.png\",\"contentUrl\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2017\/11\/jekyll-plus-docker.png\",\"width\":950,\"height\":472},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/nuventureconnect.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Jekyll Docker image missing C headers\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#website\",\"url\":\"https:\/\/nuventureconnect.com\/blog\/\",\"name\":\"Nuventure Blog\",\"description\":\"Knowledge.transmit!\",\"publisher\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#organization\"},\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/nuventureconnect.com\/blog\/?s={search_term_string}\"},\"query-input\":\"required name=search_term_string\"}],\"inLanguage\":\"en-US\"},{\"@type\":\"Organization\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#organization\",\"name\":\"Nuventure Connect Private Limited\",\"url\":\"https:\/\/nuventureconnect.com\/blog\/\",\"logo\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#\/schema\/logo\/image\/\",\"url\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2023\/03\/logo-main-with-cartion-1.webp\",\"contentUrl\":\"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2023\/03\/logo-main-with-cartion-1.webp\",\"width\":200,\"height\":89,\"caption\":\"Nuventure Connect Private Limited\"},\"image\":{\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#\/schema\/logo\/image\/\"},\"sameAs\":[\"https:\/\/www.facebook.com\/nuventureco\/\",\"https:\/\/x.com\/nuventureco\",\"https:\/\/www.instagram.com\/nuventure\/\",\"https:\/\/in.linkedin.com\/company\/nuventure\"]},{\"@type\":\"Person\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/92ee1865fc62f5f812a01ebc360befdb\",\"name\":\"Tinu Cleatus\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/d4651d73eeb12d32186df9b61b4b1827?s=96&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/d4651d73eeb12d32186df9b61b4b1827?s=96&r=g\",\"caption\":\"Tinu Cleatus\"},\"url\":\"https:\/\/nuventureconnect.com\/blog\/author\/tinu\/\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Nuventure Blog Jekyll Docker image missing C headers -","description":"Nuventure Blog So, if you are using Jekyll Docker image and you need to install any Ruby gems that require C headers, such as raindrops in my case, which was a","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/","og_locale":"en_US","og_type":"article","og_title":"Nuventure Blog Jekyll Docker image missing C headers -","og_description":"Nuventure Blog So, if you are using Jekyll Docker image and you need to install any Ruby gems that require C headers, such as raindrops in my case, which was a","og_url":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/","og_site_name":"Nuventure Blog","article_publisher":"https:\/\/www.facebook.com\/nuventureco\/","article_published_time":"2017-11-10T10:31:23+00:00","article_modified_time":"2019-11-05T04:50:55+00:00","og_image":[{"width":950,"height":472,"url":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2017\/11\/jekyll-plus-docker.png","type":"image\/png"}],"author":"Tinu Cleatus","twitter_card":"summary_large_image","twitter_creator":"@nuventureco","twitter_site":"@nuventureco","twitter_misc":{"Written by":"Tinu Cleatus","Est. reading time":"1 minute"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#article","isPartOf":{"@id":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/"},"author":{"name":"Tinu Cleatus","@id":"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/92ee1865fc62f5f812a01ebc360befdb"},"headline":"Jekyll Docker image missing C headers","datePublished":"2017-11-10T10:31:23+00:00","dateModified":"2019-11-05T04:50:55+00:00","mainEntityOfPage":{"@id":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/"},"wordCount":143,"commentCount":0,"publisher":{"@id":"https:\/\/nuventureconnect.com\/blog\/#organization"},"image":{"@id":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#primaryimage"},"thumbnailUrl":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2017\/11\/jekyll-plus-docker.png","keywords":["alpine-linux","Docker","jekyll","linux","raindrops","unicorn"],"articleSection":["Linux","Ruby","Technology"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/","url":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/","name":"Nuventure Blog Jekyll Docker image missing C headers -","isPartOf":{"@id":"https:\/\/nuventureconnect.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#primaryimage"},"image":{"@id":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#primaryimage"},"thumbnailUrl":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2017\/11\/jekyll-plus-docker.png","datePublished":"2017-11-10T10:31:23+00:00","dateModified":"2019-11-05T04:50:55+00:00","description":"Nuventure Blog So, if you are using Jekyll Docker image and you need to install any Ruby gems that require C headers, such as raindrops in my case, which was a","breadcrumb":{"@id":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#primaryimage","url":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2017\/11\/jekyll-plus-docker.png","contentUrl":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2017\/11\/jekyll-plus-docker.png","width":950,"height":472},{"@type":"BreadcrumbList","@id":"https:\/\/nuventureconnect.com\/blog\/2017\/11\/10\/jekyll-docker-image-missing-c-headers\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/nuventureconnect.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Jekyll Docker image missing C headers"}]},{"@type":"WebSite","@id":"https:\/\/nuventureconnect.com\/blog\/#website","url":"https:\/\/nuventureconnect.com\/blog\/","name":"Nuventure Blog","description":"Knowledge.transmit!","publisher":{"@id":"https:\/\/nuventureconnect.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/nuventureconnect.com\/blog\/?s={search_term_string}"},"query-input":"required name=search_term_string"}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/nuventureconnect.com\/blog\/#organization","name":"Nuventure Connect Private Limited","url":"https:\/\/nuventureconnect.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nuventureconnect.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2023\/03\/logo-main-with-cartion-1.webp","contentUrl":"https:\/\/nuventureconnect.com\/blog\/wp-content\/uploads\/2023\/03\/logo-main-with-cartion-1.webp","width":200,"height":89,"caption":"Nuventure Connect Private Limited"},"image":{"@id":"https:\/\/nuventureconnect.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.facebook.com\/nuventureco\/","https:\/\/x.com\/nuventureco","https:\/\/www.instagram.com\/nuventure\/","https:\/\/in.linkedin.com\/company\/nuventure"]},{"@type":"Person","@id":"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/92ee1865fc62f5f812a01ebc360befdb","name":"Tinu Cleatus","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/nuventureconnect.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/d4651d73eeb12d32186df9b61b4b1827?s=96&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/d4651d73eeb12d32186df9b61b4b1827?s=96&r=g","caption":"Tinu Cleatus"},"url":"https:\/\/nuventureconnect.com\/blog\/author\/tinu\/"}]}},"amp_enabled":true,"_links":{"self":[{"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/posts\/535"}],"collection":[{"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/comments?post=535"}],"version-history":[{"count":6,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/posts\/535\/revisions"}],"predecessor-version":[{"id":717,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/posts\/535\/revisions\/717"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/media\/810"}],"wp:attachment":[{"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/media?parent=535"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/categories?post=535"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/nuventureconnect.com\/blog\/wp-json\/wp\/v2\/tags?post=535"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}