{"id":29016570,"url":"https://github.com/chef/libyajl2-gem","last_synced_at":"2025-06-25T22:30:41.380Z","repository":{"id":15834513,"uuid":"18574479","full_name":"chef/libyajl2-gem","owner":"chef","description":"gem to install the libyajl2 c-library for distributions which do not have it","archived":false,"fork":false,"pushed_at":"2023-07-19T20:29:23.000Z","size":90,"stargazers_count":1,"open_issues_count":5,"forks_count":15,"subscribers_count":15,"default_branch":"main","last_synced_at":"2025-04-25T03:36:21.293Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/chef.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE","code_of_conduct":"CODE_OF_CONDUCT.md","threat_model":null,"audit":null,"citation":null,"codeowners":".github/CODEOWNERS","security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2014-04-08T20:48:02.000Z","updated_at":"2021-11-27T18:29:58.000Z","dependencies_parsed_at":"2024-06-21T02:13:24.194Z","dependency_job_id":"546f7a5c-a509-4d4a-900b-e1eea6069b52","html_url":"https://github.com/chef/libyajl2-gem","commit_stats":{"total_commits":141,"total_committers":7,"mean_commits":"20.142857142857142","dds":"0.12765957446808507","last_synced_commit":"c5db65f0df23874c5f4cd18f7e6c388c2f387b28"},"previous_names":[],"tags_count":28,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef%2Flibyajl2-gem","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef%2Flibyajl2-gem/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef%2Flibyajl2-gem/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chef%2Flibyajl2-gem/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chef","download_url":"https://codeload.github.com/chef/libyajl2-gem/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":251835133,"owners_count":21651600,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2025-06-25T22:30:39.083Z","updated_at":"2025-06-25T22:30:41.333Z","avatar_url":"https://github.com/chef.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"libyajl2-gem\n============\n\n[![Build Status](https://travis-ci.org/chef/libyajl2-gem.svg?branch=master)](https://travis-ci.org/chef/libyajl2-gem)\n[![Code Climate](https://codeclimate.com/github/chef/libyajl2-gem.svg)](https://codeclimate.com/github/chef/libyajl2-gem)\n[![Gem Version](https://badge.fury.io/rb/libyajl2.svg)](http://badge.fury.io/rb/libyajl2)\n\n**Umbrella Project**: [Chef Foundation](https://github.com/chef/chef-oss-practices/blob/master/projects/chef-foundation.md)\n\n**Project State**: [Active](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md#active)\n\n**Issues [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days\n\n**Pull Request [Response Time Maximum](https://github.com/chef/chef-oss-practices/blob/master/repo-management/repo-states.md)**: 14 days\n\ngem to install the libyajl2 c-library for distributions which do not have it\n\n## NOTE\n\nTo build this depends on libgmp and its headers being installed.  On Ubuntu:\n\n```\napt-get install libgmp-dev\n```\n\nIf you get a mysterious \"unhandled exception\" build failure like:\n\n```\nBuilding native extensions.  This could take a while...\nERROR:  Error installing libyajl2:\n  ERROR: Failed to build gem native extension.\n\n      /home/lamont/.rvm/rubies/ruby-2.2.3/bin/ruby -r ./siteconf20151209-53133-1aq7vdk.rb extconf.rb\n      creating Makefile\n      /home/lamont/.rvm/gems/ruby-2.2.3/gems/libyajl2-1.2.0/ext/libyajl2\n      extconf.rb:104:in `makemakefiles': unhandled exception\n        from extconf.rb:138:in `\u003cmain\u003e'\n\n        extconf failed, exit code 1\n\n        Gem files will remain installed in /home/lamont/.rvm/gems/ruby-2.2.3/gems/libyajl2-1.2.0 for inspection.\n        Results logged to /home/lamont/.rvm/gems/ruby-2.2.3/extensions/x86_64-linux/2.2.0/libyajl2-1.2.0/gem_make.out\n```\n\nLook at the output of make.out in the same directory as extconf.rb, for my\nexample above that looks like:\n\n```\n# cat /home/lamont/.rvm/gems/ruby-2.2.3/gems/libyajl2-1.2.0/ext/libyajl2/make.out\ncompiling yajl_buf.c\ncompiling yajl.c\ncompiling yajl_gen.c\ncompiling yajl_tree.c\ncompiling yajl_encode.c\ncompiling yajl_parser.c\ncompiling yajl_alloc.c\ncompiling yajl_version.c\ncompiling yajl_lex.c\nlinking shared-object libyajl.so\n/usr/bin/ld: cannot find -lgmp\ncollect2: error: ld returned 1 exit status\nmake: *** [libyajl.so] Error 1\n```\n\nWhich gives the correct error that -lgmp was not found...\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchef%2Flibyajl2-gem","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchef%2Flibyajl2-gem","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchef%2Flibyajl2-gem/lists"}