LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-21-2008, 06:34 PM   #1
GunNam
LQ Newbie
 
Registered: Sep 2006
Location: Los Angeles
Distribution: Ubuntu 10.10
Posts: 17

Rep: Reputation: 0
Can't extract MacOSX10.4.Universal.pkg


Hello, I'm trying to install the iphone toolchain from: http://code.google.com/p/iphone-dev/wiki/Building

Unforunately, I'm stuck at this section:
HOWTO obtain the Mac OS X headers on Linux or Windows
* Extract the pax archive inside the Mac OS X 10.4 SDK package.

mkdir MacOSX10.4-Universal-SDK
pushd MacOSX10.4-Universal-SDK
gunzip -c ../MacOSX10.4.Universal.pkg/Contents/Archive.pax.gz | cpio -i
popd


Here are some of the error messages on different platforms:
In Ubuntu, running the following command:
gunzip -c ../MacOSX10.4.Universal.pkg/Contents/Archive.pax.gz | cpio -i
I get:
gzip: ../MacOSX10.4.Universal.pkg/Contents/Archive.pax.gz: No such file or directory
cpio: premature end of archive


When I run the following command:
gunzip -c MacOSX10.4.Universal.pkg
I get:
gzip: MacOSX10.4.Universal.pkg: not in gzip format


In MacOS 10.4.11
When I try to open up the .pkg file (from both the older & newer DMG files), I receive the error:
Open Failed: Couldn't open "MacOSX10.4.Universal.pkg". This package type requires Mac OS X 10.5.

I do not have access to a Mac OS 10.5.

Any help would be appreciated to extract the contents from the .pkg.

-GunNam
 
Old 10-22-2008, 11:04 AM   #2
trickykid
LQ Guru
 
Registered: Jan 2001
Posts: 24,149

Rep: Reputation: 269Reputation: 269Reputation: 269
Quote:
Originally Posted by GunNam View Post
Hello, I'm trying to install the iphone toolchain from: http://code.google.com/p/iphone-dev/wiki/Building

Unforunately, I'm stuck at this section:
HOWTO obtain the Mac OS X headers on Linux or Windows
* Extract the pax archive inside the Mac OS X 10.4 SDK package.

mkdir MacOSX10.4-Universal-SDK
pushd MacOSX10.4-Universal-SDK
gunzip -c ../MacOSX10.4.Universal.pkg/Contents/Archive.pax.gz | cpio -i
popd


Here are some of the error messages on different platforms:
In Ubuntu, running the following command:
gunzip -c ../MacOSX10.4.Universal.pkg/Contents/Archive.pax.gz | cpio -i
I get:
gzip: ../MacOSX10.4.Universal.pkg/Contents/Archive.pax.gz: No such file or directory
cpio: premature end of archive


When I run the following command:
gunzip -c MacOSX10.4.Universal.pkg
I get:
gzip: MacOSX10.4.Universal.pkg: not in gzip format


In MacOS 10.4.11
When I try to open up the .pkg file (from both the older & newer DMG files), I receive the error:
Open Failed: Couldn't open "MacOSX10.4.Universal.pkg". This package type requires Mac OS X 10.5.

I do not have access to a Mac OS 10.5.

Any help would be appreciated to extract the contents from the .pkg.

-GunNam
Not familiar with this but why would you try to run gunzip on MacOSX10.4.Universal.pkg? Before it was MacOSX10.4.Universal.pkg.gz which was gzipped, now it's not. Not sure why you're getting the cpio premature error but perhaps it was a bad download, but it's clearly gunzipped at this point.
 
Old 10-22-2008, 05:27 PM   #3
rabbit2345
Member
 
Registered: Apr 2007
Location: SC
Distribution: Kubuntu 20.04 LTS
Posts: 378

Rep: Reputation: 41
ok, for starters, don't use cpio, a pax archive is not a cpio archive, it is a pax archive.

extracting from linux, use the pax command. the basic unzip format for this is:

Code:
pax -r * < /path/to/archive
that will unzip everything in that archive to the current directory.

Quote:
gunzip -c ../MacOSX10.4.Universal.pkg/Contents/Archive.pax.gz | cpio -i
instead of gzip -c | program, just do gzip -d and take that actual file and unpax it.

another thing: .pkg files under mac are not real files. .pkg files are actually a folder with stuff inside them. so under linux, you will see that it is actually a folder. same with .app things. you just need to go into the folder and find something.pax and unzip that

good luck,
rabbit2345 ^_^
 
Old 10-22-2008, 09:39 PM   #4
GunNam
LQ Newbie
 
Registered: Sep 2006
Location: Los Angeles
Distribution: Ubuntu 10.10
Posts: 17

Original Poster
Rep: Reputation: 0
Thank you for all the replies.
After countless hours, I realized I should find out what is actually in the file so I listed the contents using xar.

Realized that the directions to build the toolchain is probably outdated, because the archive it wants extracted does not even exist in that .pkg.

All input has helped to get me more familiar with linux. Thank you very much!

I am currently dealing with one config error from my toolchain build... if I can't figure it out, you will probably see a new post about it. Thanks again.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Universal-Bootloader priya001 Arch 3 06-27-2006 10:14 AM
Is XML universal? Ygrex Programming 9 10-27-2005 03:26 AM
Starting from 0 - pkg by pkg Lopes Linux - Newbie 2 07-02-2005 01:42 AM
universal settings tedivm Linux - Newbie 1 08-19-2004 11:20 PM
An Universal clock satimis Linux - Software 3 01-08-2004 06:56 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 02:09 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration