From mboxrd@z Thu Jan 1 00:00:00 1970 Path: news.gmane.io!.POSTED.blaine.gmane.org!not-for-mail From: Wayne Harris via Users list for the GNU Emacs text editor Newsgroups: gmane.emacs.help Subject: Re: on how to install gnutls dlls on windows Date: Sun, 18 Apr 2021 18:40:05 -0300 Message-ID: <86eef7z2yy.fsf@protonmail.com> References: <86tuo3zi4a.fsf@protonmail.com> <83h7k3tvdr.fsf@gnu.org> <86mttvzgnf.fsf@protonmail.com> <83eef7tst7.fsf@gnu.org> Reply-To: Wayne Harris Mime-Version: 1.0 Content-Type: text/plain Injection-Info: ciao.gmane.io; posting-host="blaine.gmane.org:116.202.254.214"; logging-data="7351"; mail-complaints-to="usenet@ciao.gmane.io" To: help-gnu-emacs@gnu.org Cancel-Lock: sha1:g9vUfKjg7M+jqIEuPJCrrC6BLc0= Original-X-From: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Sun Apr 18 23:40:44 2021 Return-path: Envelope-to: geh-help-gnu-emacs@m.gmane-mx.org Original-Received: from lists.gnu.org ([209.51.188.17]) by ciao.gmane.io with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1lYF9n-0001qC-U6 for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 23:40:43 +0200 Original-Received: from localhost ([::1]:57394 helo=lists1p.gnu.org) by lists.gnu.org with esmtp (Exim 4.90_1) (envelope-from ) id 1lYF9n-0004oI-0K for geh-help-gnu-emacs@m.gmane-mx.org; Sun, 18 Apr 2021 17:40:43 -0400 Original-Received: from eggs.gnu.org ([2001:470:142:3::10]:60410) by lists.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYF9S-0004o9-Bc for help-gnu-emacs@gnu.org; Sun, 18 Apr 2021 17:40:22 -0400 Original-Received: from ciao.gmane.io ([116.202.254.214]:52716) by eggs.gnu.org with esmtps (TLS1.2:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.90_1) (envelope-from ) id 1lYF9Q-0001vt-Qx for help-gnu-emacs@gnu.org; Sun, 18 Apr 2021 17:40:22 -0400 Original-Received: from list by ciao.gmane.io with local (Exim 4.92) (envelope-from ) id 1lYF9O-0001SQ-HS for help-gnu-emacs@gnu.org; Sun, 18 Apr 2021 23:40:18 +0200 X-Injected-Via-Gmane: http://gmane.org/ Received-SPF: pass client-ip=116.202.254.214; envelope-from=geh-help-gnu-emacs@m.gmane-mx.org; helo=ciao.gmane.io X-Spam_score_int: -13 X-Spam_score: -1.4 X-Spam_bar: - X-Spam_report: (-1.4 / 5.0 requ) BAYES_00=-1.9, FREEMAIL_FORGED_FROMDOMAIN=0.249, FREEMAIL_FROM=0.001, HEADER_FROM_DIFFERENT_DOMAINS=0.249, SPF_HELO_NONE=0.001, SPF_PASS=-0.001 autolearn=no autolearn_force=no X-Spam_action: no action X-BeenThere: help-gnu-emacs@gnu.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: Users list for the GNU Emacs text editor List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: help-gnu-emacs-bounces+geh-help-gnu-emacs=m.gmane-mx.org@gnu.org Original-Sender: "help-gnu-emacs" Xref: news.gmane.io gmane.emacs.help:129049 Archived-At: Eli Zaretskii writes: >> Date: Sun, 18 Apr 2021 13:44:36 -0300 >> From: Wayne Harris via Users list for the GNU Emacs text editor >> >> >> %ls lib* >> libgnutls-30.dll >> libgnutlsxx-28.dll >> libhogweed-6.dll >> libidn2-0.dll >> libnettle-8.dll >> libpng-config >> libpng16-config >> libunistring-2.dll >> % >> --8<---------------cut here---------------end--------------->8--- >> >> I ran another emacs instance (through runemacs.exe), but >> >> gnutls-available-p > > First, make sure you have _all_ the dependencies of libgnutls-30.dll > available. E.g., run the Dependency Walker on libgnutls-30.dll and > see that it finds all the dependency DLLs. If needed, add more > dependency DDLs to that directory. I didn't go this route yet --- see below why. > If that doesn't help, maybe your Emacs was built without GnuTLS > support? Where did you get the Emacs binary? And what does the following produce inside Emacs: > > M-: system-configuration-features RET It produces this: "XPM JPEG TIFF GIF PNG RSVG SOUND NOTIFY W32NOTIFY ACL GNUTLS LIBXML2 HARFBUZZ ZLIB TOOLKIT_SCROLL_BARS MODULES THREADS JSON PDUMPER LCMS2 GMP" > Btw, how do you invoke gnutls-available-p, exactly? I invoke it by saying (gnutls-available-p) C-x C-e (*) Here's what I discovered I didn't expect the PATH to be involved here, but here's how to get it to work invoking it through cmd.exe: C:\Users\x>cd \sys\emacs\bin C:\sys\emacs\bin>set PATH=c:/sys/emacs/usr/mingw/mingw64/bin/ C:\sys\emacs\bin>echo %PATH% c:/sys/emacs/usr/mingw/mingw64/bin/ C:\sys\emacs\bin>emacs -Q *scratch* buffer: (gnutls-available-p) C-x C-e Minibuffer says: (ClientHello\ Padding Key\ ...) C-x C-c C:\sys\emacs\bin> So it seems that I can fix the problem by adding that directory to my PATH. Indeed, doing that makes it all work. I don't get it, though. I didn't know PATH was used to search for DLLs.