| 1 |
|
| 2 |
<!DOCTYPE html> |
| 3 |
|
| 4 |
|
| 5 |
<html lang="en" data-content_root="../../../" > |
| 6 |
|
| 7 |
<head> |
| 8 |
<meta charset="utf-8" /> |
| 9 |
<meta name="viewport" content="width=device-width, initial-scale=1.0" /><meta name="viewport" content="width=device-width, initial-scale=1" /> |
| 10 |
|
| 11 |
<title>How to build Groonga at the repository by GNU Autotools — Groonga v16.0.9 documentation</title> |
| 12 |
|
| 13 |
|
| 14 |
|
| 15 |
<script data-cfasync="false"> |
| 16 |
document.documentElement.dataset.mode = localStorage.getItem("mode") || ""; |
| 17 |
document.documentElement.dataset.theme = localStorage.getItem("theme") || ""; |
| 18 |
</script> |
| 19 |
|
| 20 |
|
| 21 |
|
| 22 |
<noscript> |
| 23 |
<style> |
| 24 |
.pst-js-only { display: none !important; } |
| 25 |
|
| 26 |
</style> |
| 27 |
</noscript> |
| 28 |
|
| 29 |
|
| 30 |
<link href="../../../_static/styles/theme.css?digest=90905a2f556bf617f1a9" rel="stylesheet" /> |
| 31 |
<link href="../../../_static/styles/pydata-sphinx-theme.css?digest=90905a2f556bf617f1a9" rel="stylesheet" /> |
| 32 |
|
| 33 |
<link rel="stylesheet" type="text/css" href="../../../_static/pygments.css?v=8f2a1f02" /> |
| 34 |
|
| 35 |
|
| 36 |
<script defer src="../../../_static/scripts/fontawesome.js?digest=90905a2f556bf617f1a9"></script> |
| 37 |
|
| 38 |
<link rel="preload" as="script" href="../../../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9" /> |
| 39 |
<link rel="preload" as="script" href="../../../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9" /> |
| 40 |
|
| 41 |
<script src="../../../_static/documentation_options.js?v=2fcb8d4f"></script> |
| 42 |
<script src="../../../_static/doctools.js?v=fd6eb6e6"></script> |
| 43 |
<script src="../../../_static/sphinx_highlight.js?v=6ffebe34"></script> |
| 44 |
<script> |
| 45 |
window.dataLayer = window.dataLayer || []; |
| 46 |
function gtag(){ dataLayer.push(arguments); } |
| 47 |
gtag('consent', 'default', { |
| 48 |
'ad_storage': 'denied', |
| 49 |
'ad_user_data': 'denied', |
| 50 |
'ad_personalization': 'denied', |
| 51 |
'analytics_storage': 'denied' |
| 52 |
}); |
| 53 |
</script> |
| 54 |
<script async="async" src="https://www.googletagmanager.com/gtag/js?id=G-MDK38RHNPW"></script> |
| 55 |
<script> |
| 56 |
window.dataLayer = window.dataLayer || []; |
| 57 |
function gtag(){dataLayer.push(arguments);} |
| 58 |
gtag('js', new Date()); |
| 59 |
gtag('config', 'G-MDK38RHNPW'); |
| 60 |
</script> |
| 61 |
<script>DOCUMENTATION_OPTIONS.pagename = 'contribution/development/build/unix_autotools';</script> |
| 62 |
<script> |
| 63 |
DOCUMENTATION_OPTIONS.theme_version = '0.20.0'; |
| 64 |
DOCUMENTATION_OPTIONS.theme_switcher_json_url = 'https://groonga.org/docs/_static/switcher.json'; |
| 65 |
DOCUMENTATION_OPTIONS.theme_switcher_version_match = 'english'; |
| 66 |
DOCUMENTATION_OPTIONS.show_version_warning_banner = |
| 67 |
false; |
| 68 |
</script> |
| 69 |
<script>DOCUMENTATION_OPTIONS.search_as_you_type = false;</script> |
| 70 |
<link rel="icon" href="../../../_static/favicon.ico"/> |
| 71 |
<link rel="index" title="Index" href="../../../genindex.html" /> |
| 72 |
<link rel="search" title="Search" href="../../../search.html" /> |
| 73 |
<meta name="viewport" content="width=device-width, initial-scale=1"/> |
| 74 |
<meta name="docsearch:language" content="en"/> |
| 75 |
<meta name="docsearch:version" content="16.0.9" /> |
| 76 |
|
| 77 |
|
| 78 |
<script src="../../../_static/searchtools.js"></script> |
| 79 |
<script src="../../../_static/language_data.js"></script> |
| 80 |
<script src="../../../searchindex.js"></script> |
| 81 |
|
| 82 |
</head> |
| 83 |
<body data-default-mode=""> |
| 84 |
|
| 85 |
|
| 86 |
<div id="pst-skip-link" class="skip-link d-print-none"><a href="#main-content">Skip to main content</a></div> |
| 87 |
|
| 88 |
|
| 89 |
<div id="pst-scroll-pixel-helper"></div> |
| 90 |
|
| 91 |
<button type="button" class="btn rounded-pill" id="pst-back-to-top"> |
| 92 |
<i class="fa-solid fa-arrow-up"></i>Back to top</button> |
| 93 |
|
| 94 |
|
| 95 |
|
| 96 |
|
| 97 |
<dialog id="pst-search-dialog"> |
| 98 |
|
| 99 |
<form class="bd-search d-flex align-items-center" |
| 100 |
action="../../../search.html" |
| 101 |
method="get"> |
| 102 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 103 |
<input type="search" |
| 104 |
class="form-control" |
| 105 |
name="q" |
| 106 |
placeholder="Search the docs ..." |
| 107 |
aria-label="Search the docs ..." |
| 108 |
autocomplete="off" |
| 109 |
autocorrect="off" |
| 110 |
autocapitalize="off" |
| 111 |
spellcheck="false"/> |
| 112 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd>K</kbd></span> |
| 113 |
</form> |
| 114 |
</dialog> |
| 115 |
|
| 116 |
<div class="pst-async-banner-revealer d-none"> |
| 117 |
<aside id="bd-header-version-warning" class="d-none d-print-none" aria-label="Version warning"></aside> |
| 118 |
</div> |
| 119 |
|
| 120 |
|
| 121 |
<header id="pst-header" class="bd-header navbar navbar-expand-lg bd-navbar d-print-none"> |
| 122 |
<div class="bd-header__inner bd-page-width"> |
| 123 |
<button class="pst-navbar-icon sidebar-toggle primary-toggle" aria-label="Site navigation"> |
| 124 |
<span class="fa-solid fa-bars"></span> |
| 125 |
</button> |
| 126 |
|
| 127 |
|
| 128 |
<div class="col-lg-3 navbar-header-items__start"> |
| 129 |
|
| 130 |
<div class="navbar-item"> |
| 131 |
|
| 132 |
|
| 133 |
|
| 134 |
|
| 135 |
|
| 136 |
<a class="navbar-brand logo" href="https://groonga.org/"> |
| 137 |
|
| 138 |
|
| 139 |
|
| 140 |
|
| 141 |
|
| 142 |
|
| 143 |
|
| 144 |
|
| 145 |
|
| 146 |
|
| 147 |
<img src="../../../_static/groonga.png" class="logo__image only-light" alt="Groonga v16.0.9 documentation - Home"/> |
| 148 |
<img src="../../../_static/groonga.png" class="logo__image only-dark pst-js-only" alt="Groonga v16.0.9 documentation - Home"/> |
| 149 |
|
| 150 |
|
| 151 |
</a></div> |
| 152 |
|
| 153 |
</div> |
| 154 |
|
| 155 |
<div class="col-lg-9 navbar-header-items"> |
| 156 |
|
| 157 |
|
| 158 |
<div class="navbar-header-items__end"> |
| 159 |
|
| 160 |
<div class="navbar-item navbar-persistent--container"> |
| 161 |
|
| 162 |
|
| 163 |
<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip"> |
| 164 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 165 |
<span class="search-button__default-text">Search</span> |
| 166 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span> |
| 167 |
</button> |
| 168 |
</div> |
| 169 |
|
| 170 |
|
| 171 |
<div class="navbar-item"> |
| 172 |
|
| 173 |
<div class="theme-switch-container dropdown pst-js-only" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Color mode"> |
| 174 |
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button dropdown-toggle" aria-label="Color mode" data-bs-toggle="dropdown"> |
| 175 |
<i class="theme-switch fa-solid fa-sun fa-lg fa-fw" data-mode="light" title="Light"></i> |
| 176 |
<i class="theme-switch fa-solid fa-moon fa-lg fa-fw" data-mode="dark" title="Dark"></i> |
| 177 |
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg fa-fw" data-mode="auto" title="System Settings"></i> |
| 178 |
</button> |
| 179 |
<ul class="dropdown-menu dropdown-menu-end"> |
| 180 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg fa-fw me-1"></i>System Settings</button></li> |
| 181 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="light"><i class="fa-solid fa-sun fa-lg fa-fw me-1"></i>Light</button></li> |
| 182 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="dark"><i class="fa-solid fa-moon fa-lg fa-fw me-1"></i>Dark</button></li> |
| 183 |
</ul> |
| 184 |
</div></div> |
| 185 |
|
| 186 |
<div class="navbar-item"><ul class="navbar-icon-links" |
| 187 |
aria-label="Icon Links"> |
| 188 |
<li class="nav-item"> |
| 189 |
|
| 190 |
|
| 191 |
|
| 192 |
|
| 193 |
|
| 194 |
|
| 195 |
|
| 196 |
|
| 197 |
<a href="https://github.com/groonga/groonga" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i><span class="visually-hidden">GitHub</span></a> |
| 198 |
</li> |
| 199 |
<li class="nav-item"> |
| 200 |
|
| 201 |
|
| 202 |
|
| 203 |
|
| 204 |
|
| 205 |
|
| 206 |
|
| 207 |
|
| 208 |
<a href="https://twitter.com/groonga" title="Twitter" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-twitter fa-lg" aria-hidden="true"></i><span class="visually-hidden">Twitter</span></a> |
| 209 |
</li> |
| 210 |
<li class="nav-item"> |
| 211 |
|
| 212 |
|
| 213 |
|
| 214 |
|
| 215 |
|
| 216 |
|
| 217 |
|
| 218 |
|
| 219 |
<a href="/blog" title="Blog" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fas fa-blog fa-lg" aria-hidden="true"></i><span class="visually-hidden">Blog</span></a> |
| 220 |
</li> |
| 221 |
</ul></div> |
| 222 |
|
| 223 |
<div class="navbar-item"> |
| 224 |
<div class="version-switcher__container dropdown pst-js-only"> |
| 225 |
<button id="pst-version-switcher-button-2" |
| 226 |
type="button" |
| 227 |
class="version-switcher__button btn btn-sm dropdown-toggle" |
| 228 |
data-bs-toggle="dropdown" |
| 229 |
aria-haspopup="listbox" |
| 230 |
aria-controls="pst-version-switcher-list-2" |
| 231 |
aria-label="Version switcher list" |
| 232 |
> |
| 233 |
Choose version |
| 234 |
<span class="caret"></span> |
| 235 |
</button> |
| 236 |
<div id="pst-version-switcher-list-2" |
| 237 |
class="version-switcher__menu dropdown-menu list-group-flush py-0" |
| 238 |
role="listbox" aria-labelledby="pst-version-switcher-button-2"> |
| 239 |
|
| 240 |
</div> |
| 241 |
</div></div> |
| 242 |
|
| 243 |
</div> |
| 244 |
|
| 245 |
</div> |
| 246 |
|
| 247 |
|
| 248 |
<div class="navbar-persistent--mobile"> |
| 249 |
|
| 250 |
<button class="btn search-button-field search-button__button pst-js-only" title="Search" aria-label="Search" data-bs-placement="bottom" data-bs-toggle="tooltip"> |
| 251 |
<i class="fa-solid fa-magnifying-glass"></i> |
| 252 |
<span class="search-button__default-text">Search</span> |
| 253 |
<span class="search-button__kbd-shortcut"><kbd class="kbd-shortcut__modifier">Ctrl</kbd>+<kbd class="kbd-shortcut__modifier">K</kbd></span> |
| 254 |
</button> |
| 255 |
</div> |
| 256 |
|
| 257 |
|
| 258 |
|
| 259 |
<button class="pst-navbar-icon sidebar-toggle secondary-toggle" aria-label="On this page"> |
| 260 |
<span class="fa-solid fa-outdent"></span> |
| 261 |
</button> |
| 262 |
|
| 263 |
</div> |
| 264 |
|
| 265 |
</header> |
| 266 |
|
| 267 |
|
| 268 |
<div class="bd-container"> |
| 269 |
<div class="bd-container__inner bd-page-width"> |
| 270 |
|
| 271 |
|
| 272 |
|
| 273 |
|
| 274 |
|
| 275 |
<dialog id="pst-primary-sidebar-modal"></dialog> |
| 276 |
<div id="pst-primary-sidebar" class="bd-sidebar-primary bd-sidebar hide-on-wide"> |
| 277 |
|
| 278 |
|
| 279 |
|
| 280 |
<div class="sidebar-header-items sidebar-primary__section"> |
| 281 |
|
| 282 |
|
| 283 |
|
| 284 |
|
| 285 |
<div class="sidebar-header-items__end"> |
| 286 |
|
| 287 |
<div class="navbar-item"> |
| 288 |
|
| 289 |
<div class="theme-switch-container dropdown pst-js-only" data-bs-toggle="tooltip" data-bs-placement="bottom" title="Color mode"> |
| 290 |
<button class="btn btn-sm nav-link pst-navbar-icon theme-switch-button dropdown-toggle" aria-label="Color mode" data-bs-toggle="dropdown"> |
| 291 |
<i class="theme-switch fa-solid fa-sun fa-lg fa-fw" data-mode="light" title="Light"></i> |
| 292 |
<i class="theme-switch fa-solid fa-moon fa-lg fa-fw" data-mode="dark" title="Dark"></i> |
| 293 |
<i class="theme-switch fa-solid fa-circle-half-stroke fa-lg fa-fw" data-mode="auto" title="System Settings"></i> |
| 294 |
</button> |
| 295 |
<ul class="dropdown-menu dropdown-menu-end"> |
| 296 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="auto"><i class="fa-solid fa-circle-half-stroke fa-lg fa-fw me-1"></i>System Settings</button></li> |
| 297 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="light"><i class="fa-solid fa-sun fa-lg fa-fw me-1"></i>Light</button></li> |
| 298 |
<li><button class="dropdown-item d-flex align-items-center theme-change-button" data-mode="dark"><i class="fa-solid fa-moon fa-lg fa-fw me-1"></i>Dark</button></li> |
| 299 |
</ul> |
| 300 |
</div></div> |
| 301 |
|
| 302 |
<div class="navbar-item"><ul class="navbar-icon-links" |
| 303 |
aria-label="Icon Links"> |
| 304 |
<li class="nav-item"> |
| 305 |
|
| 306 |
|
| 307 |
|
| 308 |
|
| 309 |
|
| 310 |
|
| 311 |
|
| 312 |
|
| 313 |
<a href="https://github.com/groonga/groonga" title="GitHub" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-github fa-lg" aria-hidden="true"></i><span class="visually-hidden">GitHub</span></a> |
| 314 |
</li> |
| 315 |
<li class="nav-item"> |
| 316 |
|
| 317 |
|
| 318 |
|
| 319 |
|
| 320 |
|
| 321 |
|
| 322 |
|
| 323 |
|
| 324 |
<a href="https://twitter.com/groonga" title="Twitter" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fa-brands fa-square-twitter fa-lg" aria-hidden="true"></i><span class="visually-hidden">Twitter</span></a> |
| 325 |
</li> |
| 326 |
<li class="nav-item"> |
| 327 |
|
| 328 |
|
| 329 |
|
| 330 |
|
| 331 |
|
| 332 |
|
| 333 |
|
| 334 |
|
| 335 |
<a href="/blog" title="Blog" class="nav-link pst-navbar-icon" rel="noopener" target="_blank" data-bs-toggle="tooltip" data-bs-placement="bottom"><i class="fas fa-blog fa-lg" aria-hidden="true"></i><span class="visually-hidden">Blog</span></a> |
| 336 |
</li> |
| 337 |
</ul></div> |
| 338 |
|
| 339 |
<div class="navbar-item"> |
| 340 |
<div class="version-switcher__container dropdown pst-js-only"> |
| 341 |
<button id="pst-version-switcher-button-3" |
| 342 |
type="button" |
| 343 |
class="version-switcher__button btn btn-sm dropdown-toggle" |
| 344 |
data-bs-toggle="dropdown" |
| 345 |
aria-haspopup="listbox" |
| 346 |
aria-controls="pst-version-switcher-list-3" |
| 347 |
aria-label="Version switcher list" |
| 348 |
> |
| 349 |
Choose version |
| 350 |
<span class="caret"></span> |
| 351 |
</button> |
| 352 |
<div id="pst-version-switcher-list-3" |
| 353 |
class="version-switcher__menu dropdown-menu list-group-flush py-0" |
| 354 |
role="listbox" aria-labelledby="pst-version-switcher-button-3"> |
| 355 |
|
| 356 |
</div> |
| 357 |
</div></div> |
| 358 |
|
| 359 |
</div> |
| 360 |
|
| 361 |
</div> |
| 362 |
|
| 363 |
|
| 364 |
<div class="sidebar-primary-items__end sidebar-primary__section"> |
| 365 |
<div class="sidebar-primary-item"> |
| 366 |
<div id="ethical-ad-placement" |
| 367 |
class="flat" |
| 368 |
data-ea-publisher="readthedocs" |
| 369 |
data-ea-type="readthedocs-sidebar" |
| 370 |
data-ea-manual="true"> |
| 371 |
</div></div> |
| 372 |
</div> |
| 373 |
|
| 374 |
|
| 375 |
</div> |
| 376 |
|
| 377 |
<main id="main-content" class="bd-main" role="main"> |
| 378 |
|
| 379 |
|
| 380 |
<div class="bd-content"> |
| 381 |
<div class="bd-article-container"> |
| 382 |
|
| 383 |
<div class="bd-header-article d-print-none"> |
| 384 |
<div class="header-article-items header-article__inner"> |
| 385 |
|
| 386 |
<div class="header-article-items__start"> |
| 387 |
|
| 388 |
<div class="header-article-item"> |
| 389 |
|
| 390 |
<nav aria-label="Breadcrumb" class="d-print-none"> |
| 391 |
<ul class="bd-breadcrumbs"> |
| 392 |
|
| 393 |
<li class="breadcrumb-item breadcrumb-home"> |
| 394 |
<a href="../../../index.html" class="nav-link" aria-label="Home"> |
| 395 |
<i class="fa-solid fa-home"></i> |
| 396 |
</a> |
| 397 |
</li> |
| 398 |
<li class="breadcrumb-item active" aria-current="page"><span class="ellipsis">How to build Groonga at the repository by GNU Autotools</span></li> |
| 399 |
</ul> |
| 400 |
</nav> |
| 401 |
</div> |
| 402 |
|
| 403 |
</div> |
| 404 |
|
| 405 |
|
| 406 |
</div> |
| 407 |
</div> |
| 408 |
|
| 409 |
|
| 410 |
|
| 411 |
|
| 412 |
<div id="searchbox"></div> |
| 413 |
<article class="bd-article"> |
| 414 |
|
| 415 |
<div class="admonition warning"> |
| 416 |
<p class="admonition-title">Warning</p> |
| 417 |
<p>Building with GNU Autotools is deprecated, you should build with CMake: <a class="reference internal" href="../../../install/cmake.html"><span class="doc">Others: Build with CMake</span></a></p> |
| 418 |
</div> |
| 419 |
<section id="how-to-build-groonga-at-the-repository-by-gnu-autotools"> |
| 420 |
<h1>How to build Groonga at the repository by GNU Autotools<a class="headerlink" href="#how-to-build-groonga-at-the-repository-by-gnu-autotools" title="Link to this heading">#</a></h1> |
| 421 |
<p>This document describes how to build Groonga at the repository by GNU |
| 422 |
Autotools.</p> |
| 423 |
<p>You can’t choose this way if you develop Groonga on Windows. If you |
| 424 |
want to use Windows for developing Groonga, see <a class="reference internal" href="windows_cmake.html"><span class="doc">How to build Groonga at the repository by CMake on Windows</span></a>.</p> |
| 425 |
<section id="install-depended-software"> |
| 426 |
<h2>Install depended software<a class="headerlink" href="#install-depended-software" title="Link to this heading">#</a></h2> |
| 427 |
<p>TODO</p> |
| 428 |
<blockquote> |
| 429 |
<div><ul class="simple"> |
| 430 |
<li><p><a class="reference external" href="http://www.gnu.org/software/autoconf/">Autoconf</a></p></li> |
| 431 |
<li><p><a class="reference external" href="http://www.gnu.org/software/automake/">Automake</a></p></li> |
| 432 |
<li><p><a class="reference external" href="http://www.gnu.org/software/libtool/">GNU Libtool</a></p></li> |
| 433 |
<li><p><a class="reference external" href="https://www.ruby-lang.org/">Ruby</a></p></li> |
| 434 |
<li><p><a class="reference external" href="https://git-scm.com/">Git</a></p></li> |
| 435 |
<li><p><a class="reference external" href="http://cutter.sourceforge.net/">Cutter</a></p></li> |
| 436 |
<li><p>…</p></li> |
| 437 |
</ul> |
| 438 |
</div></blockquote> |
| 439 |
</section> |
| 440 |
<section id="checkout-groonga-from-the-repository"> |
| 441 |
<h2>Checkout Groonga from the repository<a class="headerlink" href="#checkout-groonga-from-the-repository" title="Link to this heading">#</a></h2> |
| 442 |
<p>Users use released source archive. But developers must build Groonga |
| 443 |
at the repository. Because source code in the repository is the |
| 444 |
latest.</p> |
| 445 |
<p>The Groonga repository is hosted on <a class="reference external" href="https://github.com/groonga/groonga">GitHub</a>. Checkout the latest source |
| 446 |
code from the repository:</p> |
| 447 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">git</span> <span class="n">clone</span> <span class="o">--</span><span class="n">recursive</span> <span class="n">git</span><span class="nd">@github</span><span class="o">.</span><span class="n">com</span><span class="p">:</span><span class="n">groonga</span><span class="o">/</span><span class="n">groonga</span><span class="o">.</span><span class="n">git</span> |
| 448 |
</pre></div> |
| 449 |
</div> |
| 450 |
</section> |
| 451 |
<section id="create-configure"> |
| 452 |
<h2>Create <code class="docutils literal notranslate"><span class="pre">configure</span></code><a class="headerlink" href="#create-configure" title="Link to this heading">#</a></h2> |
| 453 |
<p>You need to create <code class="docutils literal notranslate"><span class="pre">configure</span></code>. <code class="docutils literal notranslate"><span class="pre">configure</span></code> is included in source |
| 454 |
archive but not included in the repository.</p> |
| 455 |
<p><code class="docutils literal notranslate"><span class="pre">configure</span></code> is a build tool that detects your system and generates |
| 456 |
build configurations for your environment.</p> |
| 457 |
<p>Run <code class="docutils literal notranslate"><span class="pre">autogen.sh</span></code> to create <code class="docutils literal notranslate"><span class="pre">configure</span></code>:</p> |
| 458 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="o">./</span><span class="n">autogen</span><span class="o">.</span><span class="n">sh</span> |
| 459 |
</pre></div> |
| 460 |
</div> |
| 461 |
</section> |
| 462 |
<section id="run-configure"> |
| 463 |
<h2>Run <code class="docutils literal notranslate"><span class="pre">configure</span></code><a class="headerlink" href="#run-configure" title="Link to this heading">#</a></h2> |
| 464 |
<p>You can custom your build configuration by passing options to |
| 465 |
<code class="docutils literal notranslate"><span class="pre">configure</span></code>.</p> |
| 466 |
<p>Here are recommended <code class="docutils literal notranslate"><span class="pre">configure</span></code> options for developers:</p> |
| 467 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="o">./</span><span class="n">configure</span> <span class="o">--</span><span class="n">prefix</span><span class="o">=/</span><span class="n">tmp</span><span class="o">/</span><span class="n">local</span> <span class="o">--</span><span class="n">enable</span><span class="o">-</span><span class="n">debug</span> <span class="o">--</span><span class="n">enable</span><span class="o">-</span><span class="n">mruby</span> <span class="o">--</span><span class="k">with</span><span class="o">-</span><span class="n">ruby</span> |
| 468 |
</pre></div> |
| 469 |
</div> |
| 470 |
<p>Here are descriptions of these options:</p> |
| 471 |
<dl class="simple"> |
| 472 |
<dt><code class="docutils literal notranslate"><span class="pre">--prefix=/tmp/local</span></code></dt><dd><p>It specifies that you install your Groonga into temporary |
| 473 |
directory. You can do “clean install” by removing |
| 474 |
<code class="docutils literal notranslate"><span class="pre">/tmp/local</span></code> directory. It’ll be useful for debugging install.</p> |
| 475 |
</dd> |
| 476 |
<dt><code class="docutils literal notranslate"><span class="pre">--enable-debug</span></code></dt><dd><p>It enables debug options for C/C++ compiler. It’s useful for |
| 477 |
debugging on debugger such as GDB and LLDB.</p> |
| 478 |
</dd> |
| 479 |
<dt><code class="docutils literal notranslate"><span class="pre">--eanble-mruby</span></code></dt><dd><p>It enables mruby support. The feature isn’t enabled by default |
| 480 |
but developers should enable the feature.</p> |
| 481 |
</dd> |
| 482 |
<dt><code class="docutils literal notranslate"><span class="pre">--with-ruby</span></code></dt><dd><p>It’s needed for <code class="docutils literal notranslate"><span class="pre">--enable-mruby</span></code> and running functional tests.</p> |
| 483 |
</dd> |
| 484 |
</dl> |
| 485 |
</section> |
| 486 |
<section id="run-make"> |
| 487 |
<h2>Run <code class="docutils literal notranslate"><span class="pre">make</span></code><a class="headerlink" href="#run-make" title="Link to this heading">#</a></h2> |
| 488 |
<p>Now, you can build Groonga.</p> |
| 489 |
<p>Here is a recommended <code class="docutils literal notranslate"><span class="pre">make</span></code> command line for developers:</p> |
| 490 |
<div class="highlight-default notranslate"><div class="highlight"><pre><span></span><span class="o">%</span> <span class="n">make</span> <span class="o">-</span><span class="n">j8</span> <span class="o">></span> <span class="o">/</span><span class="n">dev</span><span class="o">/</span><span class="n">null</span> |
| 491 |
</pre></div> |
| 492 |
</div> |
| 493 |
<p><code class="docutils literal notranslate"><span class="pre">-j8</span></code> decreases build time. It enables parallel build. If you have 8 |
| 494 |
or more CPU cores, you can increase <code class="docutils literal notranslate"><span class="pre">8</span></code> to decreases more build |
| 495 |
time.</p> |
| 496 |
<p>You can just see only warning and error messages by <code class="docutils literal notranslate"><span class="pre">></span> |
| 497 |
<span class="pre">/dev/null</span></code>. Developers shouldn’t add new warnings and errors in new |
| 498 |
commit.</p> |
| 499 |
</section> |
| 500 |
<section id="see-also"> |
| 501 |
<h2>See also<a class="headerlink" href="#see-also" title="Link to this heading">#</a></h2> |
| 502 |
<blockquote> |
| 503 |
<div><ul class="simple"> |
| 504 |
<li><p><a class="reference internal" href="../test.html"><span class="doc">テスト方法</span></a></p></li> |
| 505 |
</ul> |
| 506 |
</div></blockquote> |
| 507 |
</section> |
| 508 |
</section> |
| 509 |
|
| 510 |
|
| 511 |
</article> |
| 512 |
|
| 513 |
|
| 514 |
|
| 515 |
|
| 516 |
|
| 517 |
<footer class="prev-next-footer d-print-none"> |
| 518 |
|
| 519 |
<div class="prev-next-area"> |
| 520 |
</div> |
| 521 |
</footer> |
| 522 |
|
| 523 |
</div> |
| 524 |
|
| 525 |
|
| 526 |
|
| 527 |
<dialog id="pst-secondary-sidebar-modal"></dialog> |
| 528 |
<div id="pst-secondary-sidebar" class="bd-sidebar-secondary bd-toc"><div class="sidebar-secondary-items sidebar-secondary__inner"> |
| 529 |
|
| 530 |
|
| 531 |
<div class="sidebar-secondary-item"> |
| 532 |
<div |
| 533 |
id="pst-page-navigation-heading-2" |
| 534 |
class="page-toc tocsection onthispage"> |
| 535 |
<i class="fa-solid fa-list"></i> On this page |
| 536 |
</div> |
| 537 |
<nav id="pst-page-toc-nav" class="page-toc" aria-labelledby="pst-page-navigation-heading-2"> |
| 538 |
<ul class="pst-show_toc_level nav section-nav flex-column"> |
| 539 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#install-depended-software">Install depended software</a></li> |
| 540 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#checkout-groonga-from-the-repository">Checkout Groonga from the repository</a></li> |
| 541 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#create-configure">Create <code class="docutils literal notranslate"><span class="pre">configure</span></code></a></li> |
| 542 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#run-configure">Run <code class="docutils literal notranslate"><span class="pre">configure</span></code></a></li> |
| 543 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#run-make">Run <code class="docutils literal notranslate"><span class="pre">make</span></code></a></li> |
| 544 |
<li class="toc-h2 nav-item toc-entry"><a class="reference internal nav-link" href="#see-also">See also</a></li> |
| 545 |
</ul> |
| 546 |
</nav></div> |
| 547 |
|
| 548 |
<div class="sidebar-secondary-item"> |
| 549 |
|
| 550 |
|
| 551 |
<div class="tocsection editthispage"> |
| 552 |
<a href="https://github.com/groonga/groonga/edit/main/doc/source/contribution/development/build/unix_autotools.rst"> |
| 553 |
<i class="fa-solid fa-pencil"></i> |
| 554 |
|
| 555 |
|
| 556 |
|
| 557 |
Edit on GitHub |
| 558 |
|
| 559 |
|
| 560 |
</a> |
| 561 |
</div> |
| 562 |
</div> |
| 563 |
|
| 564 |
</div></div> |
| 565 |
|
| 566 |
|
| 567 |
</div> |
| 568 |
<footer class="bd-footer-content"> |
| 569 |
|
| 570 |
</footer> |
| 571 |
|
| 572 |
</main> |
| 573 |
</div> |
| 574 |
</div> |
| 575 |
|
| 576 |
|
| 577 |
<script defer src="../../../_static/scripts/bootstrap.js?digest=90905a2f556bf617f1a9"></script> |
| 578 |
<script defer src="../../../_static/scripts/pydata-sphinx-theme.js?digest=90905a2f556bf617f1a9"></script> |
| 579 |
|
| 580 |
<footer class="bd-footer"> |
| 581 |
<div class="bd-footer__inner bd-page-width"> |
| 582 |
|
| 583 |
<div class="footer-items__start"> |
| 584 |
|
| 585 |
<div class="footer-item"> |
| 586 |
|
| 587 |
<p class="copyright"> |
| 588 |
|
| 589 |
© Copyright 2009-2026 Groonga Project. |
| 590 |
<br/> |
| 591 |
|
| 592 |
</p> |
| 593 |
</div> |
| 594 |
|
| 595 |
</div> |
| 596 |
|
| 597 |
|
| 598 |
|
| 599 |
<div class="footer-items__end"> |
| 600 |
|
| 601 |
<div class="footer-item"> |
| 602 |
<p class="theme-version"> |
| 603 |
|
| 604 |
Built with the <a href="https://pydata-sphinx-theme.readthedocs.io/en/stable/index.html">PyData Sphinx Theme</a> 0.20.0. |
| 605 |
</p></div> |
| 606 |
|
| 607 |
</div> |
| 608 |
|
| 609 |
</div> |
| 610 |
|
| 611 |
</footer> |
| 612 |
</body> |
| 613 |
</html> |