chdir warning when opening .tar file on OS X

I need to unarchive a file to the /Developer folder.

Install Qt for iOS SDK

The Qt for iOS SDK has been configured to be installed in the default Xcode installation location /Developer. It is not possible to install the SDK into another location without first rebuilding it, as the install location is contained within the qmake executable, and that is built as part of Qt.

To install the Qt for iOS SDK, open ‘Terminal’ and type the following from the command­‐line:

tar –xf qt­‐everywhere-­ios­‐4.8.0­‐xxx.tar.gz –C /Developer

(where xxx is an identifier which can be used to determine the build of the iOS SDK eg. arm7-­‐nossl) This will install the Qt for iOS SDK into the following path:

/Developer/Platforms/

When I perform the operation I get the information:

Lions-Mac:Documents User$ tar -xf qt-everywhere-ios-4.8.0-arm7-nossl.tar.gz -C /Developer
tar: could not chdir to '/Developer'

Any idea what is wrong?

7

2 Answers

Note: In Xcode 4.3 or higher the /Developer folder is not used. You do not need to, or actually should not extract anything there!

If tar is missing permissions to write there, use the same command, but prefixed with sudo.

sudo tar -xf qt-everywhere-ios-4.8.0-arm7-nossl.tar.gz -C /Developer

This will perform the command with root permissions.

1

It's a gzipped tar file (see the .gz extension), so you need to add z.

tar -xzf qt-everywhere-ios-4.8.0-arm7-nossl.tar.gz -C /Developer
5

Your Answer

Sign up or log in

Sign up using Google Sign up using Facebook Sign up using Email and Password

Post as a guest

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

You Might Also Like