LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   /usr/local/bin (https://www.linuxquestions.org/questions/debian-26/usr-local-bin-713539/)

mira.mikes 03-22-2009 08:53 AM

/usr/local/bin
 
Hello,

I installed program from source accidentally to /usr/local/bin directory because I forgot edit Makefile.
There is no uninstall possibility so I removed installed files from /usr/local/bin manually sudo rm .
Then I edit Makefile and install program correctly to /usr/bin , but when I am trying to run it now bash complain that program doesn't exist.

$ jconv
bash: /usr/local/bin/jconv: No such file or directory

It's trying to find it in old dir.
How can I fix it?

Thanks for any help.

mira

jdkaye 03-22-2009 10:34 AM

Quote:

Originally Posted by mira.mikes (Post 3483970)
Hello,

I installed program from source accidentally to /usr/local/bin directory because I forgot edit Makefile.
There is no uninstall possibility so I removed installed files from /usr/local/bin manually sudo rm .
Then I edit Makefile and install program correctly to /usr/bin , but when I am trying to run it now bash complain that program doesn't exist.

$ jconv
bash: /usr/local/bin/jconv: No such file or directory

It's trying to find it in old dir.
How can I fix it?

Thanks for any help.

mira

If you are talking about a program that you compiled from source then /usr/local/bin is its normal location. /usr/bin is used for binary executables supplied by debian packages. The makefile was correct unless you have some very special reason for not wanting your executables that you compiled yourself in that location.
cheers,
jdk

Robhogg 03-22-2009 11:55 AM

The fact that it is looking in that specific location, rather than in all locations specified in your $PATH, suggests to me that this location may be specified by the Debian alternatives system. So if you don't want to move the program back to /usr/local/bin, you could try using update-alternatives to change the location.

mira.mikes 03-22-2009 06:16 PM

Thank you for replies ... that was helpful

regards

mira


All times are GMT -5. The time now is 07:31 AM.