Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

So I'm trying to install this script

I do

  1. copy the folder in ~/Documents/icambridge-get-shit-done-1222b6b
  2. change .bashrc (the one in the user directory, is that the right one?) by adding a line PATH=:~/Documents/icambridge-get-shit-done-1222b6b”${PATH}”
  3. set the files in icambridge-get-shit-done-1222b6b as execs using sudo chmod +x
  4. type sudo ./get-shit-done and i get: /usr/bin/env: php: No such file or directory

What is the problem?

share|improve this question
    
Obviously it does not find php on your computer. Is it installed? –  dAnjou Jun 25 '11 at 13:33
2  
You're using the wrong quote characters, the line in .bashrc should be PATH=~/Documents/icambridge-get-shit-done-1222b6b:"$PATH" –  Lekensteyn Jun 25 '11 at 14:37
    
+1 for the name of folder "icambridge-get-shit-done-1222b6b" –  H_7 Feb 26 '12 at 22:25

2 Answers 2

up vote 1 down vote accepted

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-shit-done-1222b6b:$PATH"

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

Running the command like sudo ./get-shit-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-shit-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

share|improve this answer

It sounds like it uses PHP but you don't have it installed. You can install it by typing:

sudo apt-get install php

at the command prompt. Then try again to run the script.

Also, there seems to be a python version, which is more likely to be already installed on your system. You could try to use that version instead.

share|improve this answer
    
    
that yields: "Reading package lists... Done Building dependency tree Reading state information... Done E: Unable to locate package php" –  user2413 Jun 26 '11 at 6:57

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.