{"id":13513460,"url":"https://github.com/ged/ruby-pg","last_synced_at":"2025-05-12T13:31:56.584Z","repository":{"id":9568715,"uuid":"11481074","full_name":"ged/ruby-pg","owner":"ged","description":"A PostgreSQL client library for Ruby","archived":false,"fork":false,"pushed_at":"2025-04-08T11:47:07.000Z","size":3590,"stargazers_count":821,"open_issues_count":18,"forks_count":191,"subscribers_count":30,"default_branch":"master","last_synced_at":"2025-05-08T11:02:28.995Z","etag":null,"topics":["c","client","database","postgresql","rdbms","ruby"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ged.png","metadata":{"files":{"readme":"README-OS_X.rdoc","changelog":"History.md","contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2013-07-17T16:20:32.000Z","updated_at":"2025-05-07T16:08:43.000Z","dependencies_parsed_at":"2024-02-28T13:40:46.931Z","dependency_job_id":"511e1b67-0f43-4561-ba0a-cb2e5e254c52","html_url":"https://github.com/ged/ruby-pg","commit_stats":{"total_commits":1888,"total_committers":66,"mean_commits":"28.606060606060606","dds":0.3082627118644068,"last_synced_commit":"c6d1047b419e87e57aaec076d9338e80f9bd269a"},"previous_names":[],"tags_count":61,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ged%2Fruby-pg","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ged%2Fruby-pg/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ged%2Fruby-pg/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ged%2Fruby-pg/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ged","download_url":"https://codeload.github.com/ged/ruby-pg/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253411524,"owners_count":21904147,"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":["c","client","database","postgresql","rdbms","ruby"],"created_at":"2024-08-01T05:00:26.533Z","updated_at":"2025-05-12T13:31:56.546Z","avatar_url":"https://github.com/ged.png","language":"C","readme":"= Compiling on MacOS X\n\nThe EnterpriseDB packages are the recommended PostgreSQL installations to use\nwith MacOS X. They eliminate most or all of the issues with getting 'pg'\ninstalled, linked correctly, and running.\n\n== Segfaults and SSL Support\n\nIf you need a custom installation of PostgreSQL, you should ensure that you\neither compile it against the same version of OpenSSL as the OpenSSL extension\nof the Ruby you'll be using, or compile it without SSL support. If you fail to\ndo this, you will likely see segfaults when you use 'pg' and the 'openssl'\nextension at the same time. You can see what library it's linked against using\n'otool -L'; for example, on my 10.7 machine I use for 'pg' development:\n\n    $ otool -L /System/Library/Frameworks/Ruby.framework/Versions\\\n      /1.8/usr/lib/ruby/1.8/universal-darwin11.0/openssl.bundle\n\n    /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/\\\n        lib/ruby/1.8/universal-darwin11.0/openssl.bundle:\n        /System/Library/Frameworks/Ruby.framework/Versions/1.8/\\\n            usr/lib/libruby.1.dylib (compatibility version 1.8.0, \\\n            current version 1.8.7)\n        /usr/lib/libssl.0.9.8.dylib (compatibility version 0.9.8, \\\n            current version 0.9.8)\n        /usr/lib/libcrypto.0.9.8.dylib (compatibility version 0.9.8, \\\n            current version 0.9.8)\n        /usr/lib/libSystem.B.dylib (compatibility version 1.0.0, \\\n            current version 159.0.0)\n\n\n== Dealing with Installation Problems\n\nIf you are building/installing pg on MacOS X, and the installation doesn't\nwork at first, here are a few things you can try.\n\n=== pg_config\n\nThe first thing you should do is ensure that the 'pg_config' tool that comes\nwith Postgres is in your path. If it isn't, or the one that's first in your\npath isn't the one that was installed with the Postgres you want to build\nagainst, you can specify the path to it with the --with-pg-config option.\n\nFor example, if you're using the Ruby binary that comes with OSX, and\nPostgreSQL 9.0.x installed from MacPorts, do:\n\n\tgem install -- --with-pg-config=/opt/local/lib/postgresql90/bin/pg_config\n\n=== ARCHFLAGS and Universal Binaries\n\nOS X supports both architecture-specific binaries (e.g. i386), as well as\nuniversal binaries (i.e. i386 \u0026 ppc). If Ruby is built as a universal binary\nand PostgreSQL is not, you need to specify the path to the appropriate\npg_config binary or set the environment variable ARCHFLAGS appropriately.\n\nAlternatively, if the build system can't figure out which architectures it\nshould include, you may need to set the 'ARCHFLAGS' environment variable\nexplicitly:\n\n\tsudo env ARCHFLAGS='-arch x86_64' gem install pg\n\nor, if you're building from source:\n\n\trake compile ARCHFLAGS=\"-arch x86_64\"\n\nNote that the recommended EnterpriseDB packages are correctly compiled as\nuniversal binaries, and don't need any of these workarounds.\n\n","funding_links":[],"categories":["C","Database Drivers","Compiled list","Language bindings"],"sub_categories":["plv8:"],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fged%2Fruby-pg","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fged%2Fruby-pg","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fged%2Fruby-pg/lists"}