开发者

How do I fix a broken Lisp directory path for Emacs?

I installed a new version of emacs (new for me). I didn't want to overwrite the stock copy so I put it in a group-readable directory ~admin/sw. I point my $PATH there and I'm able to 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开发者_如何学C did it as: make install prefix=~admin/sw. All of those directories do exist but they exist at ~admin/sw/share/...

How can I configure my environment so that emacs looks there for the files? Thanks!


Rather than

make install prefix=~admin/sw

try:

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

This may require an absolute path.


Do you have a .emacs file around ( perhaps dating back to a previous install ) that could have the wrong path in it?


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

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

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜