Skip to content

Fix README install steps and supported C++ versions - #8

Open
yuhruh wants to merge 1 commit into
serpapi:mainfrom
yuhruh:fix-readme-install
Open

yuhruh wants to merge 1 commit into
serpapi:mainfrom
yuhruh:fix-readme-install

Conversation

@yuhruh

@yuhruh yuhruh commented Nov 20, 2026

Copy link
Copy Markdown

Following the README's install steps on a clean machine doesn't work as written. This fixes the parts I could confirm from the repo itself. README only, no code changes.

Changes

  • Archive directory: cd serpapi-0.5.0 → cd serpapi-cpp-0.5.0. The v0.5.0 tag archive that the README downloads extracts to serpapi-cpp-0.5.0/ (checked with curl -sL .../v0.5.0.tar.gz | tar tz | head -1).
  • Prerequisites: the README listed only RapidJSON, but meson.build also requires dependency('libcurl'). The install lines now include libcurl plus the build tools (Meson, Ninja, pkg-config, a compiler). Package names are taken from the install:linux and install:apple tasks in the Rakefile, minus the test and lint tools.
  • Duplicate heading: ### Installation was nested directly under ## Installation; renamed the inner one to ### Build and install.
  • Supported C++ versions: removed C++20 from "validated by Github Actions". CI runs a single build and meson.build sets cpp_std=c++17.

Not included

The "Run with Docker" section runs make install_linux reset all, but the repo has no Makefile (the build is driven by the Rakefile). I left it alone because I couldn't test a replacement. Happy to remove it or rewrite it around the rake tasks in a follow-up, whichever you prefer.

Testing

Docs-only change. I have not run a clean-room build with the new package lists; they mirror the Rakefile's install tasks, which CI already uses on Ubuntu.

🤖 Generated with Claude Code

https://claude.ai/code/session_01TuohZaKbwR9n1wsfdZSYQ1

- Use the directory the v0.5.0 tag archive actually extracts to
  (serpapi-cpp-0.5.0, not serpapi-0.5.0).
- List libcurl and the build tools as prerequisites; meson.build
  requires libcurl alongside RapidJSON. Package names follow the
  install:linux and install:apple tasks in the Rakefile.
- Rename the nested duplicate "Installation" heading.
- Drop C++20 from the versions validated by CI, which builds C++17 only.

Co-Authored-By: Claude Fable 5.2 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01TuohZaKbwR9n1wsfdZSYQ1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant