Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
 |
04-14-2006, 04:15 PM
|
#1
|
LQ Newbie
Registered: May 2005
Posts: 10
Rep:
|
/usr/bin/emacs: No such file or directory...yet it exists
Hey guys, I'm running Slamd64 and I used slapt-get to install Emacs.
I can do this:
bash-3.00# ls /usr/bin/em* -l
lrwxrwxrwx 1 root root 19 2006-04-14 15:07 /usr/bin/emacs -> emacs-21.4-with-x11
-rwxr-xr-t 1 root bin 4393492 2005-07-30 13:05 /usr/bin/emacs-21.4-with-x11
-rwxr-xr-x 1 root bin 7244 2005-07-30 13:05 /usr/bin/emacsclient
Yet when I type
bash-3.00# emacs
bash: /usr/bin/emacs: No such file or directory
wtf???
Any help would be appreciated!
|
|
|
04-14-2006, 05:44 PM
|
#2
|
Member
Registered: Sep 2003
Location: The Netherlands
Distribution: Slackware
Posts: 124
Rep:
|
Try to start emacs with the full path: /usr/bin/emacs
If that works bash will probably know next time where to find emacs. I think you can als do 'hash -r' to force bash making a new hash table.
|
|
|
04-14-2006, 10:22 PM
|
#3
|
LQ Newbie
Registered: May 2005
Posts: 10
Original Poster
Rep:
|
ahh okay, yeah, I already tried /usr/bin/emacs. But...if the absolute path wouldn't work, would hash -r work either? It seems like it's illogical that it wouldn't be designed to work with an absolute path to the file. I'm home for the weekend now, we'll see when I get back.
|
|
|
04-15-2006, 10:15 AM
|
#4
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
Could be your filesystem or drive is getting prepared to crap itself.
|
|
|
04-15-2006, 01:01 PM
|
#5
|
LQ Newbie
Registered: May 2005
Posts: 10
Original Poster
Rep:
|
Yeah, could be. When I tried Ubuntu AMD64, it couldn't writing to the drives properly and quickly reported filesystem errors (I'm using SATA drives, by the way.)
|
|
|
04-16-2006, 08:27 PM
|
#6
|
Senior Member
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545
Rep:
|
I'd start backing up, then once you have any important data off the disk then start playing around with e2fsck to see if you cna fix the filesystem errors if that's the root cause.
|
|
|
04-16-2006, 09:54 PM
|
#7
|
LQ Newbie
Registered: May 2005
Posts: 10
Original Poster
Rep:
|
still a mystery
Well, fsck said that the partition was clean, so I haven't got a clue what's the deal. I tried hash -r, that didn't seem to do anything either.
|
|
|
All times are GMT -5. The time now is 06:41 AM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|