{"id":289,"date":"2021-09-02T15:07:39","date_gmt":"2021-09-02T13:07:39","guid":{"rendered":"https:\/\/ptdb.ch\/?p=289"},"modified":"2021-09-02T15:07:39","modified_gmt":"2021-09-02T13:07:39","slug":"pgbackrest-2-35-on-red-hat-8-configure-error-library-yaml-is-required","status":"publish","type":"post","link":"https:\/\/ptdb.ch\/?p=289","title":{"rendered":"pgBackRest 2.35 on Red Hat 8: configure: error: library &#8216;yaml&#8217; is required"},"content":{"rendered":"<p>Compiling pgBackRest 2.35 on Red Hat 8 is slightly different, than compiling pgBackRest 2.34 on Red Hat 8. The main difference is that pgBackRest 2.35 requires now the libyaml-devel package as a pre-requisite before the software can be compiled. For more information about the pre-requisites take a look at the following page <a href=\"https:\/\/pgbackrest.org\/user-guide-rhel.html#build\">https:\/\/pgbackrest.org\/user-guide-rhel.html#build<\/a><\/p>\n<p>Without the libyaml-devel you will run into the following error:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ cd pgbackrest\/pgbackrest-release-2.35\/src\/\n$ .\/configure\nchecking for gcc... gcc\nchecking whether the C compiler works... yes\nchecking for C compiler default output file name... a.out\nchecking for suffix of executables...\nchecking whether we are cross compiling... no\nchecking for suffix of object files... o\nchecking whether we are using the GNU C compiler... yes\nchecking whether gcc accepts -g... yes\nchecking for gcc option to accept ISO C89... none needed\nchecking for gcc option to accept ISO C99... none needed\nchecking build system type... x86_64-pc-linux-gnu\nchecking host system type... x86_64-pc-linux-gnu\nchecking whether C compiler accepts -Wno-clobbered... yes\nchecking for pg_config... yes\nchecking for PQconnectdb in -lpq... yes\nchecking how to run the C preprocessor... gcc -E\nchecking for grep that handles long lines and -e... \/usr\/bin\/grep\nchecking for egrep... \/usr\/bin\/grep -E\nchecking for ANSI C header files... yes\nchecking for sys\/types.h... yes\nchecking for sys\/stat.h... yes\nchecking for stdlib.h... yes\nchecking for string.h... yes\nchecking for memory.h... yes\nchecking for strings.h... yes\nchecking for inttypes.h... yes\nchecking for stdint.h... yes\nchecking for unistd.h... yes\nchecking libpq-fe.h usability... yes\nchecking libpq-fe.h presence... yes\nchecking for libpq-fe.h... yes\nchecking for EVP_get_digestbyname in -lcrypto... yes\nchecking for SSL_new in -lssl... yes\nchecking for pkg-config... yes\nchecking for xmlSaveToBuffer in -lxml2... yes\nchecking libxml\/parser.h usability... yes\nchecking libxml\/parser.h presence... yes\nchecking for libxml\/parser.h... yes\nchecking for yaml_parser_initialize in -lyaml... no\nconfigure: error: library 'yaml' is required\n<\/pre>\n<p>Now you might think, ok that&#8217;s easy, I simply run &#8220;sudo dnf install libyaml-devel&#8221; and you are ready to go.<\/p>\n<p>I thought the same, however, starting with Red Hat 8, the libyaml-devel is not part of the standard repositories streams which are:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo dnf repolist\nUpdating Subscription Management repositories.\nrepo id                                     repo name\nrhel-8-for-x86_64-appstream-rpms            Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)\nrhel-8-for-x86_64-baseos-rpms               Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)\nrhel-8-for-x86_64-supplementary-rpms        Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)\n<\/pre>\n<p>For installing the libyaml-devel on Red Hat 8, you need the CodeReady repository.<\/p>\n<p>If you want to know how to add the CodeReady repository, please take a look at the following Red Hat articles.<\/p>\n<p><strong>Chapter 3. The CodeReady Linux Builder repository<\/strong><br \/>\n<a href=\"https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/8\/html-single\/package_manifest\/index#CodeReadyLinuxBuilder-repository\">https:\/\/access.redhat.com\/documentation\/en-us\/red_hat_enterprise_linux\/8\/html-single\/package_manifest\/index#CodeReadyLinuxBuilder-repository<\/a><\/p>\n<p><strong>How to enable and make use of content within CodeReady Linux Builder<\/strong><br \/>\n<a href=\"https:\/\/access.redhat.com\/articles\/4348511\">https:\/\/access.redhat.com\/articles\/4348511<\/a><\/p>\n<p>After you did it, your repository list looks like the following:<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo dnf repolist\nUpdating Subscription Management repositories.\nrepo id                                                repo name\ncodeready-builder-for-rhel-8-x86_64-rpms               Red Hat CodeReady Linux Builder for RHEL 8 x86_64 (RPMs)\nrhel-8-for-x86_64-appstream-rpms                       Red Hat Enterprise Linux 8 for x86_64 - AppStream (RPMs)\nrhel-8-for-x86_64-baseos-rpms                          Red Hat Enterprise Linux 8 for x86_64 - BaseOS (RPMs)\nrhel-8-for-x86_64-supplementary-rpms                   Red Hat Enterprise Linux 8 for x86_64 - Supplementary (RPMs)\n<\/pre>\n<p>Now you can easily install the missing package.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ sudo dnf install libyaml-devel\n...\n...\n\n$ rpm -qa | grep libyaml-devel\nlibyaml-devel-0.1.7-5.el8.x86_64\n<\/pre>\n<p>And compile the pgBackRest software.<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\n$ cd pgbackrest\/pgbackrest-release-2.35\/src\/\n$ .\/configure\nchecking for gcc... gcc\nchecking whether the C compiler works... yes\nchecking for C compiler default output file name... a.out\nchecking for suffix of executables...\nchecking whether we are cross compiling... no\nchecking for suffix of object files... o\nchecking whether we are using the GNU C compiler... yes\nchecking whether gcc accepts -g... yes\nchecking for gcc option to accept ISO C89... none needed\nchecking for gcc option to accept ISO C99... none needed\nchecking build system type... x86_64-pc-linux-gnu\nchecking host system type... x86_64-pc-linux-gnu\nchecking whether C compiler accepts -Wno-clobbered... yes\nchecking for pg_config... yes\nchecking for PQconnectdb in -lpq... yes\nchecking how to run the C preprocessor... gcc -E\nchecking for grep that handles long lines and -e... \/usr\/bin\/grep\nchecking for egrep... \/usr\/bin\/grep -E\nchecking for ANSI C header files... yes\nchecking for sys\/types.h... yes\nchecking for sys\/stat.h... yes\nchecking for stdlib.h... yes\nchecking for string.h... yes\nchecking for memory.h... yes\nchecking for strings.h... yes\nchecking for inttypes.h... yes\nchecking for stdint.h... yes\nchecking for unistd.h... yes\nchecking libpq-fe.h usability... yes\nchecking libpq-fe.h presence... yes\nchecking for libpq-fe.h... yes\nchecking for EVP_get_digestbyname in -lcrypto... yes\nchecking for SSL_new in -lssl... yes\nchecking for pkg-config... yes\nchecking for xmlSaveToBuffer in -lxml2... yes\nchecking libxml\/parser.h usability... yes\nchecking libxml\/parser.h presence... yes\nchecking for libxml\/parser.h... yes\nchecking for yaml_parser_initialize in -lyaml... yes   &lt;= This is working now\nchecking zlib.h usability... yes\nchecking zlib.h presence... yes\nchecking for zlib.h... yes\nchecking for deflate in -lz... yes\nchecking for zlib.h... (cached) yes\nchecking for BZ2_bzCompress in -lbz2... yes\nchecking bzlib.h usability... yes\nchecking bzlib.h presence... yes\nchecking for bzlib.h... yes\nchecking for LZ4F_isError in -llz4... yes\nchecking lz4frame.h usability... yes\nchecking lz4frame.h presence... yes\nchecking for lz4frame.h... yes\nchecking for ZSTD_isError in -lzstd... yes\nchecking zstd.h usability... yes\nchecking zstd.h presence... yes\nchecking for zstd.h... yes\nconfigure: creating .\/config.status\nconfig.status: creating Makefile\nconfig.status: creating build.auto.h\n<\/pre>\n<h3>Conclusion<\/h3>\n<p>I don&#8217;t know why Red Hat moved some packages to the CodeReady repository and make it more complicated for installing the libyaml-devel package. The good thing is that the libyaml-devel package needs only to be installed on the Build System.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Compiling pgBackRest 2.35 on Red Hat 8 is slightly different, than compiling pgBackRest 2.34 on Red Hat 8. The main difference is that pgBackRest 2.35 requires now the libyaml-devel package as a pre-requisite before the software can be compiled. For more information about the pre-requisites take a look at the following page https:\/\/pgbackrest.org\/user-guide-rhel.html#build Without the [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"ocean_post_layout":"","ocean_both_sidebars_style":"","ocean_both_sidebars_content_width":0,"ocean_both_sidebars_sidebars_width":0,"ocean_sidebar":"","ocean_second_sidebar":"","ocean_disable_margins":"enable","ocean_add_body_class":"","ocean_shortcode_before_top_bar":"","ocean_shortcode_after_top_bar":"","ocean_shortcode_before_header":"","ocean_shortcode_after_header":"","ocean_has_shortcode":"","ocean_shortcode_after_title":"","ocean_shortcode_before_footer_widgets":"","ocean_shortcode_after_footer_widgets":"","ocean_shortcode_before_footer_bottom":"","ocean_shortcode_after_footer_bottom":"","ocean_display_top_bar":"default","ocean_display_header":"default","ocean_header_style":"","ocean_center_header_left_menu":"","ocean_custom_header_template":"","ocean_custom_logo":0,"ocean_custom_retina_logo":0,"ocean_custom_logo_max_width":0,"ocean_custom_logo_tablet_max_width":0,"ocean_custom_logo_mobile_max_width":0,"ocean_custom_logo_max_height":0,"ocean_custom_logo_tablet_max_height":0,"ocean_custom_logo_mobile_max_height":0,"ocean_header_custom_menu":"","ocean_menu_typo_font_family":"","ocean_menu_typo_font_subset":"","ocean_menu_typo_font_size":0,"ocean_menu_typo_font_size_tablet":0,"ocean_menu_typo_font_size_mobile":0,"ocean_menu_typo_font_size_unit":"px","ocean_menu_typo_font_weight":"","ocean_menu_typo_font_weight_tablet":"","ocean_menu_typo_font_weight_mobile":"","ocean_menu_typo_transform":"","ocean_menu_typo_transform_tablet":"","ocean_menu_typo_transform_mobile":"","ocean_menu_typo_line_height":0,"ocean_menu_typo_line_height_tablet":0,"ocean_menu_typo_line_height_mobile":0,"ocean_menu_typo_line_height_unit":"","ocean_menu_typo_spacing":0,"ocean_menu_typo_spacing_tablet":0,"ocean_menu_typo_spacing_mobile":0,"ocean_menu_typo_spacing_unit":"","ocean_menu_link_color":"","ocean_menu_link_color_hover":"","ocean_menu_link_color_active":"","ocean_menu_link_background":"","ocean_menu_link_hover_background":"","ocean_menu_link_active_background":"","ocean_menu_social_links_bg":"","ocean_menu_social_hover_links_bg":"","ocean_menu_social_links_color":"","ocean_menu_social_hover_links_color":"","ocean_disable_title":"default","ocean_disable_heading":"default","ocean_post_title":"","ocean_post_subheading":"","ocean_post_title_style":"","ocean_post_title_background_color":"","ocean_post_title_background":0,"ocean_post_title_bg_image_position":"","ocean_post_title_bg_image_attachment":"","ocean_post_title_bg_image_repeat":"","ocean_post_title_bg_image_size":"","ocean_post_title_height":0,"ocean_post_title_bg_overlay":0.5,"ocean_post_title_bg_overlay_color":"","ocean_disable_breadcrumbs":"default","ocean_breadcrumbs_color":"","ocean_breadcrumbs_separator_color":"","ocean_breadcrumbs_links_color":"","ocean_breadcrumbs_links_hover_color":"","ocean_display_footer_widgets":"default","ocean_display_footer_bottom":"default","ocean_custom_footer_template":"","ocean_post_oembed":"","ocean_post_self_hosted_media":"","ocean_post_video_embed":"","ocean_link_format":"","ocean_link_format_target":"self","ocean_quote_format":"","ocean_quote_format_link":"post","ocean_gallery_link_images":"on","ocean_gallery_id":[],"footnotes":""},"categories":[2,5,6,7],"tags":[20,21],"class_list":["post-289","post","type-post","status-publish","format-standard","hentry","category-db","category-os","category-postgresql","category-red-hat","tag-pgbackrest","tag-postgresql","entry"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v26.6 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>pgBackRest 2.35 on Red Hat 8: configure: error: library &#039;yaml&#039; is required - ptdb - Platinum DB<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/ptdb.ch\/?p=289\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"pgBackRest 2.35 on Red Hat 8: configure: error: library &#039;yaml&#039; is required - ptdb - Platinum DB\" \/>\n<meta property=\"og:description\" content=\"Compiling pgBackRest 2.35 on Red Hat 8 is slightly different, than compiling pgBackRest 2.34 on Red Hat 8. The main difference is that pgBackRest 2.35 requires now the libyaml-devel package as a pre-requisite before the software can be compiled. For more information about the pre-requisites take a look at the following page https:\/\/pgbackrest.org\/user-guide-rhel.html#build Without the [&hellip;]\" \/>\n<meta property=\"og:url\" content=\"https:\/\/ptdb.ch\/?p=289\" \/>\n<meta property=\"og:site_name\" content=\"ptdb - Platinum DB\" \/>\n<meta property=\"article:published_time\" content=\"2021-09-02T13:07:39+00:00\" \/>\n<meta name=\"author\" content=\"admin\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"admin\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"WebPage\",\"@id\":\"https:\/\/ptdb.ch\/?p=289\",\"url\":\"https:\/\/ptdb.ch\/?p=289\",\"name\":\"pgBackRest 2.35 on Red Hat 8: configure: error: library 'yaml' is required - ptdb - Platinum DB\",\"isPartOf\":{\"@id\":\"https:\/\/ptdb.ch\/#website\"},\"datePublished\":\"2021-09-02T13:07:39+00:00\",\"author\":{\"@id\":\"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b\"},\"breadcrumb\":{\"@id\":\"https:\/\/ptdb.ch\/?p=289#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/ptdb.ch\/?p=289\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/ptdb.ch\/?p=289#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\/\/ptdb.ch\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"pgBackRest 2.35 on Red Hat 8: configure: error: library &#8216;yaml&#8217; is required\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/ptdb.ch\/#website\",\"url\":\"https:\/\/ptdb.ch\/\",\"name\":\"ptdb - Platinum DB\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/ptdb.ch\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b\",\"name\":\"admin\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/ptdb.ch\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g\",\"contentUrl\":\"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g\",\"caption\":\"admin\"},\"sameAs\":[\"https:\/\/ptdb.ch\"],\"url\":\"https:\/\/ptdb.ch\/?author=1\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"pgBackRest 2.35 on Red Hat 8: configure: error: library 'yaml' is required - ptdb - Platinum DB","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:\/\/ptdb.ch\/?p=289","og_locale":"en_US","og_type":"article","og_title":"pgBackRest 2.35 on Red Hat 8: configure: error: library 'yaml' is required - ptdb - Platinum DB","og_description":"Compiling pgBackRest 2.35 on Red Hat 8 is slightly different, than compiling pgBackRest 2.34 on Red Hat 8. The main difference is that pgBackRest 2.35 requires now the libyaml-devel package as a pre-requisite before the software can be compiled. For more information about the pre-requisites take a look at the following page https:\/\/pgbackrest.org\/user-guide-rhel.html#build Without the [&hellip;]","og_url":"https:\/\/ptdb.ch\/?p=289","og_site_name":"ptdb - Platinum DB","article_published_time":"2021-09-02T13:07:39+00:00","author":"admin","twitter_card":"summary_large_image","twitter_misc":{"Written by":"admin","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"WebPage","@id":"https:\/\/ptdb.ch\/?p=289","url":"https:\/\/ptdb.ch\/?p=289","name":"pgBackRest 2.35 on Red Hat 8: configure: error: library 'yaml' is required - ptdb - Platinum DB","isPartOf":{"@id":"https:\/\/ptdb.ch\/#website"},"datePublished":"2021-09-02T13:07:39+00:00","author":{"@id":"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b"},"breadcrumb":{"@id":"https:\/\/ptdb.ch\/?p=289#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/ptdb.ch\/?p=289"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/ptdb.ch\/?p=289#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/ptdb.ch\/"},{"@type":"ListItem","position":2,"name":"pgBackRest 2.35 on Red Hat 8: configure: error: library &#8216;yaml&#8217; is required"}]},{"@type":"WebSite","@id":"https:\/\/ptdb.ch\/#website","url":"https:\/\/ptdb.ch\/","name":"ptdb - Platinum DB","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/ptdb.ch\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/ptdb.ch\/#\/schema\/person\/0b7baf52d23e71d85e1c95442306090b","name":"admin","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/ptdb.ch\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/1a3dffc48c5f6bae0b88a9f0b2a986d48d322673fbc2880c5abbfab96e45da8a?s=96&d=mm&r=g","caption":"admin"},"sameAs":["https:\/\/ptdb.ch"],"url":"https:\/\/ptdb.ch\/?author=1"}]}},"_links":{"self":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts\/289","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=289"}],"version-history":[{"count":0,"href":"https:\/\/ptdb.ch\/index.php?rest_route=\/wp\/v2\/posts\/289\/revisions"}],"wp:attachment":[{"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=289"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=289"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/ptdb.ch\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=289"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}