I think you probably have the "readline-gpl" package installed. That's
where the "libreadline-5.dll" comes from in "private/readline-lib.rkt":

 (define readline-library (ffi-lib "libreadline" '("5" "6" "4" "")))

Even if "7" were added to that list, `ffi-lib` assumes a versioning
convention that adds "-".

One solution is to set the

  PLT_READLINE_LIB

environment variable to point to the full path of "libreadline7.dll".
Note that it will need to be a Windows path, though, not a Cygwin path.

Or you could also try copying "libreadline7.dll" to "libreadline.dll"
(no "7") in the Racket's "lib" directory, but that probably won't work
if "libreadline7.dll" depends on other libraries. And there's a
question of whether a Cygwin libreadline will work at all when loaded
into non-Cygwin Racket. It may work better to get another version of
the libreadline DLL from somewhere and drop it into Racket's "lib"
directory.

At Thu, 9 Apr 2020 00:49:11 -0600, K H wrote:
> I'm running on cygwin on Windows 7 and I have the following error when
> attempting to use the readline package:
> 
> $ racket -il readline
> Welcome to Racket v7.6.
> ffi-lib: couldn't open "libreadline-5.dll" (The specified module could not
> be found.; errid=126)
> > ,ex
> 
> I get the same error either from a cygwin bash prompt or from a windows cmd
> shell prompt.
> 
> The gnu readline installed appears to be at version 7.
> 
> $ ls -l /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libread*
> -rwxr-xr-x  /usr/x86_64-w64-mingw32/sys-root/mingw/bin/libreadline7.dll
> 
> The source at ./share/pkgs/readline-lib/readline/rktrl.rkt seems relevant
> but I'm not smart enough to figure out exactly what is wrong.
> 
> Any ideas on how to continue to debug this?
> 
> Thanks in advance,
> 
> Kieron.
> 
> -- 
> You received this message because you are subscribed to the Google Groups 
> "Racket Users" group.
> To unsubscribe from this group and stop receiving emails from it, send an 
> email to racket-users+unsubscr...@googlegroups.com.
> To view this discussion on the web visit 
> https://groups.google.com/d/msgid/racket-users/CAEEP09AXB4aJecs7eskog-RSDoyEeSW
> z5P_%2B8f4z%2B8%3DS7jEz%3Dw%40mail.gmail.com.

-- 
You received this message because you are subscribed to the Google Groups 
"Racket Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to racket-users+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/racket-users/5e8f1cdf.1c69fb81.135cf.f180SMTPIN_ADDED_MISSING%40gmr-mx.google.com.

Reply via email to