public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* Problem using rpm on Windows 98.
@ 1999-10-01 12:28 A.R. Burgers
  1999-10-01 13:14 ` Suhaib Siddiqi
  1999-10-31 19:54 ` A.R. Burgers
  0 siblings, 2 replies; 10+ messages in thread
From: A.R. Burgers @ 1999-10-01 12:28 UTC (permalink / raw)
  To: cygwin mailing list

Hi

has anybody had any luck installing perl module rpm-s
from Charles Wilson's site ( http://cygutils.netpedia.net/ )?
I'm using Windows 98, 2nd edition.
I try to install a module using the rpm command:

rpm --install perl-DBI-1.13-1-cygwinb20.i386.rpm

and get the response

error:  perl-DBI-1.13-1-cygwinb20.i386.rpm  cannot be installed

I installed rpm using the instructions and binary provided
at http://cygutils.netpedia.net/

rpm -i -vv perl-DBI-1.13-1-cygwinb20.i386.rpm

returns:

D: counting packages to install
D: found 1 packages
D: looking for packages to download
D: retrieved 0 packages
D: New Header signature
D: Signature size: 68
D: Signature pad : 4
D: sigsize         : 72
D: Header + Archive: 380280
D: expected size   : 380280
error: /tmp/perl-DBI-1.13-1-cygwinb20.i386.rpm cannot be installed
D: found 0 source and 0 binary packages
[exited with 1]

I'm using stock B20.1 with the jan 15, 1999 cygwin1.dll

Any help appreciated

Teun Burgers

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: Problem using rpm on Windows 98.
  1999-10-01 12:28 Problem using rpm on Windows 98 A.R. Burgers
@ 1999-10-01 13:14 ` Suhaib Siddiqi
  1999-10-01 14:15   ` Problem using rpm on Windows 98 (partly solved) A.R. Burgers
  1999-10-31 19:54   ` Problem using rpm on Windows 98 Suhaib Siddiqi
  1999-10-31 19:54 ` A.R. Burgers
  1 sibling, 2 replies; 10+ messages in thread
From: Suhaib Siddiqi @ 1999-10-01 13:14 UTC (permalink / raw)
  To: A.R. Burgers, cygwin mailing list

Do not know about rpm, but you can get rpm2cpio script
from http://cygutils.netpedia.net/ , extract the contents of rpm and
install it manually by copying the extracted files/directories to
the desired location.

Suhaib


> -----Original Message-----
> From: cygwin-owner@sourceware.cygnus.com
> [ mailto:cygwin-owner@sourceware.cygnus.com]On Behalf Of
> A.R. Burgers
> Sent: Friday, October 01, 1999 3:31 PM
> To: cygwin mailing list
> Subject: Problem using rpm on Windows 98.
>
>
> Hi
>
> has anybody had any luck installing perl module rpm-s
> from Charles Wilson's site ( http://cygutils.netpedia.net/ )?
> I'm using Windows 98, 2nd edition.
> I try to install a module using the rpm command:
>
> rpm --install perl-DBI-1.13-1-cygwinb20.i386.rpm
>
> and get the response
>
> error:  perl-DBI-1.13-1-cygwinb20.i386.rpm  cannot be installed
>
> I installed rpm using the instructions and binary provided
> at http://cygutils.netpedia.net/
>
> rpm -i -vv perl-DBI-1.13-1-cygwinb20.i386.rpm
>
> returns:
>
> D: counting packages to install
> D: found 1 packages
> D: looking for packages to download
> D: retrieved 0 packages
> D: New Header signature
> D: Signature size: 68
> D: Signature pad : 4
> D: sigsize         : 72
> D: Header + Archive: 380280
> D: expected size   : 380280
> error: /tmp/perl-DBI-1.13-1-cygwinb20.i386.rpm cannot be installed
> D: found 0 source and 0 binary packages
> [exited with 1]
>
> I'm using stock B20.1 with the jan 15, 1999 cygwin1.dll
>
> Any help appreciated
>
> Teun Burgers
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Problem using rpm on Windows 98 (partly solved)
  1999-10-01 13:14 ` Suhaib Siddiqi
@ 1999-10-01 14:15   ` A.R. Burgers
  1999-10-01 14:22     ` Suhaib Siddiqi
                       ` (2 more replies)
  1999-10-31 19:54   ` Problem using rpm on Windows 98 Suhaib Siddiqi
  1 sibling, 3 replies; 10+ messages in thread
From: A.R. Burgers @ 1999-10-01 14:15 UTC (permalink / raw)
  To: ssiddiqi; +Cc: cygwin mailing list

Suhaib Siddiqi wrote:

> Do not know about rpm, but you can get rpm2cpio script
> from http://cygutils.netpedia.net/ , extract the contents of rpm and
> install it manually by copying the extracted files/directories to
> the desired location.

Thanks for your fast response and your hint.

I tried both rpm2cpio from cygutils.netpedia.net and the rpm2cpio.pl
script (from www.rpm.org).

rpm2cpio says:
error reading header from package

rpm2cpio.pl says:
bogus RPM.

This hold for rpms perl-DBI-1.13-1-cygwinb20.i386.rpm and
perl-DelimMatch-1.04-1-cygwinb20.i386.rpm

I managed to get rpm2cpio.pl to work by specifying
binmode on the filehandle to the rpm archive.

So the problem is probably that rpm2cpio (and probably rpm)
don't open their files in binary mode. Is something set wrong in my
environment? Are my file opens text by default and not binary?

my $CYGWIN variable is empty.
The output of mount is:

Device           Directory           Type        Flags
C:               /                   native      text!=binary

Teun Burgers

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: Problem using rpm on Windows 98 (partly solved)
  1999-10-01 14:15   ` Problem using rpm on Windows 98 (partly solved) A.R. Burgers
@ 1999-10-01 14:22     ` Suhaib Siddiqi
  1999-10-31 19:54       ` Suhaib Siddiqi
  1999-10-02 19:13     ` Charles S. Wilson
  1999-10-31 19:54     ` A.R. Burgers
  2 siblings, 1 reply; 10+ messages in thread
From: Suhaib Siddiqi @ 1999-10-01 14:22 UTC (permalink / raw)
  To: A.R. Burgers, ssiddiqi; +Cc: cygwin mailing list

rpm2cpio requires Perl installed in /usr/bin, unless you edit
rpm2cpio script and change the #!/usr/bin/perl.exe to your install
path.
The syntex is

rpm2cpio my_rpm_file.rpm | cpio -i --make-directories

In addition you need cpio.exe in your PATH.

rpm2cpio has nothing to with RPM.  It is a Perl script which
extracts
to contents of the rpm, without installing RPM. I had been using it
on my Windows and SGI machine for a while for extracting source
codes
from RPM archives for Linux.

Suhaib


> -----Original Message-----
> From: cygwin-owner@sourceware.cygnus.com
> [ mailto:cygwin-owner@sourceware.cygnus.com]On Behalf Of
> A.R. Burgers
> Sent: Friday, October 01, 1999 5:17 PM
> To: ssiddiqi@nspm.ipass.net
> Cc: cygwin mailing list
> Subject: Re: Problem using rpm on Windows 98 (partly solved)
>
>
> Suhaib Siddiqi wrote:
>
> > Do not know about rpm, but you can get rpm2cpio script
> > from http://cygutils.netpedia.net/ , extract the
> contents of rpm and
> > install it manually by copying the extracted
> files/directories to
> > the desired location.
>
> Thanks for your fast response and your hint.
>
> I tried both rpm2cpio from cygutils.netpedia.net and the
> rpm2cpio.pl
> script (from www.rpm.org).
>
> rpm2cpio says:
> error reading header from package
>
> rpm2cpio.pl says:
> bogus RPM.
>
> This hold for rpms perl-DBI-1.13-1-cygwinb20.i386.rpm and
> perl-DelimMatch-1.04-1-cygwinb20.i386.rpm
>
> I managed to get rpm2cpio.pl to work by specifying
> binmode on the filehandle to the rpm archive.
>
> So the problem is probably that rpm2cpio (and probably rpm)
> don't open their files in binary mode. Is something set
> wrong in my
> environment? Are my file opens text by default and not binary?
>
> my $CYGWIN variable is empty.
> The output of mount is:
>
> Device           Directory           Type        Flags
> C:               /                   native      text!=binary
>
> Teun Burgers
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Problem using rpm on Windows 98 (partly solved)
  1999-10-01 14:15   ` Problem using rpm on Windows 98 (partly solved) A.R. Burgers
  1999-10-01 14:22     ` Suhaib Siddiqi
@ 1999-10-02 19:13     ` Charles S. Wilson
  1999-10-31 19:54       ` Charles S. Wilson
  1999-10-31 19:54     ` A.R. Burgers
  2 siblings, 1 reply; 10+ messages in thread
From: Charles S. Wilson @ 1999-10-02 19:13 UTC (permalink / raw)
  To: A.R. Burgers; +Cc: cygwin mailing list

Based on my quick perusal of the source code, it appears that the
problem *is* a text/binary mount issue. The source code needs to be
patched with a lot of #ifdef CYGWIN's and O_BINARY's. Unfortunately I
can't do this right now. Workaround (for now) is to use binary mounts
for rpm.exe.

One strange thing, though - I changed all my mounts to text, and it
worked fine for me (even though, according to the source code, the files
are *not* opened correctly). Weird. 

--Chuck

"A.R. Burgers" wrote:
> 
> Suhaib Siddiqi wrote:
> 
> > Do not know about rpm, but you can get rpm2cpio script
> > from http://cygutils.netpedia.net/ , extract the contents of rpm and
> > install it manually by copying the extracted files/directories to
> > the desired location.
> 
> Thanks for your fast response and your hint.
> 
> I tried both rpm2cpio from cygutils.netpedia.net and the rpm2cpio.pl
> script (from www.rpm.org).
> 
> rpm2cpio says:
> error reading header from package
> 
> rpm2cpio.pl says:
> bogus RPM.
> 
> This hold for rpms perl-DBI-1.13-1-cygwinb20.i386.rpm and
> perl-DelimMatch-1.04-1-cygwinb20.i386.rpm
> 
> I managed to get rpm2cpio.pl to work by specifying
> binmode on the filehandle to the rpm archive.
> 
> So the problem is probably that rpm2cpio (and probably rpm)
> don't open their files in binary mode. Is something set wrong in my
> environment? Are my file opens text by default and not binary?
> 
> my $CYGWIN variable is empty.
> The output of mount is:
> 
> Device           Directory           Type        Flags
> C:               /                   native      text!=binary
> 
> Teun Burgers
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Problem using rpm on Windows 98 (partly solved)
  1999-10-01 14:15   ` Problem using rpm on Windows 98 (partly solved) A.R. Burgers
  1999-10-01 14:22     ` Suhaib Siddiqi
  1999-10-02 19:13     ` Charles S. Wilson
@ 1999-10-31 19:54     ` A.R. Burgers
  2 siblings, 0 replies; 10+ messages in thread
From: A.R. Burgers @ 1999-10-31 19:54 UTC (permalink / raw)
  To: ssiddiqi; +Cc: cygwin mailing list

Suhaib Siddiqi wrote:

> Do not know about rpm, but you can get rpm2cpio script
> from http://cygutils.netpedia.net/ , extract the contents of rpm and
> install it manually by copying the extracted files/directories to
> the desired location.

Thanks for your fast response and your hint.

I tried both rpm2cpio from cygutils.netpedia.net and the rpm2cpio.pl
script (from www.rpm.org).

rpm2cpio says:
error reading header from package

rpm2cpio.pl says:
bogus RPM.

This hold for rpms perl-DBI-1.13-1-cygwinb20.i386.rpm and
perl-DelimMatch-1.04-1-cygwinb20.i386.rpm

I managed to get rpm2cpio.pl to work by specifying
binmode on the filehandle to the rpm archive.

So the problem is probably that rpm2cpio (and probably rpm)
don't open their files in binary mode. Is something set wrong in my
environment? Are my file opens text by default and not binary?

my $CYGWIN variable is empty.
The output of mount is:

Device           Directory           Type        Flags
C:               /                   native      text!=binary

Teun Burgers

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Problem using rpm on Windows 98.
  1999-10-01 12:28 Problem using rpm on Windows 98 A.R. Burgers
  1999-10-01 13:14 ` Suhaib Siddiqi
@ 1999-10-31 19:54 ` A.R. Burgers
  1 sibling, 0 replies; 10+ messages in thread
From: A.R. Burgers @ 1999-10-31 19:54 UTC (permalink / raw)
  To: cygwin mailing list

Hi

has anybody had any luck installing perl module rpm-s
from Charles Wilson's site ( http://cygutils.netpedia.net/ )?
I'm using Windows 98, 2nd edition.
I try to install a module using the rpm command:

rpm --install perl-DBI-1.13-1-cygwinb20.i386.rpm

and get the response

error:  perl-DBI-1.13-1-cygwinb20.i386.rpm  cannot be installed

I installed rpm using the instructions and binary provided
at http://cygutils.netpedia.net/

rpm -i -vv perl-DBI-1.13-1-cygwinb20.i386.rpm

returns:

D: counting packages to install
D: found 1 packages
D: looking for packages to download
D: retrieved 0 packages
D: New Header signature
D: Signature size: 68
D: Signature pad : 4
D: sigsize         : 72
D: Header + Archive: 380280
D: expected size   : 380280
error: /tmp/perl-DBI-1.13-1-cygwinb20.i386.rpm cannot be installed
D: found 0 source and 0 binary packages
[exited with 1]

I'm using stock B20.1 with the jan 15, 1999 cygwin1.dll

Any help appreciated

Teun Burgers

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: Problem using rpm on Windows 98 (partly solved)
  1999-10-01 14:22     ` Suhaib Siddiqi
@ 1999-10-31 19:54       ` Suhaib Siddiqi
  0 siblings, 0 replies; 10+ messages in thread
From: Suhaib Siddiqi @ 1999-10-31 19:54 UTC (permalink / raw)
  To: A.R. Burgers, ssiddiqi; +Cc: cygwin mailing list

rpm2cpio requires Perl installed in /usr/bin, unless you edit
rpm2cpio script and change the #!/usr/bin/perl.exe to your install
path.
The syntex is

rpm2cpio my_rpm_file.rpm | cpio -i --make-directories

In addition you need cpio.exe in your PATH.

rpm2cpio has nothing to with RPM.  It is a Perl script which
extracts
to contents of the rpm, without installing RPM. I had been using it
on my Windows and SGI machine for a while for extracting source
codes
from RPM archives for Linux.

Suhaib


> -----Original Message-----
> From: cygwin-owner@sourceware.cygnus.com
> [ mailto:cygwin-owner@sourceware.cygnus.com]On Behalf Of
> A.R. Burgers
> Sent: Friday, October 01, 1999 5:17 PM
> To: ssiddiqi@nspm.ipass.net
> Cc: cygwin mailing list
> Subject: Re: Problem using rpm on Windows 98 (partly solved)
>
>
> Suhaib Siddiqi wrote:
>
> > Do not know about rpm, but you can get rpm2cpio script
> > from http://cygutils.netpedia.net/ , extract the
> contents of rpm and
> > install it manually by copying the extracted
> files/directories to
> > the desired location.
>
> Thanks for your fast response and your hint.
>
> I tried both rpm2cpio from cygutils.netpedia.net and the
> rpm2cpio.pl
> script (from www.rpm.org).
>
> rpm2cpio says:
> error reading header from package
>
> rpm2cpio.pl says:
> bogus RPM.
>
> This hold for rpms perl-DBI-1.13-1-cygwinb20.i386.rpm and
> perl-DelimMatch-1.04-1-cygwinb20.i386.rpm
>
> I managed to get rpm2cpio.pl to work by specifying
> binmode on the filehandle to the rpm archive.
>
> So the problem is probably that rpm2cpio (and probably rpm)
> don't open their files in binary mode. Is something set
> wrong in my
> environment? Are my file opens text by default and not binary?
>
> my $CYGWIN variable is empty.
> The output of mount is:
>
> Device           Directory           Type        Flags
> C:               /                   native      text!=binary
>
> Teun Burgers
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* RE: Problem using rpm on Windows 98.
  1999-10-01 13:14 ` Suhaib Siddiqi
  1999-10-01 14:15   ` Problem using rpm on Windows 98 (partly solved) A.R. Burgers
@ 1999-10-31 19:54   ` Suhaib Siddiqi
  1 sibling, 0 replies; 10+ messages in thread
From: Suhaib Siddiqi @ 1999-10-31 19:54 UTC (permalink / raw)
  To: A.R. Burgers, cygwin mailing list

Do not know about rpm, but you can get rpm2cpio script
from http://cygutils.netpedia.net/ , extract the contents of rpm and
install it manually by copying the extracted files/directories to
the desired location.

Suhaib


> -----Original Message-----
> From: cygwin-owner@sourceware.cygnus.com
> [ mailto:cygwin-owner@sourceware.cygnus.com]On Behalf Of
> A.R. Burgers
> Sent: Friday, October 01, 1999 3:31 PM
> To: cygwin mailing list
> Subject: Problem using rpm on Windows 98.
>
>
> Hi
>
> has anybody had any luck installing perl module rpm-s
> from Charles Wilson's site ( http://cygutils.netpedia.net/ )?
> I'm using Windows 98, 2nd edition.
> I try to install a module using the rpm command:
>
> rpm --install perl-DBI-1.13-1-cygwinb20.i386.rpm
>
> and get the response
>
> error:  perl-DBI-1.13-1-cygwinb20.i386.rpm  cannot be installed
>
> I installed rpm using the instructions and binary provided
> at http://cygutils.netpedia.net/
>
> rpm -i -vv perl-DBI-1.13-1-cygwinb20.i386.rpm
>
> returns:
>
> D: counting packages to install
> D: found 1 packages
> D: looking for packages to download
> D: retrieved 0 packages
> D: New Header signature
> D: Signature size: 68
> D: Signature pad : 4
> D: sigsize         : 72
> D: Header + Archive: 380280
> D: expected size   : 380280
> error: /tmp/perl-DBI-1.13-1-cygwinb20.i386.rpm cannot be installed
> D: found 0 source and 0 binary packages
> [exited with 1]
>
> I'm using stock B20.1 with the jan 15, 1999 cygwin1.dll
>
> Any help appreciated
>
> Teun Burgers
>
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com
>


--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

* Re: Problem using rpm on Windows 98 (partly solved)
  1999-10-02 19:13     ` Charles S. Wilson
@ 1999-10-31 19:54       ` Charles S. Wilson
  0 siblings, 0 replies; 10+ messages in thread
From: Charles S. Wilson @ 1999-10-31 19:54 UTC (permalink / raw)
  To: A.R. Burgers; +Cc: cygwin mailing list

Based on my quick perusal of the source code, it appears that the
problem *is* a text/binary mount issue. The source code needs to be
patched with a lot of #ifdef CYGWIN's and O_BINARY's. Unfortunately I
can't do this right now. Workaround (for now) is to use binary mounts
for rpm.exe.

One strange thing, though - I changed all my mounts to text, and it
worked fine for me (even though, according to the source code, the files
are *not* opened correctly). Weird. 

--Chuck

"A.R. Burgers" wrote:
> 
> Suhaib Siddiqi wrote:
> 
> > Do not know about rpm, but you can get rpm2cpio script
> > from http://cygutils.netpedia.net/ , extract the contents of rpm and
> > install it manually by copying the extracted files/directories to
> > the desired location.
> 
> Thanks for your fast response and your hint.
> 
> I tried both rpm2cpio from cygutils.netpedia.net and the rpm2cpio.pl
> script (from www.rpm.org).
> 
> rpm2cpio says:
> error reading header from package
> 
> rpm2cpio.pl says:
> bogus RPM.
> 
> This hold for rpms perl-DBI-1.13-1-cygwinb20.i386.rpm and
> perl-DelimMatch-1.04-1-cygwinb20.i386.rpm
> 
> I managed to get rpm2cpio.pl to work by specifying
> binmode on the filehandle to the rpm archive.
> 
> So the problem is probably that rpm2cpio (and probably rpm)
> don't open their files in binary mode. Is something set wrong in my
> environment? Are my file opens text by default and not binary?
> 
> my $CYGWIN variable is empty.
> The output of mount is:
> 
> Device           Directory           Type        Flags
> C:               /                   native      text!=binary
> 
> Teun Burgers
> 
> --
> Want to unsubscribe from this list?
> Send a message to cygwin-unsubscribe@sourceware.cygnus.com

--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com

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

end of thread, other threads:[~1999-10-31 19:54 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
1999-10-01 12:28 Problem using rpm on Windows 98 A.R. Burgers
1999-10-01 13:14 ` Suhaib Siddiqi
1999-10-01 14:15   ` Problem using rpm on Windows 98 (partly solved) A.R. Burgers
1999-10-01 14:22     ` Suhaib Siddiqi
1999-10-31 19:54       ` Suhaib Siddiqi
1999-10-02 19:13     ` Charles S. Wilson
1999-10-31 19:54       ` Charles S. Wilson
1999-10-31 19:54     ` A.R. Burgers
1999-10-31 19:54   ` Problem using rpm on Windows 98 Suhaib Siddiqi
1999-10-31 19:54 ` A.R. Burgers

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