Thursday, May 2, 2024
 Popular · Latest · Hot · Upcoming
1
rated 0 times [  1] [ 0]  / answers: 1 / hits: 1726  / 1 Year ago, wed, may 10, 2023, 4:47:02

So I'm trying to install this script



I do




  1. copy the folder in ~/Documents/icambridge-get-sh1t-done-1222b6b

  2. change .bashrc (the one in the user directory, is that the right one?) by
    adding a line PATH=:~/Documents/icambridge-get-sh1t-done-1222b6b”${PATH}”

  3. set the files in icambridge-get-sh1t-done-1222b6b as execs using sudo chmod +x

  4. type sudo ./get-sh1t-done and i get: /usr/bin/env: php: No such file or directory



What is the problem?


More From » scripts

 Answers
7

As Lekensteyn pointed out in the comment above, you should export the PATH in the .bashrc in the user's home directory like so:



PATH="$HOME/Documents/icambridge-get-sh1t-done-1222b6b:$PATH"


Then run source ~/.bashrc or restart your terminal for it to take effect.



Running the command like sudo ./get-sh1t-done will only work if you are in the same directory as the file. Once you've correctly exported the PATH, you can simply run it as sudo get-sh1t-done



The error /usr/bin/env: php: No such file or directory is telling you that you need to install PHP. You can install it with:



sudo apt-get install php5-cli


[#44451] Thursday, May 11, 2023, 1 Year  [reply] [flag answer]
Only authorized users can answer the question. Please sign in first, or register a free account.
ingwhin

Total Points: 332
Total Questions: 112
Total Answers: 115

Location: Burkina Faso
Member since Tue, Apr 26, 2022
2 Years ago
;