{"id":206745,"date":"2025-06-12T15:14:52","date_gmt":"2025-06-12T07:14:52","guid":{"rendered":"https:\/\/server.hk\/cnblog\/206745\/"},"modified":"2025-06-12T15:14:52","modified_gmt":"2025-06-12T07:14:52","slug":"go-%e8%bf%90%e8%a1%8c-sqlite-%e6%8a%a5%e9%94%99-too-many-errors-%e5%a6%82%e4%bd%95%e5%a4%84%e7%90%86%ef%bc%9f","status":"publish","type":"post","link":"https:\/\/server.hk\/cnblog\/206745\/","title":{"rendered":"Go \u8fd0\u884c SQLite \u62a5\u9519 \u201ctoo many errors\u201d \u5982\u4f55\u5904\u7406\uff1f"},"content":{"rendered":"<p><span style=\"font-size: 15px\">\u6709\u5fd7\u8005\uff0c\u4e8b\u7adf\u6210\uff01\u5982\u679c\u4f60\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\uff0c\u90a3\u4e48\u672c\u6587<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGo \u8fd0\u884c SQLite \u62a5\u9519 \u201ctoo many errors\u201d \u5982\u4f55\u5904\u7406\uff1f\u300b<\/span>\uff0c\u5c31\u5f88\u9002\u5408\u4f60\uff01\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\uff0c\u82e5\u662f\u4f60\u5bf9\u672c\u6587\u611f\u5174\u8da3\uff0c\u6216\u8005\u662f\u60f3\u641e\u61c2\u5176\u4e2d\u67d0\u4e2a\u77e5\u8bc6\u70b9\uff0c\u5c31\u8bf7\u4f60\u7ee7\u7eed\u5f80\u4e0b\u770b\u5427~<\/span>,<br \/>\n<img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241121\/1732176925673eec1dc6248.jpg\" class=\"aligncenter\">,<br \/>\n<strong>go \u8fd0\u884c sqlite \u62a5\u9519\u5982\u4f55\u5904\u7406<\/strong>,\u5728\u6267\u884c go build -o server.exe main.go \u65f6\u9047\u5230\u9519\u8bef\uff0c\u63d0\u793a\u5982\u4e0b\uff1a,<br \/>\n<strong>\u89e3\u51b3\u65b9\u6848<\/strong>,\u7ecf\u67e5\u8be2\uff0c\u8be5\u9519\u8bef\u5df2\u5728 github \u7684 issue \u533a\u88ab\u63d0\u51fa\u3002\u6839\u636e\u8be5 issue \u4e2d\u63d0\u51fa\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u65b9\u6cd5\uff1a,<br \/>\n<strong>issue \u5730\u5740<\/strong>,https:\/\/github.com\/modernc.org\/sqlite\/issues\/1634,\u4eca\u5929\u5173\u4e8e\u300aGo \u8fd0\u884c SQLite \u62a5\u9519 \u201ctoo many errors\u201d \u5982\u4f55\u5904\u7406\uff1f\u300b\u7684\u5185\u5bb9\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u7591\u95ee\u6216\u8005\u5efa\u8bae\uff0c\u53ef\u4ee5\u5728GOLANG\u516c\u4f17\u53f7\u4e0b\u591a\u591a\u56de\u590d\u4ea4\u6d41\uff1b\u6587\u4e2d\u82e5\u6709\u4e0d\u6b63\u4e4b\u5904\uff0c\u4e5f\u5e0c\u671b\u56de\u590d\u7559\u8a00\u4ee5\u544a\u77e5\uff01,<br \/>\n<strong>\u4f7f\u7528\u7279\u6b8a\u6784\u5efa\u6807\u8bb0<\/strong>\uff1a\u5728\u6784\u5efa\u547d\u4ee4\u4e2d\u6dfb\u52a0 -tags=nowindows \u6807\u8bb0\uff0c\u4ee5\u8df3\u8fc7\u4e0e windows \u76f8\u5173\u7684\u4ee3\u7801\u3002,<br \/>\n<strong>\u4fee\u6539 go \u7248\u672c<\/strong>\uff1a\u5c06 go \u7248\u672c\u66f4\u65b0\u6216\u964d\u7ea7\u5230 1.16 \u6216 1.19\u3002,<br \/>\n<strong>\u4f7f\u7528 c \u7f16\u8bd1\u5668<\/strong>\uff1a\u4f7f\u7528\u975e windows \u73af\u5883\u4e2d\u7684 c \u7f16\u8bd1\u5668\u6765\u7f16\u8bd1 sqlite \u5e93\u3002,go \u8fd0\u884c sqlite \u62a5\u9519\u5982\u4f55\u5904\u7406,<br \/>\n<span style=\"font-size: 15px\">\u6709\u5fd7\u8005\uff0c\u4e8b\u7adf\u6210\uff01\u5982\u679c\u4f60\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\uff0c\u90a3\u4e48\u672c\u6587<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGo \u8fd0\u884c SQLite \u62a5\u9519 \u201ctoo many errors\u201d \u5982\u4f55\u5904\u7406\uff1f\u300b<\/span>\uff0c\u5c31\u5f88\u9002\u5408\u4f60\uff01\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\uff0c\u82e5\u662f\u4f60\u5bf9\u672c\u6587\u611f\u5174\u8da3\uff0c\u6216\u8005\u662f\u60f3\u641e\u61c2\u5176\u4e2d\u67d0\u4e2a\u77e5\u8bc6\u70b9\uff0c\u5c31\u8bf7\u4f60\u7ee7\u7eed\u5f80\u4e0b\u770b\u5427~<\/span>,<br \/>\n<b><\/b> <\/p>\n<p>\u5f53\u524d\u4f4d\u7f6e\uff1a <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span>  <span>&gt;<\/span> <span>Go \u8fd0\u884c SQLite \u62a5\u9519 \u201ctoo many errors\u201d \u5982\u4f55\u5904\u7406\uff1f<\/span><\/p>\n<h1>Go \u8fd0\u884c SQLite \u62a5\u9519 \u201ctoo many errors\u201d \u5982\u4f55\u5904\u7406\uff1f<\/h1>\n<p><span>2024-11-21 16:15:41<\/span><br \/>\n<span><i><\/i>0\u6d4f\u89c8<\/span><br \/>\n<span style=\"cursor: pointer\"><i><\/i>\u6536\u85cf<\/span> <\/p>\n<p><span style=\"font-size: 15px\">\u6709\u5fd7\u8005\uff0c\u4e8b\u7adf\u6210\uff01\u5982\u679c\u4f60\u5728\u5b66\u4e60<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">GOLANG<\/span>\uff0c\u90a3\u4e48\u672c\u6587<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\">\u300aGo \u8fd0\u884c SQLite \u62a5\u9519 \u201ctoo many errors\u201d \u5982\u4f55\u5904\u7406\uff1f\u300b<\/span>\uff0c\u5c31\u5f88\u9002\u5408\u4f60\uff01\u6587\u7ae0\u8bb2\u89e3\u7684\u77e5\u8bc6\u70b9\u4e3b\u8981\u5305\u62ec<span style=\"color: #FF6600;, Helvetica, Arial, sans-serif;font-size: 14px;background-color: #FFFFFF\"><\/span>\uff0c\u82e5\u662f\u4f60\u5bf9\u672c\u6587\u611f\u5174\u8da3\uff0c\u6216\u8005\u662f\u60f3\u641e\u61c2\u5176\u4e2d\u67d0\u4e2a\u77e5\u8bc6\u70b9\uff0c\u5c31\u8bf7\u4f60\u7ee7\u7eed\u5f80\u4e0b\u770b\u5427~<\/span><\/p>\n<p><img decoding=\"async\" src=\"https:\/\/www.17golang.com\/uploads\/20241121\/1732176925673eec1dc6248.jpg\" class=\"aligncenter\"><\/p>\n<p><strong>go \u8fd0\u884c sqlite \u62a5\u9519\u5982\u4f55\u5904\u7406<\/strong><\/p>\n<p>\u5728\u6267\u884c go build -o server.exe main.go \u65f6\u9047\u5230\u9519\u8bef\uff0c\u63d0\u793a\u5982\u4e0b\uff1a<\/p>\n<pre>...\ngithub.com\/modernc.org\/sqlite@v1.23.0\/lib\/mutex.go:239:46: too many errors<\/pre>\n<p><strong>\u89e3\u51b3\u65b9\u6848<\/strong><\/p>\n<p>\u7ecf\u67e5\u8be2\uff0c\u8be5\u9519\u8bef\u5df2\u5728 github \u7684 issue \u533a\u88ab\u63d0\u51fa\u3002\u6839\u636e\u8be5 issue \u4e2d\u63d0\u51fa\u7684\u89e3\u51b3\u65b9\u6848\uff0c\u53ef\u4ee5\u5c1d\u8bd5\u4ee5\u4e0b\u65b9\u6cd5\uff1a<\/p>\n<ul>\n<li><strong>\u4fee\u6539 go \u7248\u672c<\/strong>\uff1a\u5c06 go \u7248\u672c\u66f4\u65b0\u6216\u964d\u7ea7\u5230 1.16 \u6216 1.19\u3002<\/li>\n<li><strong>\u4f7f\u7528\u7279\u6b8a\u6784\u5efa\u6807\u8bb0<\/strong>\uff1a\u5728\u6784\u5efa\u547d\u4ee4\u4e2d\u6dfb\u52a0 -tags=nowindows \u6807\u8bb0\uff0c\u4ee5\u8df3\u8fc7\u4e0e windows \u76f8\u5173\u7684\u4ee3\u7801\u3002<\/li>\n<li><strong>\u4f7f\u7528 c \u7f16\u8bd1\u5668<\/strong>\uff1a\u4f7f\u7528\u975e windows \u73af\u5883\u4e2d\u7684 c \u7f16\u8bd1\u5668\u6765\u7f16\u8bd1 sqlite \u5e93\u3002<\/li>\n<\/ul>\n<p><strong>issue \u5730\u5740<\/strong><\/p>\n<p>https:\/\/github.com\/modernc.org\/sqlite\/issues\/1634<\/p>\n<p>\u4eca\u5929\u5173\u4e8e\u300aGo \u8fd0\u884c SQLite \u62a5\u9519 \u201ctoo many errors\u201d \u5982\u4f55\u5904\u7406\uff1f\u300b\u7684\u5185\u5bb9\u4ecb\u7ecd\u5c31\u5230\u6b64\u7ed3\u675f\uff0c\u5982\u679c\u6709\u4ec0\u4e48\u7591\u95ee\u6216\u8005\u5efa\u8bae\uff0c\u53ef\u4ee5\u5728GOLANG\u516c\u4f17\u53f7\u4e0b\u591a\u591a\u56de\u590d\u4ea4\u6d41\uff1b\u6587\u4e2d\u82e5\u6709\u4e0d\u6b63\u4e4b\u5904\uff0c\u4e5f\u5e0c\u671b\u56de\u590d\u7559\u8a00\u4ee5\u544a\u77e5\uff01<\/p>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   \u5982\u4f55\u5229\u7528 Python \u751f\u6210\u968f\u673a\u53e5\u5b50\uff1f\n <\/dd>\n<\/dl>\n<dl>\n<dt>\n <\/dt>\n<dd>\n   win7\u600e\u4e48\u8bbe\u7f6e\u6587\u4ef6\u5939\u80cc\u666f win7\u6587\u4ef6\u5939\u80cc\u666f\u8bbe\u7f6e\u6559\u7a0b\n <\/dd>\n<\/dl>\n","protected":false},"excerpt":{"rendered":"<p>\u6709\u5fd7\u8005\uff0c\u4e8b\u7adf\u6210\uff01\u5982\u679c\u4f60\u5728\u5b66\u4e60GO&#46;&#46;&#46;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[4925],"tags":[],"class_list":["post-206745","post","type-post","status-publish","format-standard","hentry","category-4925"],"_links":{"self":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/206745","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/comments?post=206745"}],"version-history":[{"count":0,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/posts\/206745\/revisions"}],"wp:attachment":[{"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/media?parent=206745"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/categories?post=206745"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/server.hk\/cnblog\/wp-json\/wp\/v2\/tags?post=206745"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}