chdir aviso ao abrir o arquivo .tar no OS X

1

Eu preciso desarquivar um arquivo para a pasta /Developer .

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/iPhoneOS.platform/Developer/usr/share/qt­‐everywhere­‐ios­‐4.8.0

Quando executo a operação, recebo as informações:

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

Alguma ideia do que está errado?

    
por user123_456 15.04.2012 / 23:14

2 respostas

0

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!

Se tar não tiver permissões para gravar lá, use o mesmo comando, mas prefixado com sudo .

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

Isso executará o comando com root permissions.

    
por 16.04.2012 / 13:24
0

É um arquivo gzipped tar (veja a extensão .gz ), então você precisa adicionar z .

tar -xzf qt-everywhere-ios-4.8.0-arm7-nossl.tar.gz -C /Developer
    
por 15.04.2012 / 23:22

Tags