0

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 08 '18 at 09:11
  • /home/amir/bin:/home/amir/bin:/usr/sbin:/sbin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games –  Mar 08 '18 at 09: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 08 '18 at 09: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 08 '18 at 09:20
  • I would just create a symbolic link. – Kiwy Mar 08 '18 at 09:43
  • If the question weren't misattributing this to the "terminal", which has nothing whatever to do with it, perhaps there would be answers. Perhaps people would remember that this is a shell feature. https://unix.stackexchange.com/questions/115992/ https://unix.stackexchange.com/questions/47363/ https://unix.stackexchange.com/questions/150922/ – JdeBP Mar 08 '18 at 21:07

0 Answers0