3

I have installed Xcode on my MacBook.

I checked that I have the XCode command line tool also installed as shown below:

enter image description here

I need to use Xcode command to install some dependencies, so I opened my terminal and run the command:

enter image description here

But I get Xcode: Command not found error. Why? How to get rid of this issue?

20
  • What are you trying to accomplish exactly? Xcode isn't a command in itsel. Are you trying to install openssl, install zlib ? Commented Aug 10, 2020 at 8:28
  • 1
    Yes, I understand Xcode is for iOS development. But Xcode also have command line tool . I need to install openssl zlib readline through Xcode command that is a requirement for another tool I am using. github.com/aws/aws-elastic-beanstalk-cli-setup#11-prerequisites Commented Aug 10, 2020 at 8:30
  • " need to install openssl zlib readline through Xcode" That's unclear here. Where did you find this doc? Commented Aug 10, 2020 at 8:31
  • Please see my link in my command. It asks me to use Xcode command to install those tools. Commented Aug 10, 2020 at 8:31
  • 2
    In fact, you need to install openssl, zlib, readline on the machine. That command is misleading. Check each one how to install them with Mac. HomeBrew (brew) might be of help. Which make MORE SENSE. See github.com/aws/aws-elastic-beanstalk-cli-setup/pull/89 github.com/aws/aws-elastic-beanstalk-cli-setup/pull/89/commits/… (author chose brew solution). Commented Aug 10, 2020 at 8:35

1 Answer 1

3

Okk, if you're trying to install the AWS ELastic beanstalk CLI (you're coming from EB CLI Installer on Github here)

then the line Xcode openssl zlib readline refers to all the packages that are prerequisites to the installation and not a command that you should run.

In short use:

brew install openssl
brew install zlib
brew install readline

And make sure Xcode is installed through which g++ if you get /usr/bin/g++ you're all set and you can proceed to the following steps

Sign up to request clarification or add additional context in comments.

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.