0

Fed up with emacs22 that came with Xcode, I set out to upgrade to emacs24. I do not want to overwrite the system defaults, and do not want to mess up with it either, so I tried to install emacs in a custom directory other than /usr/local/.

Say I set the prefix to CUSTOM_DIR/emacs-24.2. I built and installed emacs 24.2 to the CUSTOM_DIR/emacs-24.2 directory, so bin/, libexec/, share/, and var/ are all there. (Yes, I have manually checked all required files; the installation is totally complete in the custom directory.) But when I tried to run the new version of emacs, I got the following error messages:

Warning: arch-dependent data dir (/usr/local/libexec/emacs/24.2/x86_64-apple-darwin12.2.1/) does not exist.
Warning: arch-independent data dir (/usr/local/share/emacs/24.2/etc/) does not exist.
Warning: Lisp directory `/usr/local/share/emacs/24.2/site-lisp' does not exist.
Warning: Lisp directory `/usr/local/share/emacs/site-lisp' does not exist.
Warning: Lisp directory `/usr/local/share/emacs/24.2/lisp' does not exist.
Warning: Lisp directory `/usr/local/share/emacs/24.2/leim' does not exist.
Error: charsets directory not found:
/usr/local/share/emacs/24.2/etc/charsets
Emacs will not function correctly without the character map files.
Please check your installation!

So obviously emacs's search path was not affected despite the option --prefix=CUSTOM_DIR/emacs-24.2 I specified when running configure. How do I fix this? Is there any configuration files I need to change, or do I need to add some configuration options when configuring and building emacs? (I built emacs 24.2 from tarball.)

P.S. Please do not suggest other ways of installation. I do know how to install emacs 24, either by installing to /usr/local/, which appeared to have no problem at all; or with MacPorts or similar projects; or by directly running from the command line component found in Emacs.app binary distribution. I simply want to fix this very problem. Thanks.

4ae1e1
  • 7,228
  • 8
  • 44
  • 77
  • What was the value of $CUSTOM – mmmmmm Feb 05 '13 at 00:39
  • @Mark Well, I just used it as a placeholder. It is actually not an environment variable; you can substitute it by any directory you like, for instance, `MacintoshHD/Users/Foo/Downloads/` if you'd like to. – 4ae1e1 Feb 05 '13 at 00:40
  • However this could be the issue so let's have the exact command you use for configure and install – mmmmmm Feb 05 '13 at 00:41
  • @Mark Okay. It is `/MacintoshHD/Users/MyAdminAccount/Documents/Programming/Infrastrutures/GNU/bin/emacs-24.2`. Um, quite long... – 4ae1e1 Feb 05 '13 at 00:43
  • And all the commands are `cd EMACS_SCR_DIR`, `mkdir build && cd build`, `../configure --prefix=CUSTOM_DIR ` along with some graphics library options `--with-jpeg=no` etc., `make`, `make install`, `make clean`. – 4ae1e1 Feb 05 '13 at 00:48

0 Answers0