Emacs
my computer (well the one where I got this problem, I have more than one computer...) is an old p120 so I haven't installed X. Now I want to use emacs (I really like this little text editor) but seems this prog need X library, no matter if I try to run it in text mode or not.
If I try to run the "emacs" command I get this error: "emacs: error while loading shared library: cannot open shared object file: can not load shared object file: No such file or directory" (a very unclear error but I think it talk about X library... read the next part :rolleyes: ) Now I found there are some others emacs command and this one is just a soft link the "emacs-20.7-with-x11" But when I try to run "emacs-20.7-no-x11" the progz seems to load but in the status bar I get this funny error: "Opening input file: no such file or directory, /usr/lib/X11/locale/locale.alias" (of course I don't have this, stupid emacs,I ask you to start yourself without X :mad: ) Herm... Anyone can help me? I like emacs, vi is really bad for me and pico... hum dunno I prefer emacs. |
2 totally different error messages from "no X11" and "with X11".
the first is claiming it doesn't have a shared library that it needs (or two, or more). Which library(ies) it needs, you neglected to include in your question. I would want to know what shared library it complains about, so you could tell what shared library you needed, provided you wanted to launch it in X (even from a terminal). as for the second error with "no X11", I'm not sure what the "status bar" you speak of is. Are you in X when you are trying to launch it? |
Oops, sorry, you said you didn't install 'x', but still
What is this "status bar" you are speaking of? |
I don't have X so I can't be in X.... The status bar... well you know, when you start Emacs in console, in the bottom of emacs windows, you have a white "bar" saying few information (something like "---:---- F1 (Fundamental)----L1--All-------------
and bellow this bar, you have a black "bar" showing you information about the files, about emacs etc (example, when you open emacs, it is where you see "For information about Gnu Project please type C-h C-p" ) The "status" bar i'm talking about is this bar. But Anyways this is not important, I already told you the error msg I get. The real question is "can I use Emacs without having X install" and if yes, how ? |
OK, so you don't have X installed. Big Deal.
Yes, you can use emacs without X installed. this is what you told me was your "error" (WITHOUT X INSTALLED): "emacs: error while loading shared library: cannot open shared object file: can not load shared object file: No such file or directory" (a very unclear error but I think it talk about X library... read the next part) the next part doesn't matter. You haven't given the full error message. |
$&%*?%$
THIS is the ONLY and the FULL error msg emacs give me!!!! I will not invent a new one just for you, I don't get anything but THIS. If you readed the next part of the first msg, you saw I found that the command "emacs" is a soft link to "emacs-20.7-with-x" so I tried to start the OTHER emacs command "emacs-20.7-no-x" but I got ANOTHER error msg, this one: "Opening input file: no such file or directory, /usr/lib/X11/locale/ locale.alias" If you can't help me, it's ok but tell me and stop thinking I'm an idiot! And read the first msg. |
emacs -nw &
|
this doesn't work, same error than before sorry :(
|
OK, locate where linux Binary is, in this example i will assume it is in /bin/emacs
cd to /bin and type ./emacs and it should spit out that error about missing shared libraries. Now to find the shared libraries we wiil use a neat trick. While still in /bin (or whatever Emacs is onstalled to) type: ldd emacs Code:
Hope that helps -NSKL |
Ok so I can see with this command that "emacs" use a number of X library I don't have X installed, so I cannot use it.
But If I try to same command with "emacs-20.7-no-x" I can see I have all library... But when I try to start this one, I get this error msg : "Opening input file: no such file or directory, /usr/lib/X11/locale/locale.alias" What is that file? Can I tell emacs to does not search for it? I have other box running with X but I don't have this files.... Anyone have it? :( |
i tried to post the file.. but it's too long 40000lines
if u let me know your email, i'll sent to u this is first part of the file # $TOG: locale.alias /main/33 1998/05/26 13:41:50 kaleb $ # # This file contains alias name of locale. # Each alias name is described within one line. # The first word is the alias name (simplified locale name) # the second word is full locale name. # # $XFree86: xc/nls/locale.alias,v 1.34 2000/12/06 22:00:42 dawes Exp $ # POSIX C POSIX-UTF2 C C_C.C C C.en C C.ISO-8859-1 en_US.ISO8859-1 Cextend en_US.ISO8859-1 Cextend.en en_US.ISO8859-1 English_United-States.437 C af af_ZA.ISO8859-1 af_ZA af_ZA.ISO8859-1 af_ZA.ISO-8859-1 af_ZA.ISO8859-1 ar ar_AA.ISO8859-6 ar_AA ar_AA.ISO8859-6 ar_AA.ISO-8859-6 ar_AA.ISO8859-6 ar_SA ar_SA.ISO8859-6 ar_SA.ISO-8859-6 ar_SA.ISO8859-6 ar_EG ar_EG.ISO8859-6 ar_EG.ISO-8859-6 ar_EG.ISO8859-6 #====== ar_AE ISO-8859-6 ar_AE.ISO-8859-6 ISO-8859-6 ar_AE.UTF-8 UTF-8 ar_BH ISO-8859-6 ar_BH.ISO-8859-6 ISO-8859-6 ar_BH.UTF-8 UTF-8 ar_DZ ISO-8859-6 ar_DZ.ISO-8859-6 ISO-8859-6 ar_DZ.UTF-8 UTF-8 ar_EG.CP1256 CP1256 ar_IQ ISO-8859-6 ar_IQ.ISO-8859-6 ISO-8859-6 |
ls -l eamcs (what ever the path is)
My guess is it is an synlink to : emacs-20.7-with-x11 try emacs-20.7-with-x if that works then rm emacs ln -s emacs-20.7-with-x emacs |
should be emacs-20.7-no-x11 if that works rm emacs
and lns -s emacs-20.7-no-x11 emacs |
emacs-20.7-no-x11 doesn't work, It asks me this "locale.alias" file
DoubleFailure, how large is that file exactly? I don't have a pop3 mail, so most of my mail only has 1MB space limit. try the hotmail mail I give in my profile if it's enought. |
I did a search on Google and it's a known bug. According to what I saw, it should have been fixed. Maybe you have an old version.
This person here found a way around it. He created a symbolic link to it. This might work for you if you can't get new version without the bug. |
All times are GMT -5. The time now is 03:45 PM. |