{"id":3874,"date":"2025-08-15T22:51:58","date_gmt":"2025-08-15T13:51:58","guid":{"rendered":"https:\/\/www.kdel.org\/wp\/?p=3874"},"modified":"2025-08-15T23:18:35","modified_gmt":"2025-08-15T14:18:35","slug":"mac%e3%81%a7overleaf","status":"publish","type":"post","link":"https:\/\/www.kdel.org\/wp\/?p=3874","title":{"rendered":"Mac\u3067overleaf"},"content":{"rendered":"<p>\u305d\u306e\u307e\u307e\u4f5c\u696d\u3057\u305f\u3089mongodb \u3067\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306e\u3067\uff0c\u5bfe\u51e6\u6cd5\u306e\u8a18\u9332\uff0e<br \/>\n\u307e\u305a\u306f\uff0c<mark><a href=\"https:\/\/github.com\/overleaf\/toolkit\/blob\/master\/doc\/quick-start-guide.md\">github \u306e overleaf\u306equcik-start-guide<\/a><\/mark>\u306b\u57fa\u3065\u3044\u3066\u4f5c\u696d\u3057\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncd ~\/git\r\ngit clone https:\/\/github.com\/overleaf\/toolkit.git .\/overleaf-toolkit\r\ncd .\/overleaf-toolkit\r\nbin\/init\r\nbin\/up\r\n<\/pre>\n<p>\u666e\u901a\u306a\u3089\u3053\u308c\u3067\u8d77\u52d5\u3059\u308b\u306f\u305a\u304c\uff0cMONGO_VERSION\u306e\u5024\u304c\u304a\u304b\u3057\u3044\u3068\u8a00\u308f\u308c\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: plain; title: ; notranslate\" title=\"\">\r\n---------------------  ERROR  -----------------------\r\n  Invalid MONGO_VERSION: MONGO_VERSION=6.0\r\n\r\n  MONGO_VERSION must start with the actual major version of mongo, followed by a dot.\r\n  Example: MONGO_IMAGE=my.dockerhub.com\/custom-mongo\r\n           MONGO_VERSION=6.0-custom\r\n---------------------  ERROR  -----------------------\r\n<\/pre>\n<p>\u4eca\u307e\u30671\u3064\u306e\u5909\u6570\u3067\u6271\u3063\u3066\u3044\u305f\u306e\u3092\uff0cMONGO_IMAGE\u3068MONGO_VERSION\u306b\u5206\u3051\u305f\u6a21\u69d8\uff0e<br \/>\n\u3067\uff0cMONGO_VERSION\u306f\uff0c\u30e1\u30b8\u30e3\u30fc\u30d0\u30fc\u30b8\u30e7\u30f3\u306e\u6570\u5b57\u3068\u30c9\u30c3\u30c8\u3067\u59cb\u307e\u308b\u66f8\u5f0f\u304c\u6c42\u3081\u3089\u308c\u3066\u3044\u308b\u3063\u307d\u3044\uff0e<br \/>\n\u305d\u308c\u3089\u306e\u5909\u6570\u306f\uff0cconfig\/overleaf.rc \u306b\u66f8\u3044\u3066\u3042\u308a\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\ncat config\/overleaf.rc|grep MONGO\r\nMONGO_ENABLED=true\r\nMONGO_DATA_PATH=data\/mongo\r\nMONGO_IMAGE=mongo\r\nMONGO_VERSION=6.0\r\n<\/pre>\n<p>\u3053\u308c\u3089\u306e\u5909\u6570\u306e\u30c1\u30a7\u30c3\u30af\u306f\uff0clib\/shared-function.sh \u3067\u5b9f\u65bd\u3057\u3066\u3044\u308b\u6a21\u69d8\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n grep Invalid * -R\r\nlib\/shared-functions.sh:      echo &quot;  Invalid MONGO_VERSION: $mongo_version&quot;\r\n<\/pre>\n<p>\u305d\u3053\u306e\u524d\u5f8c\u3092\u898b\u3066\u307f\u308b\u3068\uff0c<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n  else\r\n    if &#x5B;&#x5B; ! &quot;$mongo_version&quot; =~ ^(&#x5B;0-9]+)\\.(.+)$ ]]; then\r\n      echo &quot;---------------------  ERROR  -----------------------&quot;\r\n      echo &quot;  Invalid MONGO_VERSION: $mongo_version&quot;\r\n      echo &quot;&quot;\r\n      echo &quot;  MONGO_VERSION must start with the actual major version of mongo, followed by a dot.&quot;\r\n      echo &quot;  Example: MONGO_IMAGE=my.dockerhub.com\/custom-mongo&quot;\r\n      echo &quot;           MONGO_VERSION=6.0-custom&quot;\r\n      echo &quot;---------------------  ERROR  -----------------------&quot;\r\n      exit 1\r\n    fi\r\n    MONGO_VERSION_MAJOR=${BASH_REMATCH&#x5B;1]}\r\n<\/pre>\n<p>\u3068\u306a\u3063\u3066\u3044\u3066\uff0c\u6b63\u898f\u8868\u73fe ^([0-9]+)\\.(.+)$ \u306e\u30c1\u30a7\u30c3\u30af\u304cMac\u3067\u3046\u307e\u304f\u884c\u3063\u3066\u3044\u306a\u3044\u3063\u307d\u3044\uff0e<br \/>\n\u3067\uff0c$mongo_version \u306e\u4e2d\u8eab\u3092\u898b\u3066\u307f\u308b\u3068\uff0c<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nlocal mongo_version=MONGO_VERSION=6.0\r\n<\/pre>\n<p>\u5909\u6570\u3078\u306e\u4ee3\u5165\u6587\u304c\u305d\u306e\u307e\u307e\u51fa\u3066\u304d\u3066\u3057\u307e\u3063\u3066\u3044\u307e\u3059\uff0e<br \/>\n\u8272\u3005\u3068\u8a66\u884c\u932f\u8aa4\u3057\u305f\u7d50\u679c\uff0c\u4ee5\u4e0b\u306e\u7d50\u8ad6\u3068\u306a\u308a\u307e\u3057\u305f\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\n\u5177\u4f53\u7684\u306b\u306f\u3001\u3042\u306a\u305f\u306e overleaf.rc \u306e\u884c\u306f\r\n\r\nMONGO_VERSION=6.0\r\n\r\n\r\n\u3067\u3059\u304c\u3001sed -E &quot;s\/^MONGO_VERSION=(&#x5B;'\\&quot;]?)(.+)\\1&#x5B;&#x5B;:space:]]*$\/\\2\/p&quot; \u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306a\u6761\u4ef6\u306b\u306a\u3063\u3066\u3044\u307e\u3059\uff1a\r\n\r\n^MONGO_VERSION= \u306e\u3042\u3068\u306b\r\n\r\n(&#x5B;'\\&quot;]?) \u2192 \u3053\u308c\u306f\u30b7\u30f3\u30b0\u30eb\u30af\u30a9\u30fc\u30c8 ' \u304b\u30c0\u30d6\u30eb\u30af\u30a9\u30fc\u30c8 &quot; \u304c 0\u56de\u307e\u305f\u306f1\u56de \u51fa\u3066\u304f\u308b\u3053\u3068\u3092\u671f\u5f85\r\n\r\n(.+) \u2192 \u305d\u306e\u3042\u3068\u306b1\u6587\u5b57\u4ee5\u4e0a\uff08\u3053\u3053\u304c\u5b9f\u969b\u306e\u5024\uff09\r\n\r\n\\1 \u2192 \u6700\u521d\u306b\u898b\u3064\u3051\u305f\u30af\u30a9\u30fc\u30c8\u3068\u540c\u3058\u6587\u5b57\u304c\u3053\u3053\u306b\u518d\u767b\u5834\u3059\u308b\u3053\u3068\u3092\u671f\u5f85\uff080\u56de\u3082\u53ef\u3067\u306f\u306a\u3044\uff09\r\n\r\n&#x5B;&#x5B;:space:]]*$ \u2192 \u884c\u672b\u307e\u3067\u7a7a\u767d\u3060\u3051\r\n\r\n\u3064\u307e\u308a\u3001\u30af\u30a9\u30fc\u30c8\u304c\u306a\u3044\u5834\u5408\u306b\u3082 \\1 \u306e\u90e8\u5206\u304c\u300c\u7a7a\u6587\u5b57\u300d\u3067\u30de\u30c3\u30c1\u3059\u308b\u5fc5\u8981\u304c\u3042\u308b\u306e\u3067\u3059\u304c\u3001macOS \u306e sed\uff08BSD sed\uff09\u306f GNU sed \u3068\u9055\u3063\u3066\u3001\u3053\u306e\u30b1\u30fc\u30b9\u306e\u6271\u3044\u304c\u3084\u3084\u53b3\u3057\u304f\u3001\r\n\\1 \u304c\u7a7a\u3060\u3068\u5f8c\u7d9a\u306e\u30de\u30c3\u30c1\u304c\u5931\u6557\u3059\u308b\u3053\u3068\u304c\u3042\u308a\u307e\u3059\u3002\r\n<\/pre>\n<p>\u5177\u4f53\u7684\u306b\u306f\uff0csed \u306e\u30aa\u30d7\u30b7\u30e7\u30f3\u3092-r \u304b\u3089-E\u3078\u5909\u66f4\u3057\u3066\uff0c1\u306e\u5f8c\u308d\u306b\u300c?\u300d\u3092\u8ffd\u52a0\u3059\u308c\u3070\uff0c\u52d5\u304d\u307e\u3059\uff0e<\/p>\n<pre class=\"brush: bash; title: ; notranslate\" title=\"\">\r\nfunction read_configuration() {\r\n  local name=$1\r\n  grep -E &quot;^$name=&quot; &quot;$TOOLKIT_ROOT\/config\/overleaf.rc&quot; \\\r\n  | sed -E &quot;s\/^$name=(&#x5B;\\&quot;']?)(.+)\\1?\\$\/\\2\/&quot;\r\n}\r\n<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>\u305d\u306e\u307e\u307e\u4f5c\u696d\u3057\u305f\u3089mongodb \u3067\u30a8\u30e9\u30fc\u304c\u51fa\u308b\u306e\u3067\uff0c\u5bfe\u51e6\u6cd5\u306e\u8a18\u9332\uff0e \u307e\u305a\u306f\uff0cg &hellip;<\/p>\n<p class=\"read-more\"> <a class=\"more-link\" href=\"https:\/\/www.kdel.org\/wp\/?p=3874\"> <span class=\"screen-reader-text\">Mac\u3067overleaf<\/span> \u7d9a\u304d\u3092\u8aad\u3080 &raquo;<\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_crdt_document":"","footnotes":""},"categories":[41,6],"tags":[],"class_list":["post-3874","post","type-post","status-publish","format-standard","hentry","category-overleaf","category-setting"],"_links":{"self":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3874","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=3874"}],"version-history":[{"count":5,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3874\/revisions"}],"predecessor-version":[{"id":3879,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=\/wp\/v2\/posts\/3874\/revisions\/3879"}],"wp:attachment":[{"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=3874"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=3874"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.kdel.org\/wp\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=3874"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}