LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 03-22-2009, 08:53 AM   #1
mira.mikes
LQ Newbie
 
Registered: Dec 2008
Posts: 21

Rep: Reputation: 0
/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
 
Old 03-22-2009, 10:34 AM   #2
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
Quote:
Originally Posted by mira.mikes View Post
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
 
Old 03-22-2009, 11:55 AM   #3
Robhogg
Member
 
Registered: Sep 2004
Location: Old York, North Yorks.
Distribution: Debian 7 (mainly)
Posts: 653

Rep: Reputation: 97
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.
 
Old 03-22-2009, 06:16 PM   #4
mira.mikes
LQ Newbie
 
Registered: Dec 2008
Posts: 21

Original Poster
Rep: Reputation: 0
Thank you for replies ... that was helpful

regards

mira
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Subversion : /usr/local/bin/svnserve.bin lord-fu *BSD 2 12-17-2006 10:46 AM
making files available in /usr/local/bin and /usr/sbin reakinator Linux - Newbie 1 10-14-2006 05:09 PM
Error when starting up snort: bash:!/bin/sh/usr/local/bin/snort :Eent not found cynthia_thomas Linux - Software 1 11-11-2005 02:59 PM
Installing .bin-files, leave the file in /usr/local/bin/ ? lagu2653 Linux - Software 1 11-08-2005 08:30 PM
path in services wrong for clamav updated frm 0.75 to 0.80 usr/bin vs usr/local/bin Emmanuel_uk Linux - Newbie 3 04-22-2005 01:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:30 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration