* emacs 23.3 with no X window
@ 2011-08-19 17:42 Jai Dayal
2011-08-19 18:54 ` Eli Zaretskii
2011-08-19 19:00 ` Peter Dyballa
0 siblings, 2 replies; 14+ messages in thread
From: Jai Dayal @ 2011-08-19 17:42 UTC (permalink / raw)
To: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 250 bytes --]
Hi,
I recently installed emacs 23.3 on my Macbook. I typically like to use
it without the X window, however, when I type emacs -nw filename, I get the
following error:
emacs: Cannot open termcap database file
Any suggestions?
Thanks a lot
Jai
[-- Attachment #2: Type: text/html, Size: 284 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 17:42 emacs 23.3 with no X window Jai Dayal
@ 2011-08-19 18:54 ` Eli Zaretskii
2011-08-19 19:00 ` Peter Dyballa
1 sibling, 0 replies; 14+ messages in thread
From: Eli Zaretskii @ 2011-08-19 18:54 UTC (permalink / raw)
To: help-gnu-emacs
> From: Jai Dayal <dayalsoap@gmail.com>
> Date: Fri, 19 Aug 2011 11:42:01 -0600
>
> I recently installed emacs 23.3 on my Macbook. I typically like to use
> it without the X window, however, when I type emacs -nw filename, I get the
> following error:
>
> emacs: Cannot open termcap database file
>
> Any suggestions?
Obviously, you need to install the termcap database.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 17:42 emacs 23.3 with no X window Jai Dayal
2011-08-19 18:54 ` Eli Zaretskii
@ 2011-08-19 19:00 ` Peter Dyballa
2011-08-19 19:08 ` Jai Dayal
1 sibling, 1 reply; 14+ messages in thread
From: Peter Dyballa @ 2011-08-19 19:00 UTC (permalink / raw)
To: Jai Dayal; +Cc: help-gnu-emacs
Am 19.08.2011 um 19:42 schrieb Jai Dayal:
> Any suggestions?
What is
otool -L <path to your GNU Emacs binary> | sort
returning? Does it use/list libncurses?
When you're using GNU Emacs without X windows then Apple's /usr/bin/emacs 22.1 should be sufficient...
--
Greetings
Pete
Inside every small problem is a large problem struggling to get out.
– Second Law of Blissful Ignorance
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 19:00 ` Peter Dyballa
@ 2011-08-19 19:08 ` Jai Dayal
2011-08-19 20:20 ` Peter Dyballa
0 siblings, 1 reply; 14+ messages in thread
From: Jai Dayal @ 2011-08-19 19:08 UTC (permalink / raw)
To: Peter Dyballa; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1836 bytes --]
otool -L /Users/home/bin/emacs | sort
/opt/local/lib/libexpat.1.dylib (compatibility version 7.0.0, current
version 7.2.0)
/opt/local/lib/libz.1.dylib (compatibility version 1.0.0, current
version 1.2.5)
/usr/X11/lib/libICE.6.dylib (compatibility version 10.0.0, current
version 10.0.0)
/usr/X11/lib/libSM.6.dylib (compatibility version 7.0.0, current version
7.0.0)
/usr/X11/lib/libX11.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
/usr/X11/lib/libXaw.7.dylib (compatibility version 8.0.0, current
version 8.0.0)
/usr/X11/lib/libXext.6.dylib (compatibility version 11.0.0, current
version 11.0.0)
/usr/X11/lib/libXmu.6.dylib (compatibility version 9.0.0, current
version 9.0.0)
/usr/X11/lib/libXpm.4.dylib (compatibility version 16.0.0, current
version 16.0.0)
/usr/X11/lib/libXt.6.dylib (compatibility version 7.0.0, current version
7.0.0)
/usr/X11/lib/libfontconfig.1.dylib (compatibility version 6.0.0, current
version 6.3.0)
/usr/X11/lib/libfreetype.6.dylib (compatibility version 13.0.0, current
version 13.0.0)
/usr/lib/libSystem.B.dylib (compatibility version 1.0.0, current version
125.2.11)
Does not contain ncurses. I do have ncurses installed, though.
On Fri, Aug 19, 2011 at 1:00 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 19.08.2011 um 19:42 schrieb Jai Dayal:
>
> > Any suggestions?
>
> What is
>
> otool -L <path to your GNU Emacs binary> | sort
>
> returning? Does it use/list libncurses?
>
> When you're using GNU Emacs without X windows then Apple's /usr/bin/emacs
> 22.1 should be sufficient...
>
> --
> Greetings
>
> Pete
>
> Inside every small problem is a large problem struggling to get out.
> – Second Law of Blissful Ignorance
>
>
[-- Attachment #2: Type: text/html, Size: 2198 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 19:08 ` Jai Dayal
@ 2011-08-19 20:20 ` Peter Dyballa
2011-08-19 21:50 ` Jai Dayal
` (2 more replies)
0 siblings, 3 replies; 14+ messages in thread
From: Peter Dyballa @ 2011-08-19 20:20 UTC (permalink / raw)
To: Jai Dayal; +Cc: help-gnu-emacs
Am 19.08.2011 um 21:08 schrieb Jai Dayal:
> I do have ncurses installed, though.
Then re-build GNU Emacs in a way that it uses libncurses!
--
Greetings
Pete
Real Time, adj.:
Here and now, as opposed to fake time, which only occurs there and then.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 20:20 ` Peter Dyballa
@ 2011-08-19 21:50 ` Jai Dayal
2011-08-20 8:37 ` Peter Dyballa
2011-08-19 21:50 ` Jai Dayal
2011-08-19 22:05 ` fork
2 siblings, 1 reply; 14+ messages in thread
From: Jai Dayal @ 2011-08-19 21:50 UTC (permalink / raw)
To: Peter Dyballa; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 508 bytes --]
That isn't in the INSTALL file. Do you have any suggestions on how to do
that? I'm willing to bet you will fail at being able to do that.
On Fri, Aug 19, 2011 at 2:20 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 19.08.2011 um 21:08 schrieb Jai Dayal:
>
> > I do have ncurses installed, though.
>
> Then re-build GNU Emacs in a way that it uses libncurses!
>
> --
> Greetings
>
> Pete
>
> Real Time, adj.:
> Here and now, as opposed to fake time, which only occurs there and
> then.
>
>
[-- Attachment #2: Type: text/html, Size: 856 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 20:20 ` Peter Dyballa
2011-08-19 21:50 ` Jai Dayal
@ 2011-08-19 21:50 ` Jai Dayal
2011-08-19 22:05 ` fork
2 siblings, 0 replies; 14+ messages in thread
From: Jai Dayal @ 2011-08-19 21:50 UTC (permalink / raw)
To: Peter Dyballa; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 437 bytes --]
That's quite a useless comment. Let me guess: system administrator?
On Fri, Aug 19, 2011 at 2:20 PM, Peter Dyballa <Peter_Dyballa@web.de> wrote:
>
> Am 19.08.2011 um 21:08 schrieb Jai Dayal:
>
> > I do have ncurses installed, though.
>
> Then re-build GNU Emacs in a way that it uses libncurses!
>
> --
> Greetings
>
> Pete
>
> Real Time, adj.:
> Here and now, as opposed to fake time, which only occurs there and
> then.
>
>
[-- Attachment #2: Type: text/html, Size: 781 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 20:20 ` Peter Dyballa
2011-08-19 21:50 ` Jai Dayal
2011-08-19 21:50 ` Jai Dayal
@ 2011-08-19 22:05 ` fork
2011-08-19 22:17 ` Jai Dayal
2 siblings, 1 reply; 14+ messages in thread
From: fork @ 2011-08-19 22:05 UTC (permalink / raw)
To: help-gnu-emacs
Peter Dyballa <Peter_Dyballa <at> web.de> writes:
>
> Then re-build GNU Emacs in a way that it uses libncurses!
Why bother to respond if that is all you have to say?
Perhaps more productively: I regularly build emacs on my mac using the
configure, make, make install drill. I let it default to usr/local/*. I think
I also have a compiled curses in there too. Did you try all that already, or
did you download a binary, or what?
I also disable x when I build it.
if you run ./configure --help you will see some useful options
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 22:05 ` fork
@ 2011-08-19 22:17 ` Jai Dayal
2011-08-19 22:34 ` fork
2011-08-20 2:40 ` Ian Zimmerman
0 siblings, 2 replies; 14+ messages in thread
From: Jai Dayal @ 2011-08-19 22:17 UTC (permalink / raw)
To: fork; +Cc: help-gnu-emacs
[-- Attachment #1: Type: text/plain, Size: 1259 bytes --]
I followed the same process you did.
The emacs that comes with the mac is: GNU Emacs 22.1.1
I've run configure with and without specifying a prefix
./configure --prefix=$HOME --with-jpeg=no --with-png=no --with-gif=no
--with-tiff=no
and
./configure --with-jpeg=no --with-png=no --with-gif=no --with-tiff=no
if I don't add the flags --with-jpeg=no --with-png=no --with-gif=no
--with-tiff=no
configure throws an error and tells me to add those flags those flags.
If I don't configure with prefix, I receive no errors on make and (sudo)
make install
but when I do emacs --version, i still says 22.1.1, and NOT 23.3
On Fri, Aug 19, 2011 at 4:05 PM, fork <forkandwait@gmail.com> wrote:
> Peter Dyballa <Peter_Dyballa <at> web.de> writes:
>
> >
> > Then re-build GNU Emacs in a way that it uses libncurses!
>
> Why bother to respond if that is all you have to say?
>
> Perhaps more productively: I regularly build emacs on my mac using the
> configure, make, make install drill. I let it default to usr/local/*. I
> think
> I also have a compiled curses in there too. Did you try all that already,
> or
> did you download a binary, or what?
>
> I also disable x when I build it.
>
> if you run ./configure --help you will see some useful options
>
>
>
[-- Attachment #2: Type: text/html, Size: 1707 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 22:17 ` Jai Dayal
@ 2011-08-19 22:34 ` fork
2011-08-19 22:56 ` PJ Weisberg
2011-08-20 2:40 ` Ian Zimmerman
1 sibling, 1 reply; 14+ messages in thread
From: fork @ 2011-08-19 22:34 UTC (permalink / raw)
To: help-gnu-emacs
Jai Dayal <dayalsoap <at> gmail.com> writes:
> If I don't configure with prefix, I receive no errors on make and (sudo) make
install but when I do emacs --version, i still says 22.1.1, and NOT 23.3
Try running "which emacs" from the prompt -- that will tell you the full path of
the program. Then try running emacs from the full path -- something like
/usr/local/bin/emacs or whatever. See if that solves your problem.
My guess is that your PATH settings need to be changed -- I always put my
/usr/local stuff in front.
One last thing -- please don't top post...
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 22:34 ` fork
@ 2011-08-19 22:56 ` PJ Weisberg
2011-08-20 8:42 ` Peter Dyballa
0 siblings, 1 reply; 14+ messages in thread
From: PJ Weisberg @ 2011-08-19 22:56 UTC (permalink / raw)
To: fork; +Cc: help-gnu-emacs@gnu.org
[-- Attachment #1: Type: text/plain, Size: 454 bytes --]
On Friday, August 19, 2011, fork <forkandwait@gmail.com> wrote:
> Try running "which emacs" from the prompt -- that will tell you the full
path of
> the program. Then try running emacs from the full path -- something like
> /usr/local/bin/emacs or whatever. See if that solves your problem.
"which -a emacs" will tell you if you have more than one emacs on your path.
The first one in the list is what gets run when you just type "emacs".
--
-PJ
[-- Attachment #2: Type: text/html, Size: 581 bytes --]
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 22:17 ` Jai Dayal
2011-08-19 22:34 ` fork
@ 2011-08-20 2:40 ` Ian Zimmerman
1 sibling, 0 replies; 14+ messages in thread
From: Ian Zimmerman @ 2011-08-20 2:40 UTC (permalink / raw)
To: help-gnu-emacs
Jai> I followed the same process you did. The emacs that comes with the
Jai> mac is: GNU Emacs 22.1.1
Jai> I've run configure with and without specifying a prefix ./configure
Jai> --prefix=$HOME --with-jpeg=no --with-png=no --with-gif=no
Jai> --with-tiff=no
Jai> and ./configure --with-jpeg=no --with-png=no --with-gif=no
Jai> --with-tiff=no
Jai> if I don't add the flags --with-jpeg=no --with-png=no --with-gif=no
Jai> --with-tiff=no configure throws an error and tells me to add those
Jai> flags those flags.
Jai> If I don't configure with prefix, I receive no errors on make and
Jai> (sudo) make install but when I do emacs --version, i still says
Jai> 22.1.1, and NOT 23.3
All this has nothing to do with your original problem.
Please follow fork's advice and run configure --help. There must be a
termcap related option there. Please post it here.
What is happening is that emacs is using its own version of the termcap
library that comes with the emacs source. You must disable that _and_
link with ncurses instead.
Is there a --without-termcap option to configure?
--
Ian Zimmerman
gpg public key: 1024D/C6FF61AD
fingerprint: 66DC D68F 5C1B 4D71 2EE5 BD03 8A00 786C C6FF 61AD
Rule 420: All persons more than eight miles high to leave the court.
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 21:50 ` Jai Dayal
@ 2011-08-20 8:37 ` Peter Dyballa
0 siblings, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2011-08-20 8:37 UTC (permalink / raw)
To: Jai Dayal; +Cc: help-gnu-emacs
Am 19.08.2011 um 23:50 schrieb Jai Dayal:
> That isn't in the INSTALL file. Do you have any suggestions on how to do
> that?
Make the current working directory in *shell* buffer (or such) that with the root of the GNU Emacs sources. The configure script must be here. Or open this directory in dired-mode. Then type M-x compile RET, erase the default text in mini-buffer and type instead: ./configure <your usual options> RET. A *compilation* buffer will open. It is read-only and searchable. Search for text like 'checking for library containing tputs...'. You can also search for this text in the file config.log. Around this line you'll find the cause why libncurses was not found or found to be unusable. Then, based on these findings, make the configure script find (an usable) libncurses. If you have no idea, then read a bit in GNU Emacs' info-mode about configure and gcc. In order to find libncurses the C compiler needs to find the corresponding C header files (presumingly not that important, maybe unused, performed with arguments to the -I switch) and particularly the library file itself. With the switch -L you can point the C compiler to a directory containing the shared (or dynamic) library's file, presumingly /usr/lib or /Developer/SDKs/<SDK's name>/usr/lib.
--
Greetings
Pete
Who the fsck is "General Failure," and why is he reading my disk?
^ permalink raw reply [flat|nested] 14+ messages in thread
* Re: emacs 23.3 with no X window
2011-08-19 22:56 ` PJ Weisberg
@ 2011-08-20 8:42 ` Peter Dyballa
0 siblings, 0 replies; 14+ messages in thread
From: Peter Dyballa @ 2011-08-20 8:42 UTC (permalink / raw)
To: PJ Weisberg; +Cc: fork, help-gnu-emacs@gnu.org
Am 20.08.2011 um 00:56 schrieb PJ Weisberg:
> "which -a emacs" will tell you if you have more than one emacs on your path.
This which is an external programme, /usr/bin/which in Mac OS X, not the built-in which of a shell interpreter. It has to be used, with the full path, instead of the built-in type. Bash has no built-in which, so it just uses /usr/bin/which...
--
Greetings
Pete
The future will be much better tomorrow.
– George W. Bush
^ permalink raw reply [flat|nested] 14+ messages in thread
end of thread, other threads:[~2011-08-20 8:42 UTC | newest]
Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 17:42 emacs 23.3 with no X window Jai Dayal
2011-08-19 18:54 ` Eli Zaretskii
2011-08-19 19:00 ` Peter Dyballa
2011-08-19 19:08 ` Jai Dayal
2011-08-19 20:20 ` Peter Dyballa
2011-08-19 21:50 ` Jai Dayal
2011-08-20 8:37 ` Peter Dyballa
2011-08-19 21:50 ` Jai Dayal
2011-08-19 22:05 ` fork
2011-08-19 22:17 ` Jai Dayal
2011-08-19 22:34 ` fork
2011-08-19 22:56 ` PJ Weisberg
2011-08-20 8:42 ` Peter Dyballa
2011-08-20 2:40 ` Ian Zimmerman
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).