LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 04-18-2008, 10:25 PM   #1
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Rep: Reputation: 15
emacs-nox in 12.1-RC1?


I just upgraded an old box to -current with slackpkg.
In 12.0, the emacs series is a bunch of packages.

I don't hook a screen up to this box, I just use it as a home server and usually just manage it remotely via ssh command line. So I just installed emacs-nox instead of emacs. However, in current (12.1-rc1) it looks like there is only one emacs package.

When I tried to start up emacs after upgrading, I got:
Code:
root@erwin:~# emacs
emacs: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
root@erwin:~# emacs -nw
emacs: error while loading shared libraries: libgtk-x11-2.0.so.0: cannot open shared object file: No such file or directory
root@erwin:~#
Well, yes, of course I don't have libgtk, I don't have X installed. Why can't I get emacs running without X?
 
Old 04-19-2008, 04:32 AM   #2
cmk77
Member
 
Registered: May 2006
Location: netherlands
Distribution: debian, rocky, slackware
Posts: 131

Rep: Reputation: 25
tried emacs -nw, works for me...

Last edited by cmk77; 04-19-2008 at 04:33 AM.
 
Old 04-19-2008, 04:54 AM   #3
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
it's included in gtk+2-2.12.9-i486-1
 
Old 04-19-2008, 06:18 AM   #4
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Original Poster
Rep: Reputation: 15
I could install the gtk libs, but the point is I shoudn't need to, I don't have X installed and don't want install heaps of extra stuff to use a text editor on the command line (actually, knowing emacs' reputation, I am probably asking for it here ). Is there going to be an emacs-nox package in 12.1 that doesn't have X dependencies?
 
Old 04-19-2008, 06:42 AM   #5
willysr
Senior Member
 
Registered: Jul 2004
Location: Jogja, Indonesia
Distribution: Slackware-Current
Posts: 4,661

Rep: Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784Reputation: 1784
probably the solution is trying to recompile the emacs-nox package using the SlackBuilds script
 
Old 04-19-2008, 08:26 AM   #6
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Original Poster
Rep: Reputation: 15
Yeah I'll try that for now.
 
Old 04-19-2008, 08:37 AM   #7
samwise17
Member
 
Registered: Jul 2007
Location: Sydney
Distribution: Arch,Slackware,Puppy
Posts: 87

Original Poster
Rep: Reputation: 15
Aha! Found it. Watch:
Code:
root@erwin:/usr/bin# cd    
root@erwin:~# ls -l /usr/bin | grep emacs
-rwxr-xr-x 1 root   root      82856 2008-04-14 08:49 ctags-emacs
lrwxrwxrwx 1 root   root         19 2008-04-19 12:32 emacs -> emacs-22.2-with-x11
-rwxr-xr-t 1 root   root    5011728 2008-04-14 08:49 emacs-22.2-no-x11
-rwxr-xr-t 1 root   root    5441968 2008-04-14 08:49 emacs-22.2-with-x11
-rwxr-xr-x 1 root   root      11852 2008-04-14 08:49 emacsclient
There are two different executables, one with X, one without. 'emacs' is symlinked to one. Did 'ln -s emacs-22.2-no-x11 emacs' as root in /usr/bin.
 
Old 04-19-2008, 04:47 PM   #8
andrew.46
Senior Member
 
Registered: Oct 2007
Distribution: Slackware
Posts: 1,365

Rep: Reputation: 493Reputation: 493Reputation: 493Reputation: 493Reputation: 493
A fine piece of detective work:


Quote:
Originally Posted by samwise17 View Post
Aha! Found it. Watch:
Code:
root@erwin:/usr/bin# cd    
root@erwin:~# ls -l /usr/bin | grep emacs
-rwxr-xr-x 1 root   root      82856 2008-04-14 08:49 ctags-emacs
lrwxrwxrwx 1 root   root         19 2008-04-19 12:32 emacs -> emacs-22.2-with-x11
-rwxr-xr-t 1 root   root    5011728 2008-04-14 08:49 emacs-22.2-no-x11
-rwxr-xr-t 1 root   root    5441968 2008-04-14 08:49 emacs-22.2-with-x11
-rwxr-xr-x 1 root   root      11852 2008-04-14 08:49 emacsclient
There are two different executables, one with X, one without. 'emacs' is symlinked to one. Did 'ln -s emacs-22.2-no-x11 emacs' as root in /usr/bin.
Australians are always best at thinking out of the box :-)

Andrew
 
  


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



Similar Threads
Thread Thread Starter Forum Replies Last Post
up2date-nox bic Red Hat 0 07-12-2007 08:19 AM
Alt no longer META key when using in-terminal option of Emacs (emacs -nw) frznchckn Linux - Software 1 06-02-2007 02:41 AM
where is the .emacs file in the emacs source code tarball? aizkorri Programming 2 01-13-2007 02:05 PM
edb (emacs database) won't open file - emacs 20 & 21 tip184 Linux - Software 0 04-03-2004 07:31 AM
how can i use a TV card under linux nox? linuxpie Linux - Newbie 3 04-10-2002 07:37 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

All times are GMT -5. The time now is 05:14 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