Question: I tried to install Logentries (Mac Agent) as instructed by [the website](https://logentries.com/doc/mac-agent/) itself. I followed the steps as instructed.

```
 curl -O https://raw.githubusercontent.com/logentries/le/master/install/mac/install.sh

```

I downloaded the install.sh script and ran `sudo ./install.sh`. But that didn't work so I tried `sudo sh install.sh`.

[![logentries installing mac agent problem](https://i.stack.imgur.com/tZDKa.png)](https://i.stack.imgur.com/tZDKa.png)

When I do `sudo le` then I get same error message as marked in pic above.
I googled but didn't find the solution.

Thank you in advance.

Here is composer.json content

[![enter image description here](https://i.stack.imgur.com/3deRT.png)](https://i.stack.imgur.com/3deRT.png)
[![enter image description here](https://i.stack.imgur.com/tqcIC.png)](https://i.stack.imgur.com/tqcIC.png)

Answer: 
@user5384112 is correct, the error is being caused by a missing dependancy.

I have a PR to fix this for the Mac installer which should go live shortly.
You can install directly with by downloading with curl or download and install it. You should first look for missing dependencies before installing anything. You should have looked carefully in the documentation and error messages. The error clearly suggests you should have formats. for that do following

```
sudo pip install formats

```