<br><br><div><span class="gmail_quote">On 5/31/07, <b class="gmail_sendername">Milos Prudek</b> <<a href="mailto:prudek@bvx.cz">prudek@bvx.cz</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
I am new to Ubuntu.<br><br>How can I make Ubuntu run a binary file in /usr/local/bin, when such file<br>compiled from sources has a same name as a REMOVED/DELETED file from debian<br>package that used to be in /usr/bin?<br>
<br>- /usr/local/bin is in my PATH<br>- shell files that I create in /usr/local/bin can be run from any directory.<br>- but binary file compiled from sources that REPLACES a deb package file does<br>not run unless full path is specified.
<br><br>Details:<br><br>I want hnb (Hierarchical Notebook). I installed it via apt-get and it<br>installed into /usr/bin but it exhibited some errors, so I removed the hnb<br>deb package. I got hnb sources, compiled and installed them. The hnb binary
<br>is in /usr/local/bin. Under the superuser, hnb runs without specifying the<br>full path. Under non-privileged user, running hnb without specifying the full<br>path results in this error message:<br><br>-bash: /usr/bin/hnb: No such file or directory
<br><br>I have never seen this behaviour under Mandriva. What configuration is<br>responsible for this?<br><br>--<br>Milos Prudek<br><br>--<br>ubuntu-users mailing list<br><a href="mailto:ubuntu-users@lists.ubuntu.com">ubuntu-users@lists.ubuntu.com
</a><br>Modify settings or unsubscribe at: <a href="https://lists.ubuntu.com/mailman/listinfo/ubuntu-users">https://lists.ubuntu.com/mailman/listinfo/ubuntu-users</a><br></blockquote></div><br>Try typing " which hnb" as root and remove it.
<br><br>You could also link /usr/local/bin/hnb to /usr/bin if it does not exist there<br><br>something like " ln -s /usr/local/bin/hnb /usr/bin/hnb " <br><br><br>