Installation of AWS CLI on MAC OS

0

I am following the below mentioned link to install AWS CLI on MAC os. When I am running the installer command mentioning the package and choices.xml path its giving below mentioned error.

https://docs.aws.amazon.com/cli/latest/userguide/getting-started-install.html

ERROR: installer: choices file '///AWS_CLI_Installation/choices.xml' either could not be found or was malformed.%

Can anyone please help me to solve this issue.

asked 6 months ago387 views
3 Answers
0

Hello.

Is the file path where choices.xml is located correct as stated in the error?

profile picture
EXPERT
answered 6 months ago
  • Yes. I have placed the package file also at same place and there is no error. here is my command to install and the path.

    installer -pkg /Users/avikmanna/AWS_CLI_Installation/AWSCLIV2.pkg
    -target CurrentUserHomeDirectory
    -applyChoiceChangesXML /Users/avikmanna/AWS_CLI_Installation/choices.xml

0

Hi,

Please, have a look at last answer of https://github.com/aws/aws-cli/issues/5208

It may be the solution of your problem of your Mac is configured similarly to description.

Best

Didier

profile pictureAWS
EXPERT
answered 6 months ago
  • This is not exactly same issue to what I have. I have not installed GUI but only trying to install CLI.

0

Avik, have you found a solution yet? I'm having a similar issue.

choices.xml file is located in Users/myhome

package file was installed with command:

curl "https://awscli.amazonaws.com/AWSCLIV2.pkg" -o "AWSCLIV2.pkg" in the same folder.

ran:

installer -pkg AWSCLIV2.pkg \ -target CurrentUserHomeDirectory \ -applyChoiceChangesXML choices.xml in the same folder.

Result:

installer: Package name is AWS Command Line Interface

installer: choices file '/Users/myhome/choices.xml' either could not be found or was malformed.%

choices.xml content:

<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE plist PUBLIC "-//Apple//DTD PLIST 1.0//EN" "http://www.apple.com/DTDs/PropertyList-1.0.dtd">
<plist version="1.0">
  <array>
    <dict>
      <key>choiceAttribute</key>
      <string>customLocation</string>
      <key>attributeSetting</key>
      <string>/Users/myhome</string>
      <key>choiceIdentifier</key>
      <string>default</string>
    </dict>
  </array>
</plist>
answered 3 months ago

You are not logged in. Log in to post an answer.

A good answer clearly answers the question and provides constructive feedback and encourages professional growth in the question asker.

Guidelines for Answering Questions