<p>I am trying to use AutoDock Vina to do docking however I am getting this error. I would really appreciate any help as I have not been able to resolve this error despite trying numerous times.</p>
<p><a href="https://i.sstatic.net/c5yR4.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/c5yR4.png" alt="enter image description here" /></a></p>
<p><a href="https://i.sstatic.net/4uwpM.png" rel="nofollow noreferrer"><img src="https://i.sstatic.net/4uwpM.png" alt="enter image description here" /></a></p>

CC BY-SA 4.0
2020-08-09T12:24:56.270Z
The error is a bash error from your wrapper script. Which is failing to find `vina`. What is the detail of line 7 and does it match where you'd expect to find `vina` (i.e. where you installed it)?
Matteo Ferla
CC BY-SA 4.0
2020-08-09T12:27:21.350Z
Also, I am not a Windows person, but I believe cygwin is highly depracated in favour of the windows 10 dev mode ubuntu kernel. You might want to check for newer options.
Matteo Ferla
CC BY-SA 4.0
2020-08-09T14:04:08.640Z
@+matteo ferla Here is the wrapper script. My co-worker was able to run the script but I performed the exact same steps as him but I couldn't run the script. Do you think AutoDock Vina should be installed or something. The issue seems to be like you stated the script is not able to detect vina. 

Wrapper Script:
"#! /bin/bash

for f in ligand_*.pdbqt; do
    b=`basename $f .pdbqt`
    echo Processing ligand $b
    mkdir -p $b
    vina --config conf.txt --ligand $f --out ${b}/out.pdbqt --log ${b}/log.txt
done"
ibio_rep1
CC BY-SA 4.0
2020-08-09T16:21:20.890Z
So you can either use the alias command to tell terminal what `vina` means, or you can add the vina binary to `/usr/bin/`.
Matteo Ferla
CC BY-SA 4.0
2020-08-10T10:31:09.903Z
@MatteoFerla will give that a try and get back to you. thank you.
ibio_rep1
CC BY-SA 4.0
2020-08-10T13:44:21.723Z
@MatteoFerla i added the vina application files to the "bin" folder but I am getting the same error. Which file in the screenshot below is the vina binary you are referring to. Any additional recommendations on what might be causing the error. 
Image: https://ibb.co/ZzMV2Vp
ibio_rep1
CC BY-SA 4.0
2020-08-10T15:34:53.037Z
You can edit your original post to add extra data btw —including SE image upload. If you run the command `./vina` in the bin folder it should work and it's just cygwin oddity —which best left alone. 
If so, modify your script to call `/usr/bin/vina` as opposed to simply `vina`.
Matteo Ferla
CC BY-SA 4.0
2020-08-11T15:06:29.547Z
@MatteoFerla
I added the vina files and wrapper script to the usr/bin folder and retried on Linux but I am getting the same error. I added the screenshots to my original post above. Any suggestions.
ibio_rep1
CC BY-SA 4.0
2020-08-12T09:48:46.617Z
`.exe`? That is a **Windows** binary, whereas you are trying in **Linux**, please download the appropriate one or change your bash script to a batch script and run in normal DOS terminal —for 6 ligands you don't need a for-loop though. However, however... may I suggest before embarking on a computational biochemistry task that you read around or watch a few videos about using the terminal?
Matteo Ferla
CC BY-SA 4.0
2020-08-12T11:30:27.413Z
@Matteo Ferla thank you, which videos would you suggest going through before embarking on the task.
ibio_rep1
<protein-structure><bash><docking><computational-biochemistry>
Issues with AutoDock Vina
# Issues with AutoDock Vina

(Asked by: username_0 on 2020-08-09)

I am trying to use AutoDock Vina to do docking however I am getting this error. I would really appreciate any help as I have not been able to resolve this error despite trying numerous times.

[![enter image description here](https://i.sstatic.net/c5yR4.png)](https://i.sstatic.net/c5yR4.png)

[![enter image description here](https://i.sstatic.net/4uwpM.png)](https://i.sstatic.net/4uwpM.png)

**Tags:** protein-structure, bash, docking, computational-biochemistry
> **Comments:**
> **username_1**: The error is a bash error from your wrapper script. Which is failing to find `vina`. What is the detail of line 7 and does it match where you'd expect to find `vina` (i.e. where you installed it)?  
> **username_1**: Also, I am not a Windows person, but I believe cygwin is highly depracated in favour of the windows 10 dev mode ubuntu kernel. You might want to check for newer options.  
> **username_0**: @+matteo ferla Here is the wrapper script. My co-worker was able to run the script but I performed the exact same steps as him but I couldn't run the script. Do you think AutoDock Vina should be installed or something. The issue seems to be like you stated the script is not able to detect vina.   Wrapper Script: "#! /bin/bash  for f in ligand_*.pdbqt; do     b=`basename $f .pdbqt`     echo Processing ligand $b     mkdir -p $b     vina --config conf.txt --ligand $f --out ${b}/out.pdbqt --log ${b}/log.txt done"  
> **username_1**: So you can either use the alias command to tell terminal what `vina` means, or you can add the vina binary to `/usr/bin/`.  
> **username_0**: @MatteoFerla will give that a try and get back to you. thank you.  
> **username_0**: @MatteoFerla i added the vina application files to the "bin" folder but I am getting the same error. Which file in the screenshot below is the vina binary you are referring to. Any additional recommendations on what might be causing the error.  Image: https://ibb.co/ZzMV2Vp  
> **username_1**: You can edit your original post to add extra data btw —including SE image upload. If you run the command `./vina` in the bin folder it should work and it's just cygwin oddity —which best left alone.  If so, modify your script to call `/usr/bin/vina` as opposed to simply `vina`.  
> **username_0**: @MatteoFerla I added the vina files and wrapper script to the usr/bin folder and retried on Linux but I am getting the same error. I added the screenshots to my original post above. Any suggestions.  
> **username_1**: `.exe`? That is a **Windows** binary, whereas you are trying in **Linux**, please download the appropriate one or change your bash script to a batch script and run in normal DOS terminal —for 6 ligands you don't need a for-loop though. However, however... may I suggest before embarking on a computational biochemistry task that you read around or watch a few videos about using the terminal?  
> **username_0**: @Matteo Ferla thank you, which videos would you suggest going through before embarking on the task.  

---

## 0 answers

