# Add jq as a dependency for Linux script for Arch Linux \(\#13569\) · gitcafe/zed

[View on GitCafe](https://git.cafe/gitcafe/zed/commit/45d4de75b3ba57976fa551cc93edb015e96dbe73)

Repository: [gitcafe/zed](https://git.cafe/gitcafe/zed)

Visibility: public

Requested revision: 45d4de75b3ba57976fa551cc93edb015e96dbe73

Requested commit: 45d4de75b3ba57976fa551cc93edb015e96dbe73

Commit: 45d4de75b3ba57976fa551cc93edb015e96dbe73

Tree: 9d78cc332dac3d8b7424fce5d12338085f1f2d82

Author: Aditya Kumar

Committer: GitHub

## Message

````
Add jq as a dependency for Linux script for Arch Linux (#13569)

## Error
```sh
./script/install-linux 

+ [[ 0 -gt 0 ]]
+ export ZED_CHANNEL=dev
+ ZED_CHANNEL=dev
++ pwd
+ export 'ZED_UPDATE_EXPLANATION=You need to fetch and rebuild zed in /home/adityakrcodes/repos/zed'
+ ZED_UPDATE_EXPLANATION='You need to fetch and rebuild zed in /home/adityakrcodes/repos/zed'
+ script/bundle-linux
+ getopts h flag
+ export ZED_BUNDLE=true
+ ZED_BUNDLE=true
+ channel=dev
++ script/get-crate-version zed
script/get-crate-version: line 16: jq: command not found <-- ERROR
+ version=
```
The script fails to install zed on Arch Linux due to a missing
dependency, `jq`.
## My machine info
OS: Arch Linux
Kernel: 6.6.34-1-lts 
WM: dwm 
Terminal: kitty
CPU: Ryzen 5 5500U with Radeon Graphics
GPU: AMD ATI 04:00.0 Lucienne 
Memory: 16 GB

## Error Description
The error occurs when running the script in `script/install-linux`,
which is unable to find the `jq` package, which is not installed by
default on the machine.
## Solution
To resolve this issue, you can install `jq` independently by running
`sudo pacman -S jq`. Alternatively, I have updated script `script/linux`
to include `jq` as a dependency ([link to the
commit](https://github.com/adityakrcodes/zed/commit/2349ad111f48bf8c571e3710bdb317ee151fabdb)),
ensuring it is installed automatically when running the initial script
for system libraries.

Release Notes:

- N/A
````

## Parents

- [20c1f8245ae662a48932764e44d3295aa3244d02](https://git.cafe/gitcafe/zed/commit/20c1f8245ae662a48932764e44d3295aa3244d02?format=markdown)

[Source at this commit](https://git.cafe/gitcafe/zed/tree/45d4de75b3ba57976fa551cc93edb015e96dbe73?format=markdown)
