public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Re: this must be a common problem, but repeated searching is not finding an answer
@ 2022-03-19 17:57 Brian Inglis
  2022-03-19 18:15 ` Clayton Cramer
  0 siblings, 1 reply; 13+ messages in thread
From: Brian Inglis @ 2022-03-19 17:57 UTC (permalink / raw)
  To: Cygwin

On Sat, 19 Mar 2022 08:12:15 -0700, Achim Gratz wrote:
> Clayton Cramer writes:
>> I installed everything from the setup program, but executing bc gives
>> "The code execution cannot proceed because readline4.dll was not
>> found.  Reinstalling the program may fix this problem."  From where do
>> I get readline4.dll?

> Cygwin's bc does not depend on this library and it would not give you
> this error message either.  I suggest you try "/usr/bin/bc" from a
> Cygwin shell and then think about what you want to have your PATH look
> like.

I wonder which setup program that was, and how your environment is set up?

That message is from a native Windows port of bc, installed under/by 
Mingw/64, Msys/2, Chocolatey or some other native Windows port installer 
that does not handle library dependencies. You would have to install 
that environment's readline library using their setup program.

If you have installed Cygwin, you must start it using (perhaps some 
minor variation of) the provided shortcuts, command files, or scripts, 
and ensure the Cygwin path is set with Cygwin /usr/bin/ near the start, 
possibly preceded by your own local script directory/-ies: e.g.

	$HOME/bin:/usr/local/bin:/usr/bin

-- 
Take care. Thanks, Brian Inglis, Calgary, Alberta, Canada

This email may be disturbing to some readers as it contains
too much technical detail. Reader discretion is advised.
[Data in binary units and prefixes, physical quantities in SI.]

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 17:57 this must be a common problem, but repeated searching is not finding an answer Brian Inglis
@ 2022-03-19 18:15 ` Clayton Cramer
  2022-03-19 18:23   ` Eliot Moss
  2022-03-20  2:20   ` clayton
  0 siblings, 2 replies; 13+ messages in thread
From: Clayton Cramer @ 2022-03-19 18:15 UTC (permalink / raw)
  To: cygwin

Running bc by itself gave the same error message.

Just in case that bc was not part of cygwin, I deleted it and reran the 
install.  It did not seem to have bc listed as a component to install.  
My PATH is now:

/usr/local/bin:/usr/bin:/cygdrive/c/Windows/system32:/cygdrive/c/Windows:/cygdrive/c/Windows/System32/Wbem:/cygdrive/c/Windows/System32/WindowsPowerShell/v1.0:/cygdrive/c/Windows/System32/OpenSSH:/cygdrive/c/Program 
Files/NVIDIA Corporation/NVIDIA NvDLISR:/cygdrive/c/Program Files 
(x86)/Emacs/i686/bin:.:$HOME/bin:/cygdrive/c/usr/bin:/cygdrive/c/Users/clayt/AppData/Local/Microsoft/WindowsApps

If bc is not in cygwin, what should I use to get a version for Windows?  
Or do I need to roll my own?

On 3/19/2022 11:57 AM, Brian Inglis wrote:
> On Sat, 19 Mar 2022 08:12:15 -0700, Achim Gratz wrote:
>> Clayton Cramer writes:
>>> I installed everything from the setup program, but executing bc gives
>>> "The code execution cannot proceed because readline4.dll was not
>>> found.  Reinstalling the program may fix this problem."  From where do
>>> I get readline4.dll?
>
>> Cygwin's bc does not depend on this library and it would not give you
>> this error message either.  I suggest you try "/usr/bin/bc" from a
>> Cygwin shell and then think about what you want to have your PATH look
>> like.
>
> I wonder which setup program that was, and how your environment is set 
> up?
>
> That message is from a native Windows port of bc, installed under/by 
> Mingw/64, Msys/2, Chocolatey or some other native Windows port 
> installer that does not handle library dependencies. You would have to 
> install that environment's readline library using their setup program.
>
> If you have installed Cygwin, you must start it using (perhaps some 
> minor variation of) the provided shortcuts, command files, or scripts, 
> and ensure the Cygwin path is set with Cygwin /usr/bin/ near the 
> start, possibly preceded by your own local script directory/-ies: e.g.
>
>     $HOME/bin:/usr/local/bin:/usr/bin
>
-- 
“I look to a day when people will not be judged by the color of their skin, but by the content of their character.”


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 18:15 ` Clayton Cramer
@ 2022-03-19 18:23   ` Eliot Moss
  2022-03-19 18:33     ` Clayton Cramer
  2022-03-20  2:20   ` clayton
  1 sibling, 1 reply; 13+ messages in thread
From: Eliot Moss @ 2022-03-19 18:23 UTC (permalink / raw)
  To: Clayton Cramer, cygwin


bc is available in Cygwin.

Note that Cygwin is not a single thing, but a library that provides a pretty
faithful mapping from POSIX library calls to Windows ones, PLUS a large number
of packages, individually installable (modulo their dependencies on one
another), of Posix compatible tools recompiled for Cygwin (often with patches
to make them compile properly under Cygwin).

bc is (logically enough) in the bc package.

Regards - Eliot Moss

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 18:23   ` Eliot Moss
@ 2022-03-19 18:33     ` Clayton Cramer
  2022-03-19 20:55       ` Eliot Moss
  0 siblings, 1 reply; 13+ messages in thread
From: Clayton Cramer @ 2022-03-19 18:33 UTC (permalink / raw)
  To: moss, cygwin

Cygwin Setup - Select Packages says there are no packages to install or 
update.  No is there a bc executable under \cygwin

On 3/19/2022 12:23 PM, Eliot Moss wrote:
>
> bc is available in Cygwin.
>
> Note that Cygwin is not a single thing, but a library that provides a 
> pretty
> faithful mapping from POSIX library calls to Windows ones, PLUS a 
> large number
> of packages, individually installable (modulo their dependencies on one
> another), of Posix compatible tools recompiled for Cygwin (often with 
> patches
> to make them compile properly under Cygwin).
>
> bc is (logically enough) in the bc package.
>
> Regards - Eliot Moss

-- 
“I look to a day when people will not be judged by the color of their skin, but by the content of their character.”


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 18:33     ` Clayton Cramer
@ 2022-03-19 20:55       ` Eliot Moss
  2022-03-19 21:51         ` Clayton Cramer
  0 siblings, 1 reply; 13+ messages in thread
From: Eliot Moss @ 2022-03-19 20:55 UTC (permalink / raw)
  To: Clayton Cramer, cygwin

On 3/19/2022 2:33 PM, Clayton Cramer wrote:
> Cygwin Setup - Select Packages says there are no packages to install or update.  No is there a bc 
> executable under \cygwin

You have to select packages explicitly.

It does not just blindly install all of them - that's a lot of stuff,
and for various reasons not a great idea.  Install what you need.

Best - EM

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 20:55       ` Eliot Moss
@ 2022-03-19 21:51         ` Clayton Cramer
  2022-03-19 23:18           ` Gary Johnson
  2022-03-19 23:19           ` Eliot Moss
  0 siblings, 2 replies; 13+ messages in thread
From: Clayton Cramer @ 2022-03-19 21:51 UTC (permalink / raw)
  To: moss, cygwin

I installed everything, but that does not seem to include bc.

On 3/19/2022 2:55 PM, Eliot Moss wrote:
> You have to select packages explicitly.
>
> It does not just blindly install all of them - that's a lot of stuff,
> and for various reasons not a great idea.  Install what you need. 

-- 
“I look to a day when people will not be judged by the color of their skin, but by the content of their character.”


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 21:51         ` Clayton Cramer
@ 2022-03-19 23:18           ` Gary Johnson
  2022-03-20 15:04             ` Clayton Cramer
  2022-03-19 23:19           ` Eliot Moss
  1 sibling, 1 reply; 13+ messages in thread
From: Gary Johnson @ 2022-03-19 23:18 UTC (permalink / raw)
  To: cygwin

On 2022-03-19, Clayton Cramer wrote:

> On 3/19/2022 2:55 PM, Eliot Moss wrote:
> >You have to select packages explicitly.
> >
> >It does not just blindly install all of them - that's a lot of stuff,
> >and for various reasons not a great idea.  Install what you need.

> I installed everything, but that does not seem to include bc.

When you run the Cygwin Net Release Setup Program, a.k.a. Setup, and
after clicking Next a number of times, you should come to a
full-screen page titled, "Select Packages".  In the upper left
corner of that page is a drop-down list labelled View and with
a default setting of Pending.  Change that setting to Full.

To the right of the View selection is the Search box.  Enter into
that box just the two letters

    bc

You should see at the top of the resulting list of packages the bc
package.  The New column (the third column) for the bc package
probably says Skip.  Click on the arrow in that field and select the
newest package number, which should be 1.06.95-2.

At the bottom of that page, click on Next and follow whatever
instructions follow.  That should install bc as /usr/bin/bc.

HTH,
Gary


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 21:51         ` Clayton Cramer
  2022-03-19 23:18           ` Gary Johnson
@ 2022-03-19 23:19           ` Eliot Moss
  2022-03-19 23:24             ` Joel Rees
  1 sibling, 1 reply; 13+ messages in thread
From: Eliot Moss @ 2022-03-19 23:19 UTC (permalink / raw)
  To: Clayton Cramer, cygwin

On 3/19/2022 5:51 PM, Clayton Cramer wrote:
> I installed everything, but that does not seem to include bc.

So you went through and explicitly asked for each package?
If you did, then that would include bc, since it is one of
the packages.  I'm now confused.  How did you request
"everything"?

Regards - EM

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 23:19           ` Eliot Moss
@ 2022-03-19 23:24             ` Joel Rees
  0 siblings, 0 replies; 13+ messages in thread
From: Joel Rees @ 2022-03-19 23:24 UTC (permalink / raw)
  Cc: Clayton Cramer, cygwin

2022年3月20日(日) 8:19 Eliot Moss <moss@cs.umass.edu>:

> On 3/19/2022 5:51 PM, Clayton Cramer wrote:
> > I installed everything, but that does not seem to include bc.
>
> So you went through and explicitly asked for each package?
> If you did, then that would include bc, since it is one of
> the packages.  I'm now confused.  How did you request
> "everything"?
>

With a note that actually selecting every package in Cygwin repositories
and installing them would be huge, and take a really long time, even on
fiber with no bandwidth caps.

>

^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 18:15 ` Clayton Cramer
  2022-03-19 18:23   ` Eliot Moss
@ 2022-03-20  2:20   ` clayton
  1 sibling, 0 replies; 13+ messages in thread
From: clayton @ 2022-03-20  2:20 UTC (permalink / raw)
  To: Joel Rees; +Cc: cygwin

  
  
  
Thanks to all. I will go back and make sure I have selected bc as well.    I clearly did not understand the selection mechanism.
  

  

  

  
  
  
  
  
>   
> On Mar 19, 2022 at 5:25 PM, Joel Rees  <joel.rees@gmail.com>  wrote:
>   
>   
>   
>
>   
>   
>   
> 2022年3月20日(日) 8:19 Eliot Moss  <moss@cs.umass.edu>:
>   
> > On 3/19/2022 5:51 PM, Clayton Cramer wrote:
> >   >  I installed everything, but that does not seem to include bc.
> >   
> >  So you went through and explicitly asked for each package?
> >  If you did, then that would include bc, since it is one of
> >  the packages.    I'm now confused.    How did you request
> >  "everything"?
>       
>
>   
> With a note that actually selecting every package in Cygwin repositories and installing them would be huge, and take a really long time, even on fiber with no bandwidth caps.
>   
>   
>   
> >   
>   
>   
>   
>   


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 23:18           ` Gary Johnson
@ 2022-03-20 15:04             ` Clayton Cramer
  0 siblings, 0 replies; 13+ messages in thread
From: Clayton Cramer @ 2022-03-20 15:04 UTC (permalink / raw)
  To: cygwin

Thanks.  bc is now installed.

On 3/19/2022 5:18 PM, Gary Johnson wrote:
> On 2022-03-19, Clayton Cramer wrote:
>
>> On 3/19/2022 2:55 PM, Eliot Moss wrote:
>>> You have to select packages explicitly.
>>>
>>> It does not just blindly install all of them - that's a lot of stuff,
>>> and for various reasons not a great idea.  Install what you need.
>> I installed everything, but that does not seem to include bc.
> When you run the Cygwin Net Release Setup Program, a.k.a. Setup, and
> after clicking Next a number of times, you should come to a
> full-screen page titled, "Select Packages".  In the upper left
> corner of that page is a drop-down list labelled View and with
> a default setting of Pending.  Change that setting to Full.
>
> To the right of the View selection is the Search box.  Enter into
> that box just the two letters
>
>      bc
>
> You should see at the top of the resulting list of packages the bc
> package.  The New column (the third column) for the bc package
> probably says Skip.  Click on the arrow in that field and select the
> newest package number, which should be 1.06.95-2.
>
> At the bottom of that page, click on Next and follow whatever
> instructions follow.  That should install bc as /usr/bin/bc.
>
> HTH,
> Gary
>
>
-- 
“I look to a day when people will not be judged by the color of their skin, but by the content of their character.”


^ permalink raw reply	[flat|nested] 13+ messages in thread

* Re: this must be a common problem, but repeated searching is not finding an answer
  2022-03-19 14:49 Clayton Cramer
@ 2022-03-19 15:11 ` Achim Gratz
  0 siblings, 0 replies; 13+ messages in thread
From: Achim Gratz @ 2022-03-19 15:11 UTC (permalink / raw)
  To: cygwin

Clayton Cramer writes:
> I installed everything from the setup program, but executing bc gives
> "The code execution cannot proceed because readline4.dll was not
> found.  Reinstalling the program may fix this problem."  From where do
> I get readline4.dll?

Cygwin's bc does not depend on this library and it would not give you
this error message either.  I suggest you try "/usr/bin/bc" from a
Cygwin shell and then think about what you want to have your PATH look
like.


Regards,
Achim.
-- 
+<[Q+ Matrix-12 WAVE#46+305 Neuron microQkb Andromeda XTk Blofeld]>+

SD adaptation for Waldorf Blofeld V1.15B11:
http://Synth.Stromeko.net/Downloads.html#WaldorfSDada

^ permalink raw reply	[flat|nested] 13+ messages in thread

* this must be a common problem, but repeated searching is not finding an answer
@ 2022-03-19 14:49 Clayton Cramer
  2022-03-19 15:11 ` Achim Gratz
  0 siblings, 1 reply; 13+ messages in thread
From: Clayton Cramer @ 2022-03-19 14:49 UTC (permalink / raw)
  To: cygwin

I installed everything from the setup program, but executing bc gives 
"The code execution cannot proceed because readline4.dll was not found.  
Reinstalling the program may fix this problem."  From where do I get 
readline4.dll?

-- 
“I look to a day when people will not be judged by the color of their skin, but by the content of their character.”


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2022-03-20 15:05 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-19 17:57 this must be a common problem, but repeated searching is not finding an answer Brian Inglis
2022-03-19 18:15 ` Clayton Cramer
2022-03-19 18:23   ` Eliot Moss
2022-03-19 18:33     ` Clayton Cramer
2022-03-19 20:55       ` Eliot Moss
2022-03-19 21:51         ` Clayton Cramer
2022-03-19 23:18           ` Gary Johnson
2022-03-20 15:04             ` Clayton Cramer
2022-03-19 23:19           ` Eliot Moss
2022-03-19 23:24             ` Joel Rees
2022-03-20  2:20   ` clayton
  -- strict thread matches above, loose matches on Subject: below --
2022-03-19 14:49 Clayton Cramer
2022-03-19 15:11 ` Achim Gratz

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).