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.
  • i install drRacket in ubuntu.
  • downloaded the source file from http://pre.racket-lang.org/installers/
  • and typed
  • sudo ./racket-5.2.1-bin-i386-linux-ubuntu-karmic.sh after making it exe file so the file is in the usr/racket/bin/drracket and

    1. i want to run it from command line without going to its directory

    2. i cant make the drracket to run the .rkt files by the "open with"

  • how can i make this two things ???

share|improve this question
add comment

1 Answer 1

up vote 0 down vote accepted
  1. Add /usr/racket/bin to your PATH. If you use bash (which is the default for the terminal in Ubuntu), you would edit your .bashrc file to have the two lines:

    PATH=/usr/racket/bin:$PATH
    export PATH
    

    If your .bashrc already has a PATH setting, then you need to add /usr/racket/bin to it. For example, I already have a PATH setting that looks like: PATH=~/bin:$PATH. I would then change it to: PATH=/usr/racket/bin:~/bin:$PATH. The colons act as separators while $PATH will include whatever your default environment PATH is. Bash will look in the locations in the order listed, so actually I would probably prefer PATH=~/bin:/usr/racket/bin:$PATH so that my personal scripts (which I put in ~/bin) would be picked over anything else.

    If you don't have a .bashrc in your home directory, make one using your favorite text editor with the two lines above.

    The modification won't take effect until you open a new terminal or you type source .bashrc in the current terminal.

  2. Add drRacket to the "open with" submenu of the right-click menu. I think you are probably using the default file manager, Nautilus. I don't use that anymore but my understanding is that people have been having problems with this. See this answer for a solution.

share|improve this answer
add comment

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.