Go Back   The macosxhints Forums > OS X Help Requests > UNIX - Newcomers



Reply
 
Thread Tools Rating: Thread Rating: 14 votes, 5.00 average. Display Modes
Old 05-05-2012, 10:59 AM   #1
Brian Schott
Triple-A Player
 
Join Date: Jun 2005
Posts: 91
tar tvf

Can anyone suggest a way I can workaround the error here, please?


server:~ brian$ tar tvf /Users/brian/Downloads/ac1ee0cf4ef9.tar.cpgz
drwx------ 13 501 20 0 May 3 08:05 .
-rw-r--r-- 1 501 20 1021114 May 3 08:05 ./ac1ee0cf4ef9.tar
-rw-r--r-- 1 501 20 193 May 3 08:05 ./._ac1ee0cf4ef9.tar
server:~ brian$ tar tvf /Users/brian/Downloads/ac1ee0cf4ef9.tar
tar: Unrecognized archive format
tar: Error exit delayed from previous errors.
server:~ brian$

Brian in Atlanta
Brian Schott is offline   Reply With Quote
Old 05-05-2012, 11:30 AM   #2
fracai
MVP
 
Join Date: May 2004
Posts: 2,087
What's the output of:

file /Users/brian/Downloads/ac1ee0cf4ef9.tar.cpgz

And, have you tried opening the file from the Finder?
Worst case, you could download The Unarchiver.
fracai is offline   Reply With Quote
Old 05-05-2012, 03:08 PM   #3
Brian Schott
Triple-A Player
 
Join Date: Jun 2005
Posts: 91
Downloaded file again

I elected to download the file again. I then realized that the name of the downloaded file has only the .gz ending until I try to open it, and then the ending becomes the earlier .cpgz .

So now I tried the following unzip with this error.
Any ideas would be appreciate.

Brian in Atlanta


serverownloads brian$ gunzip /Users/brian/Downloads/ac1ee0cf4ef9.tar.gz

gzip: /Users/brian/Downloads/ac1ee0cf4ef9.tar.gz: not in gzip format
serverownloads brian$
Brian Schott is offline   Reply With Quote
Old 05-05-2012, 03:26 PM   #4
DeltaMac
League Commissioner
 
Join Date: Jan 2002
Posts: 8,501
If the file is not in the gzip format, then perhaps the file is either a bad file (corrupted, or just improperly made) - or not what it appears to be.

Try The Unarchiver on that file.
http://unarchiver.c3.cx/

Or - provide a download link, so we could take a look at that file.
What is its purpose?
DeltaMac is online now   Reply With Quote
Old 05-05-2012, 10:25 PM   #5
acme.mail.order
League Commissioner
 
Join Date: Sep 2003
Location: Tokyo
Posts: 6,328
The -z option in tar only works with gzip compression. Yours is cpgz - a brief search reveals it is a CPIO compression format.

Remove the compression, then try again without the 'z' option
acme.mail.order is offline   Reply With Quote
Old 05-06-2012, 07:18 AM   #6
Brian Schott
Triple-A Player
 
Join Date: Jun 2005
Posts: 91
Quote:
Originally Posted by DeltaMac
If the file is not in the gzip format, then perhaps the file is either a bad file (corrupted, or just improperly made) - or not what it appears to be.

Try The Unarchiver on that file.
http://unarchiver.c3.cx/

Or - provide a download link, so we could take a look at that file.
What is its purpose?

Thanks for the offer. The link is as follows.
http://en.verysource.com/imap-4-7-ta...nload-613.html

The purpose is to get source code for some files I need to compile Alpine, a text mail client for Lion.

Last edited by Brian Schott; 05-06-2012 at 08:06 AM. Reason: for got to answer a question
Brian Schott is offline   Reply With Quote
Old 05-06-2012, 08:10 AM   #7
acme.mail.order
League Commissioner
 
Join Date: Sep 2003
Location: Tokyo
Posts: 6,328
Requires registration.

You're being very ambitious - both running your own mail server AND getting the software from a freeware source in China.

Question: do you have any experience installing Unix command-line packages? DNS? Server administration?

Afterthought: since you already have a Mac Mini Server, why are you trying to install software that came with the box and is all set up and ready to go?

Last edited by acme.mail.order; 05-06-2012 at 08:53 AM.
acme.mail.order is offline   Reply With Quote
Old 05-06-2012, 08:49 AM   #8
WillyT
Major Leaguer
 
Join Date: Jan 2002
Location: Midwest Not quite Normal
Posts: 416
Go to the "real" source.

http://www.washington.edu/imap/
__________________
I have a Reason3 not to be grumpy and now I have a Rosegarden that works.
Willy
WillyT is offline   Reply With Quote
Old 05-06-2012, 11:16 AM   #9
Brian Schott
Triple-A Player
 
Join Date: Jun 2005
Posts: 91
Quote:
Originally Posted by acme.mail.order
Requires registration.

You're being very ambitious - both running your own mail server AND getting the software from a freeware source in China.

Question: do you have any experience installing Unix command-line packages? DNS? Server administration?

Afterthought: since you already have a Mac Mini Server, why are you trying to install software that came with the box and is all set up and ready to go?

I didn't realize I was getting the software from a Chinese site.

I am not trying to create my own mail server. Rather, I am trying to install pine on my new computer so that I can use it as a mail client. I use Gmail as a web based e-mail service but I have a Pop connection to my old computer with pine on it. I want to have the same system on my new Mac Mini, but pine is not available in Lion. The open source for Alpine does not seem to include all of the files that are in includes. I sent a message like the one below to the maintainer of the source code, but have not received a reply. So I am looking myself for these files.

"I am now confronted by a list of .h files which do not seem to appear in the tar package anywhere, and Ione wondering if you have any suggestions. The files all appear next to one another in os_
mac.h:

#ifndef noErr
#include <Desk.h>
#include <Devices.h>
#include <Errors.h>
#include <Events.h>
#include <Fonts.h>
#include <Memory.h>
#include <Menus.h>
#include <ToolUtils.h>
#include <Windows.h>
#endif"
Brian Schott is offline   Reply With Quote
Old 05-06-2012, 11:55 AM   #10
Brian Schott
Triple-A Player
 
Join Date: Jun 2005
Posts: 91
Quote:
Originally Posted by WillyT
Go to the "real" source.

http://www.washington.edu/imap/

When I go to the "real" source and try to compile in the simple way that they suggest (instead of using Xcode ) I get the following error messages. Do you have any suggestions.

server:alpine-2.00 brian$ ./configure
checking for a BSD-compatible install... /usr/bin/install -c
checking whether build environment is sane... yes
checking for a thread-safe mkdir -p... ./install-sh -c -d
checking for gawk... no
checking for mawk... no
checking for nawk... no
checking for awk... awk
checking whether make sets $(MAKE)... no
checking whether to enable maintainer-specific portions of Makefiles... no
checking build system type... i686-apple-darwin11.3.0
checking host system type... i686-apple-darwin11.3.0
configure: Configuring for alpine 2.00 (i686-apple-darwin11.3.0))
checking for gcc... no
checking for cc... no
checking for cl.exe... no
configure: error: no acceptable C compiler found in $PATH
See `config.log' for more details.
server:alpine-2.00 brian$

Brian in Atlanta
Brian Schott is offline   Reply With Quote
Old 05-06-2012, 12:08 PM   #11
jsalmi
Major Leaguer
 
Join Date: May 2008
Location: Down by the river
Posts: 278
Do you have a C compiler installed?
jsalmi is offline   Reply With Quote
Old 05-06-2012, 12:16 PM   #12
WillyT
Major Leaguer
 
Join Date: Jan 2002
Location: Midwest Not quite Normal
Posts: 416
Well here's the Pine/Alpine software source.

http://www.washington.edu/alpine/


Maybe you should think about using Fink or MacPorts or another open source port for the Mac.

Do you already have Xcode installed?
__________________
I have a Reason3 not to be grumpy and now I have a Rosegarden that works.
Willy
WillyT is offline   Reply With Quote
Old 05-06-2012, 12:30 PM   #13
Brian Schott
Triple-A Player
 
Join Date: Jun 2005
Posts: 91
Quote:
Originally Posted by jsalmi
Do you have a C compiler installed?

Objective-C is hidden in Xcode, isn't it?
Brian Schott is offline   Reply With Quote
Old 05-06-2012, 12:35 PM   #14
Brian Schott
Triple-A Player
 
Join Date: Jun 2005
Posts: 91
Quote:
Originally Posted by WillyT
Well here's the Pine/Alpine software source.

http://www.washington.edu/alpine/


Maybe you should think about using Fink or MacPorts or another open source port for the Mac.

Do you already have Xcode installed?

Yes, and I have corrected a few compile errors, but I don't know how to correct the missing includes.
Brian Schott is offline   Reply With Quote
Old 05-06-2012, 02:39 PM   #15
hayne
Site Admin
 
Join Date: Jan 2002
Location: Montreal
Posts: 32,413
Quote:
Originally Posted by WillyT
Maybe you should think about using Fink or MacPorts or another open source port for the Mac.

Yes - only experts (or those desperate to get the absolute latest version) should be trying to compile open source code on their own.
Fink or MacPorts make it much easier.
__________________
hayne.net/macosx.html
hayne is offline   Reply With Quote
Old 05-06-2012, 04:41 PM   #16
ganbustein
MVP
 
Join Date: Apr 2008
Location: Berkeley CA USA
Posts: 1,168
Quote:
Originally Posted by Brian Schott
"I am now confronted by a list of .h files which do not seem to appear in the tar package anywhere, and Ione wondering if you have any suggestions. The files all appear next to one another in os_
mac.h:

#ifndef noErr
#include <Desk.h>
#include <Devices.h>
#include <Errors.h>
#include <Events.h>
#include <Fonts.h>
#include <Memory.h>
#include <Menus.h>
#include <ToolUtils.h>
#include <Windows.h>
#endif"

Those are all very old Carbon headers. (Actually, they pre-date even Carbon.)

For backward compatibility, they are available through Xcode, which you will have to install. Installing Xcode also installs the compilers you're going to need.

You'll probably also have to link with Carbon (/System/Library/Frameworks/Carbon.framework), which isn't actually something you can link with until you've installed Xcode. (Until you install Xcode, all the frameworks in /System/Library/Frameworks contain only headers. Xcode fleshes them out by adding the object files the linker needs.)
ganbustein is offline   Reply With Quote
Old 05-06-2012, 10:39 PM   #17
Brian Schott
Triple-A Player
 
Join Date: Jun 2005
Posts: 91
Carbon.framework in Xcode4

Quote:
Originally Posted by ganbustein
Those are all very old Carbon headers. (Actually, they pre-date even Carbon.)

For backward compatibility, they are available through Xcode, which you will have to install. Installing Xcode also installs the compilers you're going to need.

You'll probably also have to link with Carbon (/System/Library/Frameworks/Carbon.framework), which isn't actually something you can link with until you've installed Xcode. (Until you install Xcode, all the frameworks in /System/Library/Frameworks contain only headers. Xcode fleshes them out by adding the object files the linker needs.)

I have Xcode installed. I am using Matt Neuburg's iOS4 book. Regarding adding Frameworks he says that I should "... put this line near the start of your implementation file."

#import <Carbon/Carbon.h>

The path for the file containing the includes is as follows. From the path can you tell what is the correct "implementation file" Neuburg means? I have tried putting the import into os_mac.c, but that does not seem to work.

/Users/brian/Desktop/pine/pine/alpine-2.00/imap/src/osdep/mac/os_mac.h

I have also linked the Carbon framework to the target by adding the framework in the Build Phases.

But I am still getting the same Preprocessor Issue(s):
'Desk.h' file not found

Btw, I have not been able to verify that the files I listed are in the Carbon.Framework. How might I do that?

Thanks very much for this information about Carbon.Framework.

Brian in Atlanta
Brian Schott is offline   Reply With Quote
Old 05-07-2012, 11:15 AM   #18
trevor
Moderator
 
Join Date: Jun 2003
Location: Boulder, CO USA
Posts: 19,819
Quote:
Originally Posted by Brian Schott
checking for gcc... no
checking for cc... no

Quote:
Originally Posted by Brian Schott
I have Xcode installed.

These two statements would seem to contradict each other, but maybe you just don't have your PATH set properly.

Can we see the results of:

ls -al /Developer/usr/bin/gcc*
echo $PATH
echo "done"


Trevor
trevor is offline   Reply With Quote
Old 05-07-2012, 11:34 AM   #19
Brian Schott
Triple-A Player
 
Join Date: Jun 2005
Posts: 91
My search for these header files lead me to the help in Xcode. When I entered the header for toolutils I was sent to the coreservices framework docs. However, when I linked up the coreservices framework I still got the same message.So maybe I am linking up in the wrong implementation file ( in the imap section of the source tree). Do I need to do the linking somewhere else?

On the other hand, I am not interested in using the imap service. Is it likely that I can just not include the IMAP part of the source code? Is it likely that I can figure out how to do this in code that is probably so complex?

Brian in Atlanta
Brian Schott is offline   Reply With Quote
Old 05-07-2012, 11:52 AM   #20
Brian Schott
Triple-A Player
 
Join Date: Jun 2005
Posts: 91
Quote:
Originally Posted by trevor
These two statements would seem to contradict each other, but maybe you just don't have your PATH set properly.

Can we see the results of:

ls -al /Developer/usr/bin/gcc*
echo $PATH
echo "done"


Trevor

Trevor,

I think you have discovered a big problem: there is no such directory on my Mini. There was a /Developer directory on my older Mac. Do I need to download it from Apple now, somehow? I have Xcode 4.3.2 (4E2002) already installed. What's wrong?

server:~ brian$ ls -al /Developer/usr/bin/gcc*
ls: /Developer/usr/bin/gcc*: No such file or directory
server:~ brian$ echo $PATH
/usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/X11/bin
server:~ brian$ echo "done"
done
server:~ brian$


Thanks,

Brian in Atlanta
Brian Schott is offline   Reply With Quote
Reply

Tags
tar

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

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

Forum Jump



All times are GMT -5. The time now is 08:50 PM.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.