Click to See Complete Forum and Search --> : How do I know if Emacs is installed on my system
jdvilla
05-07-2003, 08:28 PM
I am maintaining a server which is running Red Hat 7.2 (or something like that).
Well, I have used vi to edit my files but someone has just asked about emacs.
I did a locate for emacs and this is what I found:
/usr/share/emacs
/usr/share/emacs/site-lisp
/usr/share/emacs/site-lisp/po-mode.el
/usr/share/emacs/site-lisp/po-mode.elc
/usr/share/emacs/site-lisp/site-start.d
/usr/share/emacs/site-lisp/site-start.d/po-mode-init.el
I then did a :
rpm -q emacs
the it retuned nothing.
My question is:
Is emacs installed on my server (using the above info) and if so how do I start it.
we tried emacs filename but we just get
bash: emacs: command not found
?????
I'm ready to install the rpm if anything.
Exodus2001
05-07-2003, 09:02 PM
If there is not a executable file called emacs in usr/bin it is not installed correctly or it's not installed at all. The RPM or tar.gz file should have put it there if it was.
jdvilla
05-07-2003, 09:28 PM
Since I don't know anything about emacs, please excuse my ignorance...
I tried installing the rpm but received this...
libICE.so.6 is needed by emacs-21.3-3
libSM.so.6 is needed by emacs-21.3-3
libX11.so.6 is needed by emacs-21.3-3
libXaw3d.so.7 is needed by emacs-21.3-3
libXext.so.6 is needed by emacs-21.3-3
libXmu.so.6 is needed by emacs-21.3-3
libXpm.so.4 is needed by emacs-21.3-3
libXt.so.6 is needed by emacs-21.3-3
libc.so.6(GLIBC_2.3) is needed by emacs-21.3-3
libpng12.so.0 is needed by emacs-21.3-3
libtiff.so.3 is needed by emacs-21.3-3
libungif.so.4 is needed by emacs-21.3-3
perl(strict) is needed by emacs-21.3-3
perl(vars) is needed by emacs-21.3-3
gettext < 0.10.40 conflicts with emacs-21.3-3
Looking at some of these, they remind of X. Is emacs only ran using an X system?
This is the root of my question:
A friend of mine who now has access to a server I run wishes to use emacs (rather than vi) to edit some files. This server does not have X installed on it. and he uses Mac OS X. Can emacs be run like vi? For example, from a terminal?
Exodus2001
05-07-2003, 09:48 PM
It looks like your trying to install the latest emacs on Red Hat 7.2. The problem is the Libs in that version are too old to run the current version of emacs.
It will run in the terminal without the x-server running. I always use emacs to fix problems if X won't start.
Try this one and see what happens:
http://altruistic.lbl.gov/repositories/redhat-7.2-i386/RPMS/emacs-20.7-41.i386.rpm
Atealtha
05-07-2003, 10:11 PM
dont use locate, use whereis
whereis emacs
it shows the bin file, and man pages. they dont list every file listed under the emacs directory, and all those probs with locate.
jdvilla
05-07-2003, 10:28 PM
Interesting...
I installed the rpm and do a locate, and it still will not show me all the locations for it. But whereis will.
ok, this is my next dilemna...
I type emac<tab>
and I get
emacsclient?
What is this...
Just for giggles I tried
emacsclient test.php
and get
emacsclient: can't find socket; have you started the server?
No I haven't started the server, how would I do this?
**Don't worry I just help getting it started, I won't continue posting questions on how to use it...
Atealtha
05-07-2003, 10:37 PM
Originally posted by jdvilla
Interesting...
I installed the rpm and do a locate, and it still will not show me all the locations for it. But whereis will.
type
updatedb
in terminal first, then do locate.
jdvilla
05-07-2003, 10:57 PM
Ok, thanks... that worked....
sarah31
05-08-2003, 01:09 AM
the "which" command also works well to locate binaries
(~/Webdev) %which emacs
/usr/bin/emacs
bskahan
05-08-2003, 08:41 PM
if your box is running really sluggish and complainging alot, you prbably have a bad case of emacs
/me ducks