public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* difficulty getting ddrescue to install properly
       [not found] <933547441.4732854.1604629469194.ref@mail.yahoo.com>
@ 2020-11-06  2:24 ` Marilo
  2020-11-07  4:17   ` Brian Inglis
  0 siblings, 1 reply; 2+ messages in thread
From: Marilo @ 2020-11-06  2:24 UTC (permalink / raw)
  To: cygwin


I've used ddrescue in the past but I can't seem to install it now!

I ran https://cygwin.com/setup-x86_64.exe and installed ddrescue

In the dropdown under choose packages, I choose "full" so they all show and I choose "ddrescue" it's 1.25-1 and I click it so it installs so it shows "keep". And I click next and it claims to install. I haven't always looked at the version in the past but that kind of procedure has always installed that and things in the past.


But then here I can't get ddrescue to run!

I'm on Win7.


C:\cygwin>dir
 Volume in drive C has no label.
 Volume Serial Number is 4645-5DCE


 Directory of C:\cygwin


20/04/2020  22:48    <DIR>          .
20/04/2020  22:48    <DIR>          ..
05/11/2020  02:29    <DIR>          bin
14/03/2020  01:02            53,342 Cygwin-Terminal.ico
14/03/2020  00:59                88 Cygwin.bat
14/03/2020  01:02           157,097 Cygwin.ico
14/03/2020  00:59    <DIR>          dev
05/11/2020  02:29    <DIR>          etc
22/04/2020  10:00    <DIR>          home
20/04/2020  22:48    <DIR>          lib
14/03/2020  00:35    <DIR>          pk
20/04/2020  22:48    <DIR>          sbin
20/04/2020  22:46         1,352,723 setup-x86_64.exe
14/03/2020  00:59    <DIR>          tmp
14/03/2020  00:58    <DIR>          usr
14/03/2020  00:58    <DIR>          var
               4 File(s)      1,563,250 bytes
              12 Dir(s)  29,747,658,752 bytes free


C:\cygwin>cd bin


C:\cygwin\bin>dir dd*
 Volume in drive C has no label.
 Volume Serial Number is 4645-5DCE


 Directory of C:\cygwin\bin


03/02/2017  19:40            83,987 dd.exe
03/04/2020  16:17           118,291 ddrescue.exe
03/04/2020  16:17            59,411 ddrescuelog.exe
               3 File(s)        261,689 bytes
               0 Dir(s)  29,747,593,216 bytes free


C:\cygwin\bin>

user@hp-probook1 ~
$ echo $PATH
/usr/local/bin:/usr/bin:/cygdrive/c/windows:/cygdrive/c/windows/system32:/cygdrive/c/blah


user@hp-probook1 ~
$ ddrescue
-bash: ddrescue: command not found


user@hp-probook1 ~
$ PATH=$PATH:/usr/bin


user@hp-probook1 ~
$ ddrescue
-bash: ddrescue: command not found


user@hp-probook1 ~
$ echo $PATH
/usr/local/bin:/usr/bin:/cygdrive/c/windows:/cygdrive/c/windows/system32:/cygdrive/c/blah:/usr/bin


user@hp-probook1 ~
$

user@hp-probook1 ~
$ PATH=$PATH:/bin

user@hp-probook1 ~
$ echo $PATH
/usr/local/bin:/usr/bin:/cygdrive/c/windows:/cygdrive/c/windows/system32:/cygdrive/c/blah:/usr/bin:/bin

user@hp-probook1 ~
$ ddrescue
-bash: ddrescue: command not found

user@hp-probook1 ~
$

user@hp-probook1 ~
$ which ddrescue
which: no ddrescue in (/usr/local/bin:/usr/bin:/cygdrive/c/windows:/cygdrive/c/windows/system32:/cygdrive/c/blah)

user@hp-probook1 ~
$ echo  $PATH
/usr/local/bin:/usr/bin:/cygdrive/c/windows:/cygdrive/c/windows/system32:/cygdrive/c/blah

user@hp-probook1 ~
$ PATH=$PATH:/bin

user@hp-probook1 ~
$ which ddrescue
which: no ddrescue in (/usr/local/bin:/usr/bin:/cygdrive/c/windows:/cygdrive/c/windows/system32:/cygdrive/c/blah:/bin)

user@hp-probook1 ~
$

user@hp-probook1 /bin
$ cd /bin

user@hp-probook1 /bin
$ ls dd*
dd.exe

user@hp-probook1 /bin
$

user@hp-probook1 /bin
$ cd /cygdrive/c/cygwin/bin

user@hp-probook1 /cygdrive/c/cygwin/bin
$ ls ddrescue
ddrescue

user@hp-probook1 /cygdrive/c/cygwin/bin
$ ddrescue --help
-bash: ddrescue: command not found

user@hp-probook1 /cygdrive/c/cygwin/bin
$ ./ddrescue --help
ddrescue: Both input and output files must be specified.
Try '/usr/bin/ddrescue --help' for more information.

user@hp-probook1 /cygdrive/c/cygwin/bin
$ ls /usr/bin/ddrescue
ls: cannot access '/usr/bin/ddrescue': No such file or directory

user@hp-probook1 /cygdrive/c/cygwin/bin
$



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

* Re: difficulty getting ddrescue to install properly
  2020-11-06  2:24 ` difficulty getting ddrescue to install properly Marilo
@ 2020-11-07  4:17   ` Brian Inglis
  0 siblings, 0 replies; 2+ messages in thread
From: Brian Inglis @ 2020-11-07  4:17 UTC (permalink / raw)
  To: cygwin

On 2020-11-05 19:24, Marilo via Cygwin wrote:
> I've used ddrescue in the past but I can't seem to install it now!
> 
> I ran https://cygwin.com/setup-x86_64.exe and installed ddrescue
> 
> In the dropdown under choose packages, I choose "full" so they all show and I choose "ddrescue" it's 1.25-1 and I click it so it installs so it shows "keep". And I click next and it claims to install. I haven't always looked at the version in the past but that kind of procedure has always installed that and things in the past.
> 
> But then here I can't get ddrescue to run!
> 
> I'm on Win7.

What are your options for running the Cygwin Setup program and your answers
input to dialogue box entries?

Check /var/log/setup.log.full for ddrescue install or errors and if that shows
nothing check /var/log/setup.log, which is a summary of all Cygwin Setup program
runs ever completed under that Cygwin instance.

Did you run the Cygwin Setup program to install ddrescue using the same Cygwin
instance root directory as your usual working instance, is that Cygwin instance
root directory C:/Cygwin, and are you running interactively under that same
Cygwin instance?

How are you starting bash, is it Cygwin bash, and which terminal are you running
under?

Running:
	$ ps
	  PID   PPID   PGID  WINPID   TTY     UID    STIME COMMAND
	29440  64174  29440    1880  pty0  ###### 21:09:16 /usr/bin/ps
	64174  64173  64174    6140  pty0  ######   Nov  2 /usr/bin/bash
	64173      1  64173    4148  ?     ######   Nov  2 /usr/bin/mintty
	$ which bash
	/usr/bin/bash
	$ uname -srvmo
	CYGWIN_NT-10.0 3.1.7(0.340/5/3) 2020-08-22 17:48 x86_64 Cygwin
	$ cygpath -alm /
	C:/cygwin
	$ grep -A1 ^last-cache /etc/setup/setup.rc
	last-cache
        	C:/...
	$ regtool -v list /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygwin\/Installations/
	f031669020b3f992 (REG_SZ) = "\??\C:\cygwin"
	$ regtool -v list /proc/registry/HKEY_LOCAL_MACHINE/SOFTWARE/Cygwin\/setup/
	rootdir (REG_SZ) = "C:\cygwin"
	$ cygcheck -f /usr/bin/ddrescue
	ddrescue-1.25-1
	$ cygcheck -c ddrescue
	Cygwin Package Information
	Package              Version        Status
	ddrescue             1.25-1         OK
	$ cygcheck ddrescue
	Found: C:\cygwin\bin\ddrescue.exe
	C:\cygwin\bin\ddrescue.exe
	  C:\cygwin\bin\cygwin1.dll
	    C:\Windows\system32\KERNEL32.dll
	      C:\Windows\system32\ntdll.dll
	      C:\Windows\system32\KERNELBASE.dll
	  C:\cygwin\bin\cyggcc_s-seh-1.dll
	  C:\cygwin\bin\cygstdc++-6.dll

and posting your results might give us some useful information,
also following the below may get you more useful responses:

> Problem reports:      https://cygwin.com/problems.html

-- 
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] 2+ messages in thread

end of thread, other threads:[~2020-11-07  4:17 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <933547441.4732854.1604629469194.ref@mail.yahoo.com>
2020-11-06  2:24 ` difficulty getting ddrescue to install properly Marilo
2020-11-07  4:17   ` Brian Inglis

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).