How to fix broken Lisp directory path for Emacs?

I installed a new version of emacs (new to me). I did not want to overwrite the copy of the stock, so I put it in the group-read ~ admin / sw directory. I point my $ PATH there and I can pick it up, but when I run ~ admin / sw / bin / emacs, I get a whole bunch of warnings and errors:

Warning: arch-dependent data dir (/usr/local/libexec/emacs/23.1/x86_64-unknown-linux-gnu/) does not exist.
Warning: Lisp directory `/usr/local/share/emacs/23.1/site-lisp' does not exist.
Warning: Lisp directory `/usr/local/share/emacs/23.1/lisp' does not exist.
Warning: Lisp directory `/usr/local/share/emacs/23.1/leim' does not exist.

When I compiled emacs, I did it like: make install prefix=~admin/sw.All of these directories exist, but they exist in ~ admin / sw / share / ...

How to set up the environment so that emacs view files? Thank!

+3
source share
3 answers

Instead

make install prefix=~admin/sw

to try:

./configure --prefix=~admin/sw
make
make install

This may require an absolute path.

+7
source

.emacs(, ), ?

0

Before I did it. / configure - -prefix = CUSTOMPATH> make> make install, I also replaced all instances of / usr / local in src / epaths.in with CUSTOMPATH.

The configure script is used by src / epaths.in to generate src / epaths.h, which is used in make install.

0
source

Source: https://habr.com/ru/post/1727216/


All Articles