Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.programming > #12327

Re: on (not) finding a 64-bit version of readline.dll

From Boris Dorestand <bdorestand@example.com>
Newsgroups comp.programming
Subject Re: on (not) finding a 64-bit version of readline.dll
Date 2021-03-12 09:00 -0300
Organization Aioe.org NNTP Server
Message-ID <86pn04y42o.fsf@example.com> (permalink)
References <86blbt7e82.fsf@example.com> <rfqnroak5rh5.j3rmmhqxfpk8$.dlg@40tude.net> <861rclz9x0.fsf@example.com>

Show all headers | View raw


Boris Dorestand <bdorestand@example.com> writes:

> JJ <jj4public@gmail.com> writes:
>
> [...]
>
>> You could use the 32-bit version of Rash as well as Racket if Rash's 
>> functionality is crucial, or if it'll be used for something which requires 
>> more than 3GB of memory.
>
> (I didn't get the comment on the 3GB-memory.  I thought that maybe
> 32-bit would let me use less memory, but I'm not sure what the limit
> is.)
>
> That's another interesting idea.  I can install a 32-bit of Racket and
> then install Rash.  I wouldn't mind running a 32-bit Rash at all.  I can
> even delete Racket 32-bit after building Rash.  The installation is easy:
>
>   https://mirror.racket-lang.org/installers/8.0/racket-8.0-i386-win32-bc.exe
>
> I'll report back what happened.

Installed, built rash-repl.exe 32-bit.

%file C:/Users/x/AppData/Roaming/Racket/8.0-bc/rash-repl.exe
C:/Users/x/AppData/Roaming/Racket/8.0-bc/rash-repl.exe: PE32 executable (console) Intel 80386 (stripped to external PDB), for MS Windows

It first looks for libedit-3.dll

%C:/Users/x/AppData/Roaming/Racket/8.0-bc/rash-repl.exe
ffi-lib: couldn't open "libedit-3.dll" (The specified module cannot be found; errid=126)
  context...:
   c:\sys\emacs.27-mingw.64\usr\Racket8-32bit\collects\ffi\unsafe.rkt:131:0: get-ffi-lib
   "c:\sys\emacs.27-mingw.64\usr\Racket8-32bit\share\pkgs\readline-lib\readline\rktrl.rkt": [running body]
%

Instead of trying to use libedit-3.dll, let's install the readline
package and try to give it the 32-bit libreadline-5.dll.

%raco pkg install readline-gpl
Resolving "readline-gpl" via https://download.racket-lang.org/releases/8.0/catalog/
Resolving "readline-gpl" via https://pkgs.racket-lang.org
Using cached16142534581614253458679 for git://github.com/racket/readline-gpl
[...]

%C:/Users/x/AppData/Roaming/Racket/8.0-bc/rash-repl.exe
ffi-lib: couldn't open "libreadline-5.dll" (The specified module cannot be found; errid=126)
  context...:
   c:\sys\emacs.27-mingw.64\usr\Racket8-32bit\collects\ffi\unsafe.rkt:131:0: get-ffi-lib
   "C:\Users\x\AppData\Roaming\Racket\8.0-bc\share\readline-lib.rkt": [running body]
   "c:\sys\emacs.27-mingw.64\usr\Racket8-32bit\share\pkgs\readline-lib\readline\rktrl.rkt": [running body]
%

Let's go in the directory and place the right library, right version.

%file C:/Users/x/AppData/Roaming/Racket/8.0-bc/libreadline-5.dll
C:/Users/x/AppData/Roaming/Racket/8.0-bc/libreadline-5.dll: PE32 executable (DLL) (console) Intel 80386 (stripped to external PDB), for MS Windows

%md5sum.exe C:/Users/x/AppData/Roaming/Racket/8.0-bc/libreadline-5.dll
df20019aaa0ce3525735eb206cd907bf *C:/Users/x/AppData/Roaming/Racket/8.0-bc/libreadline-5.dll

--8<---------------cut here---------------start------------->8---
%C:/Users/x/AppData/Roaming/Racket/8.0-bc/rash-repl.exe

You can use the `help` line macro to get help about topics.
(To turn these hints off, run (current-repl-display-startup-hints? #f) in a rashrc file.)
help
This is a help macro!
It should be helpful, but currently isn't.
I want it to eventually check if things that are asked about are bound and then link automatically to the docs (in a browser configured by the user -- including possibly some text-mode browser), and if things are not bound automatically search for the man page or info page.  Maybe it could have some key words or flag arguments to make it run in different modes.  Modes could include a shell-programming tutorial, overviews of various Rash concepts, etc.  Maybe these should just link to web pages...  Anyway, this macro should be helpful.  But right now it's not.  Try running `raco docs` or something instead.
^D
%--8<---------------cut here---------------end--------------->8---

It works!  I really appreciate the assitance.  Thank you!

(Apparently this binary does not need history5.dll.)

> By the way, I thought Racket was supposed to come with a ``libedit.dll''
> (with this or similar name), but at least on the recent versions for
> Windows, it does not.

If it ever did, it doesn't anymore.

%./Racket.exe --version
Welcome to Racket v8.0 [bc].

%find ./ -name "*edit*.dll*"
%

Here's what it brings.

%find ./ -name "*dll"
./lib/libatk-1.0-0.dll
./lib/libcairo-2.dll
./lib/libeay32.dll
./lib/libexpat-1.dll
./lib/libffi-6.dll
./lib/libfontconfig-1.dll
./lib/libfreetype-6.dll
./lib/libfribidi-0.dll
./lib/libgio-2.0-0.dll
./lib/libglib-2.0-0.dll
./lib/libgmodule-2.0-0.dll
./lib/libgmp-10.dll
./lib/libgobject-2.0-0.dll
./lib/libgthread-2.0-0.dll
./lib/libharfbuzz-0.dll
./lib/libiconv-2.dll
./lib/libintl-9.dll
./lib/libjpeg-9.dll
./lib/libmpfr-4.dll
./lib/libpango-1.0-0.dll
./lib/libpangocairo-1.0-0.dll
./lib/libpangoft2-1.0-0.dll
./lib/libpangowin32-1.0-0.dll
./lib/libpixman-1-0.dll
./lib/libpng16-16.dll
./lib/libracket3m_d8ary8.dll
./lib/longdouble.dll
./lib/myssink.dll
./lib/sqlite3.dll
./lib/ssleay32.dll
./lib/zlib1.dll

Back to comp.programming | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread


Thread

on (not) finding a 64-bit version of readline.dll Boris Dorestand <bdorestand@example.com> - 2021-03-08 14:22 -0300
  Re: on (not) finding a 64-bit version of readline.dll David Brown <david.brown@hesbynett.no> - 2021-03-08 20:03 +0100
    Re: on (not) finding a 64-bit version of readline.dll JJ <jj4public@gmail.com> - 2021-03-09 14:17 +0700
      Re: on (not) finding a 64-bit version of readline.dll Boris Dorestand <bdorestand@example.com> - 2021-03-11 17:50 -0300
    Re: on (not) finding a 64-bit version of readline.dll Boris Dorestand <bdorestand@example.com> - 2021-03-11 17:48 -0300
  Re: on (not) finding a 64-bit version of readline.dll Michael Trew <mt999999@ymail.com> - 2021-03-08 14:16 -0500
    Re: on (not) finding a 64-bit version of readline.dll Boris Dorestand <bdorestand@example.com> - 2021-03-11 17:52 -0300
  Re: on (not) finding a 64-bit version of readline.dll JJ <jj4public@gmail.com> - 2021-03-09 14:45 +0700
    Re: on (not) finding a 64-bit version of readline.dll Boris Dorestand <bdorestand@example.com> - 2021-03-11 17:56 -0300
      Re: on (not) finding a 64-bit version of readline.dll Boris Dorestand <bdorestand@example.com> - 2021-03-12 09:00 -0300
      Re: on (not) finding a 64-bit version of readline.dll JJ <jj4public@gmail.com> - 2021-03-12 20:51 +0700
        Re: on (not) finding a 64-bit version of readline.dll Boris Dorestand <bdorestand@example.com> - 2021-03-16 14:42 -0300
          Re: on (not) finding a 64-bit version of readline.dll Härra Ramob <ya12983@mail.com> - 2022-01-05 00:36 -0800

csiph-web