LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Emacs (https://www.linuxquestions.org/questions/linux-software-2/emacs-23951/)

Half_Elf 06-21-2002 12:09 AM

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.

nincompoop 06-21-2002 01:47 AM

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?

nincompoop 06-21-2002 01:48 AM

Oops, sorry, you said you didn't install 'x', but still

What is this "status bar" you are speaking of?

Half_Elf 06-21-2002 03:57 PM

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 ?

nincompoop 06-22-2002 01:35 AM

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.

Half_Elf 06-22-2002 03:38 PM

$&%*?%$
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.

doublefailure 06-25-2002 09:55 PM

emacs -nw &

Half_Elf 06-26-2002 03:54 PM

this doesn't work, same error than before sorry :(

NSKL 06-27-2002 09:08 AM

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:


ldd emacs

 libXaw.so.6 => /usr/X11R6/lib/libXaw.so.6 (0x40017000)

        libXmu.so.6 => /usr/X11R6/lib/libXmu.so.6 (0x40051000)

        libXt.so.6 => /usr/X11R6/lib/libXt.so.6 (0x40066000)

        libSM.so.6 => /usr/X11R6/lib/libSM.so.6 (0x400b0000)

        libICE.so.6 => /usr/X11R6/lib/libICE.so.6 (0x400b9000)

        libXext.so.6 => /usr/X11R6/lib/libXext.so.6 (0x400cf000)

        libX11.so.6 => /usr/X11R6/lib/libX11.so.6 (0x400de000)

        libncurses.so.5 => /lib/libncurses.so.5 (0x401c6000)

        libm.so.6 => /lib/libm.so.6 (0x40206000)

        libc.so.6 => /lib/libc.so.6 (0x40228000)

        /lib/ld-linux.so.2 => /lib/ld-linux.so.2 (0x40000000)

As you can see it shows all the libraries emacs uses, and, since you are missing somme of this it will tell you witch ones, so then go and get these missing libraries, or in the case you have them but emacs can not find them, make sure they are in ld.so.conf and run ldconfig.

Hope that helps

-NSKL

Half_Elf 06-29-2002 03:08 PM

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? :(

doublefailure 07-04-2002 11:27 AM

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

pickledbeans 07-04-2002 11:56 AM

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

pickledbeans 07-04-2002 11:58 AM

should be emacs-20.7-no-x11 if that works rm emacs
and lns -s emacs-20.7-no-x11 emacs

Half_Elf 07-04-2002 04:17 PM

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.

linuxcool 07-04-2002 10:57 PM

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.