LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
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


Reply
  Search this Thread
Old 04-14-2006, 03:15 PM   #1
andeity
LQ Newbie
 
Registered: May 2005
Posts: 10

Rep: Reputation: 0
/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!
 
Old 04-14-2006, 04:44 PM   #2
Speek
Member
 
Registered: Sep 2003
Location: The Netherlands
Distribution: Slackware
Posts: 124

Rep: Reputation: 41
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.
 
Old 04-14-2006, 09:22 PM   #3
andeity
LQ Newbie
 
Registered: May 2005
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
Old 04-15-2006, 09:15 AM   #4
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
Could be your filesystem or drive is getting prepared to crap itself.
 
Old 04-15-2006, 12:01 PM   #5
andeity
LQ Newbie
 
Registered: May 2005
Posts: 10

Original Poster
Rep: Reputation: 0
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.)
 
Old 04-16-2006, 07:27 PM   #6
cs-cam
Senior Member
 
Registered: May 2004
Location: Australia
Distribution: Gentoo
Posts: 3,545

Rep: Reputation: 57
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.
 
Old 04-16-2006, 08:54 PM   #7
andeity
LQ Newbie
 
Registered: May 2005
Posts: 10

Original Poster
Rep: Reputation: 0
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.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
bash: /usr/bin/localedef: No such file or directory satimis Linux From Scratch 2 07-28-2005 01:53 AM
sh: line 1: /usr/bin/(swapd): No such file or directory QtCoder Linux - General 4 04-11-2005 05:33 PM
/usr/bin/find :No such file or Directory errors while trying to compile kernel. Zero-0-Effect Linux From Scratch 2 05-29-2004 03:46 PM
bin/bash:usr/bin/lpr NO SUCH FILE OR DIRECTORY Adibe_Hamm Linux - Newbie 3 10-14-2003 02:30 AM
linux command error message bash: /usr/bin/find: No such file or directory sundaram123 Linux - General 8 04-02-2002 07:18 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 08:36 AM.

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
Open Source Consulting | Domain Registration