public inbox for cygwin@cygwin.com
 help / color / mirror / Atom feed
* rpm 3.0.4: Can't "rpm -Uvh" my first rpm package (unpacking of archivefailed: cpio: Bad magic)
@ 2000-08-09 15:24 Matthew D. Langston
  2000-08-09 15:56 ` Charles S. Wilson
  0 siblings, 1 reply; 2+ messages in thread
From: Matthew D. Langston @ 2000-08-09 15:24 UTC (permalink / raw)
  To: cygwin

[-- Attachment #1: Type: text/plain, Size: 2467 bytes --]

I am having problems installing my first rpm package under the Cygwin
environment.

I recently installed the latest standard cygwin packages (those that install
by default when running setup.exe and installing the latest packages from
the net).  The output from running "cygcheck -s -v -r" is attached to the
bottom of this email.

I next installed rpm 3.0.4 from
http://atlas.spaceports.com/~cygwin/rpm/rpm-3.0.4-cygwin.tar.gz , and set up
the rpm database using the following instructions:

1. "rpm --initdb" (from http://cygwin.cjb.net/ )
2. "touch /etc/mtab" (from Chuck Wilson's post
http://sources.redhat.com/ml/cygwin/2000-07/msg01193.html )

Next, I ran "rpm -qa" just to make sure there were no error messages (there
weren't), and that the output showed that the rpm database was empty (it
was).

I then downloaded the RPM package that I wanted to install
( ftp://projects.sourceforge.net/pub/cygwin-rpm/packages/perl/perl-5.6.0-cygw
in1.1.rpm), into my home directory (i.e. /home/langston) which is mounted in
binmode:

$ mount
Device              Directory           Type         Flags
E:\cygwin\bin       /usr/bin            system       binmode
E:\cygwin\lib       /usr/lib            system       binmode
E:\cygwin           /                   system       binmode

However, when I tried to install the perl RPM, I received the following cpio
error:

$ rpm -Uvh perl-5.6.0-cygwin1.1.rpm
user martin1 does not exist - using root
[snip]
user martin1 does not exist - using root
perl                        ##unpacking of archive failed: cpio: Bad magic

The "user martin1 does not exist - using root" error message isn't pertinent
(FYI its a warning, and not an error, due to building the perl RPM slightly
improperly).

When I tried to install the perl RPM from the net, I received the same
error:

$ rpm -Uvh
ftp://projects.sourceforge.net/pub/cygwin-rpm/packages/perl/perl-5.6.0-cygwi
n1.1.rpm
user martin1 does not exist - using root
[snip]
user martin1 does not exist - using root
perl                        ##unpacking of archive failed: cpio: Bad magic

I also received the same cpio error message when tried to install other RPM
packages from the sourceforge link above (i.e. I tried autoconf and
automake).  I also tried just "installing" the RPMs using "rpm -i", but
received the same error message.

Can someone set me straight please?  Thank you :-)

--
Matthew D. Langston
SLD, Stanford Linear Accelerator Center
langston@SLAC.Stanford.EDU

[-- Attachment #2: cygcheck.out --]
[-- Type: text/x-Algol68, Size: 11644 bytes --]


Cygnus Win95/NT Configuration Diagnostics
Current System Time: Wed Aug  9 14:11:04 2000

WinNT Ver 5.0 build 2195 Service Pack 1

Path:	/usr/bin
	/usr/bin
	/usr/local/bin
	/usr/bin
	/usr/bin
	/usr/local/bin
	/cygdrive/e/WINNT/system32
	/cygdrive/e/WINNT
	/cygdrive/e/WINNT/System32/Wbem
	/cygdrive/e/Program Files/Microsoft Visual Studio/Common/Tools/WinNT
	/cygdrive/e/Program Files/Microsoft Visual Studio/Common/MSDev98/Bin
	/cygdrive/e/Program Files/Microsoft Visual Studio/Common/Tools
	/cygdrive/e/Program Files/Microsoft Visual Studio/VC98/bin
	/cygdrive/e/Program Files/root/bin

SysDir: E:\WINNT\System32
WinDir: E:\WINNT

CYGWIN = `ntsec'
HOME = `/home/langston'
MAKE_MODE = `unix'
PWD = `/home/langston'
USER = `langston'

!E: = `E:\cygwin\bin'
ALLUSERSPROFILE = `E:\Documents and Settings\All Users'
APPDATA = `E:\Documents and Settings\Matthew D. Langston\Application Data'
COMMONPROGRAMFILES = `E:\Program Files\Common Files'
COMPUTERNAME = `TRINITY'
COMSPEC = `E:\WINNT\system32\cmd.exe'
CVSROOT = `:ext:moreau.uoregon.edu:/mnt/hdc/cvsroot'
CVS_RSH = `ssh'
EDITOR = `emacsclient'
ENV = `/home/langston/.bashrc'
ENVIRONMENT_SET = `1'
HOMEDRIVE = `E:'
HOMEPATH = `\'
HOSTNAME = `TRINITY'
HOSTTYPE = `i586'
INCLUDE = `E:\Program Files\Microsoft Visual Studio\VC98\atl\include;E:\Program Files\Microsoft Visual Studio\VC98\mfc\include;E:\Program Files\Microsoft Visual Studio\VC98\include'
LIB = `E:\Program Files\Microsoft Visual Studio\VC98\mfc\lib;E:\Program Files\Microsoft Visual Studio\VC98\lib'
LOGONSERVER = `\\TRINITY'
MACHTYPE = `i586-pc-cygwin'
MSDEVDIR = `E:\Program Files\Microsoft Visual Studio\Common\MSDev98'
NUMBER_OF_PROCESSORS = `1'
OLDPWD = `/home/langston/packages'
OS2LIBPATH = `E:\WINNT\system32\os2\dll;'
OS = `Windows_NT'
OSTYPE = `cygwin'
PATHEXT = `.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH'
PROCESSOR_ARCHITECTURE = `x86'
PROCESSOR_IDENTIFIER = `x86 Family 6 Model 8 Stepping 1, GenuineIntel'
PROCESSOR_LEVEL = `6'
PROCESSOR_REVISION = `0801'
PROGRAMFILES = `E:\Program Files'
PROMPT = `$P$G'
PS1 = `^[]0;\w\a
^[[32m\u@\h ^[[33m\w^[[0m
$ '
ROOTSYS = `E:\Program Files\root'
SHELL = `/bin/sh'
SHLVL = `1'
SYSTEMDRIVE = `E:'
SYSTEMROOT = `E:\WINNT'
TEMP = `/cygdrive/e/DOCUME~1/MATTHE~1.LAN/LOCALS~1/Temp'
TERM = `cygwin'
USERDOMAIN = `TRINITY'
USERNAME = `Matthew D. Langston'
USERPROFILE = `E:\Documents and Settings\Matthew D. Langston'
WINDIR = `E:\WINNT'
XRSH_AUTH_TYPE = `environment'
_ = `/bin/cygcheck'
TZ = `PST8PDT7,M4.1.0/2,M10.5.0/2'

HKEY_CURRENT_USER\Software\Cygnus Solutions
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\mounts v2
  (default) = `/cygdrive'
  cygdrive flags = 0x00000020
HKEY_CURRENT_USER\Software\Cygnus Solutions\Cygwin\Program Options
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_CURRENT_USER\Software\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MenuOrder\Start Menu\Programs\Cygnus Solutions
  (default) = (unsupported type)
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Installed Components
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\Installed Components\E:/cygwin
  (default) = `20000627'
  bash = `0002.0004.0001'
  binutils = `20000625'
  bison = `0000'
  byacc = `0000'
  bzip = `0000'
  clear = `0001.0000'
  crypt = `0001.0000'
  cygwin = `0001.0001.0002'
  dejagnu = `0000'
  diff = `0000'
  expect = `0000'
  fileutils = `0000'
  findutils = `0000'
  flex = `0000'
  gawk = `0003.0000.0004'
  gcc = `0002.0095.0002.0002'
  gdb = `20000610'
  gperf = `0000'
  grep = `0000'
  groff = `0001.011a.0001'
  gzip = `0000'
  inetutils = `0001.0003.0002.0004'
  less = `0000'
  libpng = `0001.0000.0006.0001'
  login = `0001.0003'
  m = `0000'
  make = `0003.0079.0003'
  man = `0001.005g.0002'
  opengl = `0001.0002.0001.0001'
  patch = `0000'
  sed = `0003.0002.0001'
  shellutils = `0000'
  tar = `0000'
  tcltk = `20000610'
  termcap = `20000630'
  texinfo = `0000'
  textutils = `0002.0000.0001'
  time = `0000'
  vim = `0005.0007.0004'
  zlib = `0001.0001.0003.0001'
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/
  (default) = `E:\cygwin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/bin
  (default) = `E:/cygwin/bin'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\Cygwin\mounts v2\/usr/lib
  (default) = `E:/cygwin/lib'
  flags = 0x0000000a
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\00
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\01
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\02
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\03
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\04
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\05
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\06
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\07
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\08
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\09
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0D
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0E
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\0F
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\10
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\11
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\12
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\13
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\14
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\15
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\16
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\17
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\18
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\19
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1A
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1B
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1C
HKEY_LOCAL_MACHINE\SOFTWARE\Cygnus Solutions\CYGWIN.DLL setup\b15.0\mounts\1D

c:  hd  FAT32   4994Mb  75% CP    UN           
d:  cd           N/A    N/A                    
e:  hd  NTFS    6361Mb  44% CP CS UN PA FC     
f:  hd           N/A    N/A                    
g:  fd           N/A    N/A                    

E:\cygwin\bin  /usr/bin  system  binmode
E:\cygwin\lib  /usr/lib  system  binmode
E:\cygwin  /        system  binmode

Found: E:\cygwin\bin\bash.exe
Found: E:\cygwin\bin\cat.exe
Found: E:\cygwin\bin\cpp.exe
Found: E:\cygwin\bin\find.exe
Found: E:\cygwin\bin\gcc.exe
Found: E:\cygwin\bin\gdb.exe
Found: E:\cygwin\bin\ld.exe
Found: E:\cygwin\bin\ls.exe
Found: E:\cygwin\bin\make.exe
Found: E:\cygwin\bin\sh.exe

   83k 2000/06/11 E:\cygwin\bin\cygitcl30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitcl30.dll" v0.0 ts=2000/6/10 20:34
   35k 2000/06/11 E:\cygwin\bin\cygitk30.dll - os=4.0 img=1.0 sys=4.0
                  "cygitk30.dll" v0.0 ts=2000/6/10 20:34
  402k 2000/06/11 E:\cygwin\bin\cygtcl80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtcl80.dll" v0.0 ts=2000/6/10 20:30
    5k 2000/06/11 E:\cygwin\bin\cygtclpip80.dll - os=4.0 img=1.0 sys=4.0
   10k 2000/06/11 E:\cygwin\bin\cygtclreg80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtclreg80.dll" v0.0 ts=2000/6/10 20:30
  639k 2000/06/11 E:\cygwin\bin\cygtk80.dll - os=4.0 img=1.0 sys=4.0
                  "cygtk80.dll" v0.0 ts=2000/6/10 20:34
  586k 2000/08/04 E:\cygwin\bin\cygwin1.dll - os=4.0 img=1.0 sys=4.0
                  "cygwin1.dll" v0.0 ts=2000/8/3 17:53
    Cygwin DLL version info:
        dll major: 1001
        dll minor: 4
        dll epoch: 19
        dll bad signal mask: 19005
        dll old termios: 5
        api major: 0
        api minor: 26
        shared data: 3
        dll identifier: cygwin1
        mount registry: 2
        cygnus registry name: Cygnus Solutions
        cygwin registry name: Cygwin
        program options name: Program Options
        cygwin mount registry name: mounts v2
        build date: Thu Aug 3 20:53:46 EDT 2000
        CVS tag: cygwin-1-1-4
        shared id: cygwin1S3

Use -h to see help about each section

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

* Re: rpm 3.0.4: Can't "rpm -Uvh" my first rpm package (unpacking of archivefailed: cpio: Bad magic)
  2000-08-09 15:24 rpm 3.0.4: Can't "rpm -Uvh" my first rpm package (unpacking of archivefailed: cpio: Bad magic) Matthew D. Langston
@ 2000-08-09 15:56 ` Charles S. Wilson
  0 siblings, 0 replies; 2+ messages in thread
From: Charles S. Wilson @ 2000-08-09 15:56 UTC (permalink / raw)
  To: Matthew D. Langston; +Cc: cygwin

> I then downloaded the RPM package that I wanted to install
> ( ftp://projects.sourceforge.net/pub/cygwin-rpm/packages/perl/perl-5.6.0-cygw
> in1.1.rpm), into my home directory 

> ##unpacking of archive failed: cpio: Bad magic

Sounds like the .rpm files got corrupted during the download (netscape
will do that) but you really should be directing this question to one of
the following people:

#1) rebum (the proprietor of the site where you got rpm.exe)
   he's very accessible via email, IRC, or EFnet -- see the webpage at
http://atlas.spaceports.com/~cygwin/

#2) rebum (!!) (the proprietor of the site where you got the .rpm files)

Also, I *think* there may be a problem with rebum's rpm-3.0.4 package if
you try to unzip it using windows tools. The paths in the archive are
'/usr/lib/whatever' and windows happily complies -- but because cygwin
mounts '/lib' on top of '/usr/lib' all the stuff that WinZip put into
'/usr/lib' is hidden.

A) don't unpack using windows tools -- use cygwin tar and gunzip, for
.tar.gz archives, or "unzip" for .zip archives (see
http://cygutils.netpedia.net/V1.1/unzip-5.41/ ) 
B) using explorer, move the stuff in /usr/lib into /lib.

Good luck!

--Chuck

P.S. I did some of the initial ports of db, rpm, etc, but many folks
have taken my stuff and moved forward, including Rebum, Rue Satoh, and
Michael Ring. I can't personally support other people's ports of "my"
packages, only my own version. I'm sure you see why.

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

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

end of thread, other threads:[~2000-08-09 15:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2000-08-09 15:24 rpm 3.0.4: Can't "rpm -Uvh" my first rpm package (unpacking of archivefailed: cpio: Bad magic) Matthew D. Langston
2000-08-09 15:56 ` Charles S. Wilson

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