I installed the Smalltalk language from source. The binary was placed in /usr/local/bin/. For some reasons i uninstalled it and installed the version existing in the synaptic package manager which places the binary in /usr/bin/. Now running gst (GNU Smalltalk) in the terminal will search for the binary in /usr/local/bin/, as this path has been set during the ./configure of my source-installation. How can i instruct it to look into the correct path (/usr/bin)?

  • What is the output of echo $PATH?
    – Sparhawk
    Mar 8 '18 at 9:11
  • /home/amir/bin:/home/amir/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
    – user106035
    Mar 8 '18 at 9:12
  • Are you using bash? If so, what is the output of grep 'PATH=' ~/.bashrc? (Please tag me with @Sparhawk so I am notified of any replies.) Also, does the binary in /usr/local/bin/ still exist?
    – Sparhawk
    Mar 8 '18 at 9:17
  • I would also look for a softlink (ls -s) using which smalltalk (or whatever it is you use to run the program) that points to your old location /usr/local/bin
    – guiverc
    Mar 8 '18 at 9:20
  • I would just create a symbolic link.
    – Kiwy
    Mar 8 '18 at 9:43

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy