LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 06-21-2002, 12:09 AM   #1
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Rep: Reputation: 46
Unhappy 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 )

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 )

Herm... Anyone can help me? I like emacs, vi is really bad for me and pico... hum dunno I prefer emacs.
 
Old 06-21-2002, 01:47 AM   #2
nincompoop
LQ Newbie
 
Registered: May 2002
Location: Eugene
Distribution: suse, redhat
Posts: 16

Rep: Reputation: 0
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?
 
Old 06-21-2002, 01:48 AM   #3
nincompoop
LQ Newbie
 
Registered: May 2002
Location: Eugene
Distribution: suse, redhat
Posts: 16

Rep: Reputation: 0
Oops, sorry, you said you didn't install 'x', but still

What is this "status bar" you are speaking of?
 
Old 06-21-2002, 03:57 PM   #4
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
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 ?
 
Old 06-22-2002, 01:35 AM   #5
nincompoop
LQ Newbie
 
Registered: May 2002
Location: Eugene
Distribution: suse, redhat
Posts: 16

Rep: Reputation: 0
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.
 
Old 06-22-2002, 03:38 PM   #6
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
$&%*?%$
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.
 
Old 06-25-2002, 09:55 PM   #7
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
emacs -nw &
 
Old 06-26-2002, 03:54 PM   #8
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
this doesn't work, same error than before sorry
 
Old 06-27-2002, 09:08 AM   #9
NSKL
Senior Member
 
Registered: Jan 2002
Location: Rome, Italy ; Novi Sad, Srbija; Brisbane, Australia
Distribution: Ubuntu / ITOS2008
Posts: 1,207

Rep: Reputation: 47
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

Last edited by NSKL; 06-27-2002 at 09:09 AM.
 
Old 06-29-2002, 03:08 PM   #10
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

Original Poster
Rep: Reputation: 46
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?
 
Old 07-04-2002, 11:27 AM   #11
doublefailure
Member
 
Registered: Mar 2002
Location: ma
Distribution: slackware
Posts: 747

Rep: Reputation: 30
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
 
Old 07-04-2002, 11:56 AM   #12
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
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
 
Old 07-04-2002, 11:58 AM   #13
pickledbeans
Member
 
Registered: Jun 2002
Location: Bailey, CO
Distribution: Slackware
Posts: 483

Rep: Reputation: 32
should be emacs-20.7-no-x11 if that works rm emacs
and lns -s emacs-20.7-no-x11 emacs
 
Old 07-04-2002, 04:17 PM   #14
Half_Elf
LQ Guru
 
Registered: Sep 2001
Location: Montreal, Canada
Distribution: Slackware; Debian; Gentoo...
Posts: 2,163

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

Last edited by Half_Elf; 07-04-2002 at 04:18 PM.
 
Old 07-04-2002, 10:57 PM   #15
linuxcool
LQ Addict
 
Registered: Jun 2001
Posts: 1,183

Rep: Reputation: 47
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.

Last edited by linuxcool; 07-04-2002 at 10:58 PM.
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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



Similar Threads
Thread Thread Starter Forum Replies Last Post
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 02:05 PM
emacs not responding to .emacs file in Mandriva 2005 LE. Please help LaptopLinux Mandriva 1 06-08-2005 08:36 AM
Emacs. shayan_tabrizi Linux - Software 1 07-23-2004 07:02 AM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM
Emacs HELP! sathyan Programming 6 07-18-2003 02:55 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 09:30 PM.

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